diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-06 17:01:02 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-06 20:49:10 +0100 |
commit | 936fcb6fc957910826dc7f2fc349cdc0c3a456d6 (patch) | |
tree | 856b5b6531cefd2991b7c3398950920ec5f51680 /test | |
parent | 8226202acc1d8db777071b16857b93fe222d425a (diff) |
Testsuite: testcase for multiple listener sockets ready
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0624 | 44 | ||||
-rw-r--r-- | test/log/0624 | 20 | ||||
-rw-r--r-- | test/rejectlog/0624 | 6 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0624 | 10 |
4 files changed, 79 insertions, 1 deletions
diff --git a/test/confs/0624 b/test/confs/0624 new file mode 100644 index 000000000..2ffd0a18e --- /dev/null +++ b/test/confs/0624 @@ -0,0 +1,44 @@ +# Exim test configuration 0624 + +.include DIR/aux-var/std_conf_prefix + + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex +log_selector = +received_recipients +outgoing_port +millisec + +smtp_accept_max_per_host = ${acl {delay}}10 +remote_max_parallel = 3 + +acl_smtp_rcpt = discard + +# ----- ACL ----- +begin acl + +delay: + accept + delay = 2s + +# ----- Routers ----- +begin routers +r: + driver = accept + transport = smtp + +# ----- Trnasport ----- +begin transports +smtp: + driver = smtp + hosts = 127.0.0.1 + port = ${if eq {c}{$local_part} {PORT_D2}{PORT_D}} + allow_localhost + max_rcpt = 1 + +# ----- Retry ----- +begin retry +* * F,5d,1d + +# End + diff --git a/test/log/0624 b/test/log/0624 new file mode 100644 index 000000000..e87a520b5 --- /dev/null +++ b/test/log/0624 @@ -0,0 +1,20 @@ +2017-07-30 18:51:05.712 10HmaX-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss for a@test.ex b@test.ex c@test.ex +2017-07-30 18:51:05.712 10HmaX-0005vi-00 => a@test.ex R=r T=smtp H=127.0.0.1 [127.0.0.1]:PORT_D C="250 OK id=10HmaY-0005vi-00" +2017-07-30 18:51:05.712 10HmaX-0005vi-00 => b@test.ex R=r T=smtp H=127.0.0.1 [127.0.0.1]:PORT_D C="250 OK id=10HmaZ-0005vi-00" +2017-07-30 18:51:05.712 10HmaX-0005vi-00 => c@test.ex R=r T=smtp H=127.0.0.1 [127.0.0.1]:PORT_D2 C="250 OK id=10HmbA-0005vi-00" +2017-07-30 18:51:05.712 10HmaX-0005vi-00 Completed + +******** SERVER ******** +2017-07-30 18:51:05.712 exim x.yz daemon started: pid=pppp, no queue runs, listening for SMTP on port PORT_D port PORT_D2 +2017-07-30 18:51:05.712 H=localhost (the.local.host.name) [127.0.0.1] F=<CALLER@test.ex> RCPT <a@test.ex>: discarded by RCPT ACL +2017-07-30 18:51:05.712 10HmaY-0005vi-00 <= CALLER@test.ex H=localhost (the.local.host.name) [127.0.0.1] P=esmtp S=sss id=E10HmaX-0005vi-00@the.local.host.name +2017-07-30 18:51:05.712 10HmaY-0005vi-00 => blackhole (RCPT ACL discarded recipients) +2017-07-30 18:51:05.712 10HmaY-0005vi-00 Completed +2017-07-30 18:51:05.712 H=localhost (the.local.host.name) [127.0.0.1] F=<CALLER@test.ex> RCPT <b@test.ex>: discarded by RCPT ACL +2017-07-30 18:51:05.712 10HmaZ-0005vi-00 <= CALLER@test.ex H=localhost (the.local.host.name) [127.0.0.1] P=esmtp S=sss id=E10HmaX-0005vi-00@the.local.host.name +2017-07-30 18:51:05.712 10HmaZ-0005vi-00 => blackhole (RCPT ACL discarded recipients) +2017-07-30 18:51:05.712 10HmaZ-0005vi-00 Completed +2017-07-30 18:51:05.712 H=localhost (the.local.host.name) [127.0.0.1] F=<CALLER@test.ex> RCPT <c@test.ex>: discarded by RCPT ACL +2017-07-30 18:51:05.712 10HmbA-0005vi-00 <= CALLER@test.ex H=localhost (the.local.host.name) [127.0.0.1] P=esmtp S=sss id=E10HmaX-0005vi-00@the.local.host.name +2017-07-30 18:51:05.712 10HmbA-0005vi-00 => blackhole (RCPT ACL discarded recipients) +2017-07-30 18:51:05.712 10HmbA-0005vi-00 Completed diff --git a/test/rejectlog/0624 b/test/rejectlog/0624 index 86b0ed7e6..cfb1500fc 100644 --- a/test/rejectlog/0624 +++ b/test/rejectlog/0624 @@ -1 +1,5 @@ -1999-03-02 09:44:33 U=CALLER F=<testclient@primaryhostname.ex> rejected RCPT <a@notmatched.ex> + +******** SERVER ******** +2017-07-30 18:51:05.712 H=localhost (the.local.host.name) [127.0.0.1] F=<CALLER@test.ex> RCPT <a@test.ex>: discarded by RCPT ACL +2017-07-30 18:51:05.712 H=localhost (the.local.host.name) [127.0.0.1] F=<CALLER@test.ex> RCPT <b@test.ex>: discarded by RCPT ACL +2017-07-30 18:51:05.712 H=localhost (the.local.host.name) [127.0.0.1] F=<CALLER@test.ex> RCPT <c@test.ex>: discarded by RCPT ACL diff --git a/test/scripts/0000-Basic/0624 b/test/scripts/0000-Basic/0624 new file mode 100644 index 000000000..0c3db409d --- /dev/null +++ b/test/scripts/0000-Basic/0624 @@ -0,0 +1,10 @@ +# multiple listener sockets ready +# +exim -bd -DSERVER=server -oX '<, PORT_D,PORT_D2' +**** +exim a@test.ex b@test.ex c@test.ex +Subject: test mail +**** +# +sleep 8 +killdaemon |