diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0540 | 53 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0540 | 52 | ||||
-rw-r--r-- | test/stdout/0540 | 57 |
3 files changed, 162 insertions, 0 deletions
diff --git a/test/confs/0540 b/test/confs/0540 new file mode 100644 index 000000000..641335f6b --- /dev/null +++ b/test/confs/0540 @@ -0,0 +1,53 @@ +# Exim test configuration 0540 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +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 = check_rcpt + +queue_only + + +# ----- ACLs ----- + +begin acl + +check_rcpt: + accept verify = recipient/callout + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = ${if match {$domain}{^yes}{t1}{t2}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + helo_data = ${if eq{$domain}{yes1}{localhost}{aname}} + +t2: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + +# End diff --git a/test/scripts/0000-Basic/0540 b/test/scripts/0000-Basic/0540 new file mode 100644 index 000000000..62bb4fbce --- /dev/null +++ b/test/scripts/0000-Basic/0540 @@ -0,0 +1,52 @@ +# Affixes in RCPT commands for recipient callouts +need_ipv4 +# +server PORT_S 4 +220 Welcome +HELO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +QUIT +250 OK +*eof +220 Welcome +HELO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +QUIT +250 OK +*eof +220 Welcome +HELO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +QUIT +250 OK +*eof +220 Welcome +HELO +250 Hi +MAIL FROM +250 OK +RCPT TO +250 OK +QUIT +250 OK +**** +exim -odq -bs +mail from:<> +RCPT TO:<abc@yes1> +RCPT TO:<def@yes2> +RCPT TO:<abc@no> +RCPT TO:<def@no> +quit +**** diff --git a/test/stdout/0540 b/test/stdout/0540 new file mode 100644 index 000000000..935f990f1 --- /dev/null +++ b/test/stdout/0540 @@ -0,0 +1,57 @@ +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+250 Accepted
+250 Accepted
+250 Accepted
+221 myhost.test.ex closing connection
+ +******** SERVER ******** +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 Welcome +HELO localhost +250 Hi +MAIL FROM:<> +250 OK +RCPT TO:<abc@yes1> +250 OK +QUIT +250 OK +Expected EOF read from client +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 Welcome +HELO aname +250 Hi +MAIL FROM:<> +250 OK +RCPT TO:<def@yes2> +250 OK +QUIT +250 OK +Expected EOF read from client +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 Welcome +HELO myhost.test.ex +250 Hi +MAIL FROM:<> +250 OK +RCPT TO:<abc@no> +250 OK +QUIT +250 OK +Expected EOF read from client +Listening on port 1224 ... +Connection request from [127.0.0.1] +220 Welcome +HELO myhost.test.ex +250 Hi +MAIL FROM:<> +250 OK +RCPT TO:<def@no> +250 OK +QUIT +250 OK +End of script |