From d68218c76f4dc65a3e308fa75d071526ad0e0f49 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 30 Sep 2013 10:12:12 -0700 Subject: Bug 1031: Experimental TPDA Remove whitespace --- test/confs/5700 | 67 ++++++++++++++++++++++++++ test/log/5700 | 22 +++++++++ test/paniclog/5700 | 2 + test/scripts/5700-tpt-post-dlv-action/5700 | 64 ++++++++++++++++++++++++ test/scripts/5700-tpt-post-dlv-action/REQUIRES | 1 + test/stderr/5700 | 2 + test/stdout/5700 | 60 +++++++++++++++++++++++ 7 files changed, 218 insertions(+) create mode 100644 test/confs/5700 create mode 100644 test/log/5700 create mode 100644 test/paniclog/5700 create mode 100644 test/scripts/5700-tpt-post-dlv-action/5700 create mode 100644 test/scripts/5700-tpt-post-dlv-action/REQUIRES create mode 100644 test/stderr/5700 create mode 100644 test/stdout/5700 (limited to 'test') diff --git a/test/confs/5700 b/test/confs/5700 new file mode 100644 index 000000000..52b28018a --- /dev/null +++ b/test/confs/5700 @@ -0,0 +1,67 @@ +# Exim test configuration 5700 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = accept + + +# ----- ACL ----- + +begin acl + +logger: + accept condition = ${if eq {$acl_arg2}{domain1}} + logwrite = \ + $acl_arg1 \ + ip <$tpda_delivery_ip> \ + port <$tpda_delivery_port> \ + fqdn <$tpda_delivery_fqdn> \ + local_part <$tpda_delivery_local_part> \ + domain <$tpda_delivery_domain> \ + confirmation <$tpda_delivery_confirmation> \ + errno <$tpda_defer_errno> \ + errstr <$tpda_defer_errstr> \ + router <$router_name> \ + transport <$transport_name> + + accept logwrite = $this_expansion_will_fail + +# ----- Routers ----- + +begin routers + +dump_bounces: + driver = redirect + senders = : + data = :blackhole: + +others: + driver = manualroute + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + command_timeout = 1s + final_timeout = 1s + tpda_delivery_action = ${acl {logger} {delivery} {$domain} } + tpda_host_defer_action = ${acl {logger} {deferral} {$domain} } + +# End diff --git a/test/log/5700 b/test/log/5700 new file mode 100644 index 000000000..d11936571 --- /dev/null +++ b/test/log/5700 @@ -0,0 +1,22 @@ +1999-03-02 09:44:33 10HmaY-0005vi-00 <= CALLER@the.local.host.name U=CALLER P=local S=sss +1999-03-02 09:44:33 Start queue run: pid=pppp -qqf +1999-03-02 09:44:33 10HmaY-0005vi-00 => userx@domain1 R=others T=smtp H=127.0.0.1 [127.0.0.1] C="250 OK" +1999-03-02 09:44:33 10HmaY-0005vi-00 delivery ip <127.0.0.1> port <1224> fqdn <127.0.0.1> local_part domain confirmation <250 OK> errno <0> errstr <> router transport +1999-03-02 09:44:33 10HmaY-0005vi-00 Completed +1999-03-02 09:44:33 End queue run: pid=pppp -qqf +1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@the.local.host.name U=CALLER P=local S=sss +1999-03-02 09:44:33 Start queue run: pid=pppp -qqf +1999-03-02 09:44:33 10HmaX-0005vi-00 => userx@domain2 R=others T=smtp H=127.0.0.1 [127.0.0.1] C="250 OK" +1999-03-02 09:44:33 10HmaX-0005vi-00 failed to expand tpda_deliver_action in smtp: error from acl "logger" + +1999-03-02 09:44:33 10HmaX-0005vi-00 Completed +1999-03-02 09:44:33 End queue run: pid=pppp -qqf +1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@the.local.host.name U=CALLER P=local S=sss +1999-03-02 09:44:33 10HmaZ-0005vi-00 SMTP timeout while connected to 127.0.0.1 [127.0.0.1] after EHLO the.local.host.name: Connection timed out +1999-03-02 09:44:33 10HmaZ-0005vi-00 deferral ip <127.0.0.1> port <1224> fqdn <127.0.0.1> local_part domain confirmation <> errno <110> errstr router transport +1999-03-02 09:44:33 10HmaZ-0005vi-00 == userx@domain1 R=others T=smtp defer (dd): Connection timed out: SMTP timeout while connected to 127.0.0.1 [127.0.0.1] after EHLO the.local.host.name +1999-03-02 09:44:33 10HmaZ-0005vi-00 ** userx@domain1: retry timeout exceeded +1999-03-02 09:44:33 10HmbA-0005vi-00 <= <> R=10HmaZ-0005vi-00 U=EXIMUSER P=local S=sss +1999-03-02 09:44:33 10HmbA-0005vi-00 => :blackhole: R=dump_bounces +1999-03-02 09:44:33 10HmbA-0005vi-00 Completed +1999-03-02 09:44:33 10HmaZ-0005vi-00 Completed diff --git a/test/paniclog/5700 b/test/paniclog/5700 new file mode 100644 index 000000000..4f28d19c4 --- /dev/null +++ b/test/paniclog/5700 @@ -0,0 +1,2 @@ +1999-03-02 09:44:33 10HmaX-0005vi-00 failed to expand tpda_deliver_action in smtp: error from acl "logger" + diff --git a/test/scripts/5700-tpt-post-dlv-action/5700 b/test/scripts/5700-tpt-post-dlv-action/5700 new file mode 100644 index 000000000..b85231b6e --- /dev/null +++ b/test/scripts/5700-tpt-post-dlv-action/5700 @@ -0,0 +1,64 @@ +# Arbtirary expansion after transport +# (EXPERIMENTAL_TPDA) +# +need_ipv4 +# +exim -odq userx@domain1 +A deliverable message +**** +server PORT_S +220 ESMTP +EHLO +250-OK +250 HELP +MAIL +250 OK +RCPT +250 OK +DATA +354 More... +. +250 OK +QUIT +220 OK +**** +exim -qqf +**** +# +# +# +# +exim -odq userx@domain2 +A deliverable message which will hit a coding error in the config +**** +server PORT_S +220 ESMTP +EHLO +250-OK +250 HELP +MAIL +250 OK +RCPT +250 OK +DATA +354 More... +. +250 OK +QUIT +220 OK +**** +exim -qqf +**** +# +# +# +server PORT_S +220 ESMTP +EHLO +*sleep 4 +**** +exim -odi userx@domain1 +A message which will hit a timeout at the destination server +. +**** +# diff --git a/test/scripts/5700-tpt-post-dlv-action/REQUIRES b/test/scripts/5700-tpt-post-dlv-action/REQUIRES new file mode 100644 index 000000000..444465835 --- /dev/null +++ b/test/scripts/5700-tpt-post-dlv-action/REQUIRES @@ -0,0 +1 @@ +support Experimental_TPDA diff --git a/test/stderr/5700 b/test/stderr/5700 new file mode 100644 index 000000000..4f28d19c4 --- /dev/null +++ b/test/stderr/5700 @@ -0,0 +1,2 @@ +1999-03-02 09:44:33 10HmaX-0005vi-00 failed to expand tpda_deliver_action in smtp: error from acl "logger" + diff --git a/test/stdout/5700 b/test/stdout/5700 new file mode 100644 index 000000000..a45b44c87 --- /dev/null +++ b/test/stdout/5700 @@ -0,0 +1,60 @@ + +******** SERVER ******** +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 ESMTP +EHLO the.local.host.name +250-OK +250 HELP +MAIL FROM: +250 OK +RCPT TO: +250 OK +DATA +354 More... +Received: from CALLER by the.local.host.name with local (Exim x.yz) + (envelope-from ) + id 10HmaY-0005vi-00 + for userx@domain1; Tue, 2 Mar 1999 09:44:33 +0000 +Message-Id: +From: CALLER_NAME +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +A deliverable message +. +250 OK +QUIT +220 OK +End of script +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 ESMTP +EHLO the.local.host.name +250-OK +250 HELP +MAIL FROM: +250 OK +RCPT TO: +250 OK +DATA +354 More... +Received: from CALLER by the.local.host.name with local (Exim x.yz) + (envelope-from ) + id 10HmaX-0005vi-00 + for userx@domain2; Tue, 2 Mar 1999 09:44:33 +0000 +Message-Id: +From: CALLER_NAME +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +A deliverable message which will hit a coding error in the config +. +250 OK +QUIT +220 OK +End of script +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 ESMTP +EHLO the.local.host.name +*sleep 4 +End of script -- cgit v1.2.3