From 506900aff65e12440fdd36a71e9172fc7af5830a Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 16 Nov 2014 17:47:50 +0000 Subject: Make the multi_domain smtp transport option expanded --- test/scripts/0000-Basic/0570 | 66 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 test/scripts/0000-Basic/0570 (limited to 'test/scripts') diff --git a/test/scripts/0000-Basic/0570 b/test/scripts/0000-Basic/0570 new file mode 100644 index 000000000..ed54afc1d --- /dev/null +++ b/test/scripts/0000-Basic/0570 @@ -0,0 +1,66 @@ +# multi_domain option on smtp transport +# +# +exim -DSERVER=server -bd -oX PORT_D +**** +# +exim userx@domA.ex usery@domB.ex +Test message +**** +# Default case: can multi-domain +exim -q +**** +# +# +exim userx@domA.ex usery@domB.ex +Test message +**** +# Equivalent explicit case: can multi-domain +exim -DOPTION=multi_domain=yes -q +**** +# +# +exim userx@domA.ex usery@domB.ex +Test message +**** +# no multi-domain +exim -DOPTION=multi_domain=no -q +# +# +exim userx@domA.ex usery@domB.ex +Test message +**** +# Expanded case: can multi-domain +exim -DOPTION='multi_domain=${if bool{1} {true}{false}}' -q +**** +# +# +exim userx@domA.ex usery@domB.ex +Test message +**** +# Expanded case: no multi-domain (1) +exim -DOPTION='multi_domain=${if eqi {$address_data}{domA.ex} {no}{yes}}' -q +**** +# +# +exim userx@domA.ex usery@domB.ex +Test message +**** +# Expanded case: no multi-domain (2) +exim -DOPTION='multi_domain=${if match_domain {$address_data}{domZ.ex : domY.ex : domB.ex} {no}{yes}}' -q +**** +# +# +exim userx@domA.ex usery@domA.ex userz@domC.ex +Test message +**** +# Expanded case: both yes and no +exim -DOPTION='multi_domain=${if eqi {$address_data}{domA.ex} {no}{yes}}' -q +**** +# +# +killdaemon +no_msglog_check +# +# +## -- cgit v1.2.3