diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-06 19:58:48 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-06 21:13:15 +0100 |
commit | 9d783bb9f39bca59e720d0c543499b372c412441 (patch) | |
tree | 2b399a4fbff5f66445397a8f4bb63dba62b79765 /test | |
parent | 936fcb6fc957910826dc7f2fc349cdc0c3a456d6 (diff) |
Observability: listen queue backlog
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0624 | 1 | ||||
-rw-r--r-- | test/confs/0625 | 45 | ||||
-rw-r--r-- | test/log/0625 | 21 | ||||
-rw-r--r-- | test/rejectlog/0625 | 5 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0625 | 10 |
5 files changed, 82 insertions, 0 deletions
diff --git a/test/confs/0624 b/test/confs/0624 index 2ffd0a18e..70f0c2024 100644 --- a/test/confs/0624 +++ b/test/confs/0624 @@ -34,6 +34,7 @@ smtp: hosts = 127.0.0.1 port = ${if eq {c}{$local_part} {PORT_D2}{PORT_D}} allow_localhost + hosts_try_fastopen = max_rcpt = 1 # ----- Retry ----- diff --git a/test/confs/0625 b/test/confs/0625 new file mode 100644 index 000000000..ff200a1f2 --- /dev/null +++ b/test/confs/0625 @@ -0,0 +1,45 @@ +# Exim test configuration 0625 + +.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_backlog_monitor = 1 + +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 = PORT_D + allow_localhost + hosts_try_fastopen = + max_rcpt = 1 + +# ----- Retry ----- +begin retry +* * F,5d,1d + +# End + diff --git a/test/log/0625 b/test/log/0625 new file mode 100644 index 000000000..41dcfb4fd --- /dev/null +++ b/test/log/0625 @@ -0,0 +1,21 @@ +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_D 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 +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 listen backlog 2 I=[127.0.0.1]:ppppp +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/0625 b/test/rejectlog/0625 new file mode 100644 index 000000000..cfb1500fc --- /dev/null +++ b/test/rejectlog/0625 @@ -0,0 +1,5 @@ + +******** 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/0625 b/test/scripts/0000-Basic/0625 new file mode 100644 index 000000000..b39a1cbe3 --- /dev/null +++ b/test/scripts/0000-Basic/0625 @@ -0,0 +1,10 @@ +# queued connections on listener socket +# +exim -bd -DSERVER=server -oX PORT_D +**** +exim a@test.ex b@test.ex c@test.ex +Subject: test mail +**** +# +sleep 8 +killdaemon |