diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-01-19 22:28:54 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-02-11 00:16:02 +0000 |
commit | 95938464602a39d9307550d3bd567030ffaf5b4e (patch) | |
tree | 3f4d4637680be26e69692f13093973eed68a083a /test | |
parent | f20cfa4a4481b9cf5bd644f482f9711dbe32a51d (diff) |
Events: log a non-success when a client connect is denied by an event
(cherry picked from commit 6bc9c745b64e669161a04f4dd72de4dbba9fbdd2)
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/5707 | 56 | ||||
-rw-r--r-- | test/log/5707 | 4 | ||||
-rw-r--r-- | test/scripts/5700-events/5707 | 6 |
3 files changed, 66 insertions, 0 deletions
diff --git a/test/confs/5707 b/test/confs/5707 new file mode 100644 index 000000000..35d5eff47 --- /dev/null +++ b/test/confs/5707 @@ -0,0 +1,56 @@ +# Exim test configuration 5707 + +.include DIR/aux-var/std_conf_prefix + + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = accept + +event_action = ${acl {logger}} + + +# ----- ACL ----- + +begin acl + +.include DIR/aux-fixed/event-logger-acl + +conn_deny: + accept !condition = ${if eq {tcp:connect}{$event_name}} + deny logwrite = Denying tcp connection + message = deny + +# ----- Routers ----- + +begin routers + +dump_bounces: + driver = redirect + senders = : + data = :blackhole: + +others: + driver = manualroute + route_list = * 127.0.0.1 byname + self = send + transport = smtp + errors_to = "" + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + event_action = ${acl {conn_deny}} + +# ----- Retry ----- +begin retry +* * F,5d,10s + +# End diff --git a/test/log/5707 b/test/log/5707 new file mode 100644 index 000000000..643dad214 --- /dev/null +++ b/test/log/5707 @@ -0,0 +1,4 @@ +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 10HmaX-0005vi-00 Denying tcp connection +1999-03-02 09:44:33 10HmaX-0005vi-00 H=127.0.0.1 [127.0.0.1] Event requests alternate response +1999-03-02 09:44:33 10HmaX-0005vi-00 == userx@domain1 R=others T=smtp defer (-57) diff --git a/test/scripts/5700-events/5707 b/test/scripts/5700-events/5707 new file mode 100644 index 000000000..a8b5ffe70 --- /dev/null +++ b/test/scripts/5700-events/5707 @@ -0,0 +1,6 @@ +# tcp:connect deny +# +exim -odf userx@domain1 +A deliverable message +**** +no_msglog_check |