1 # Exim test configuration 5711
3 .include DIR/aux-var/tls_conf_prefix
5 primary_hostname = myhost.test.ex
7 # ----- Main settings -----
9 acl_smtp_connect = check_conn
10 acl_smtp_quit = accept logwrite = ACL quit
11 acl_smtp_notquit = accept logwrite = ACL notquit
13 tls_advertise_hosts = *
14 tls_certificate = DIR/aux-fixed/cert1
16 host_reject_connection = ${acl {hrc}}
17 smtp_banner = ${if != {$received_port}{PORT_D4} {my banner}fail}
18 event_action = ${acl {tls_fail}}
27 warn logwrite = eval host_reject_connection
28 accept condition = ${if eq {$received_port}{PORT_D}}
29 # no mesage= hence host_reject_connection should be empty
30 deny condition = ${if eq {$received_port}{PORT_D2}}
32 # PORT_D2 gets a host_reject_connection
35 warn logwrite = ACL conn
36 deny condition = ${if eq {$received_port}{PORT_D3}}
37 log_message = we dislike you
38 # PORT_D3 gets a conn ACL fail
42 warn logwrite = EV $event_name
43 accept condition = ${if eq {tls:fail:connect}{$event_name}}
44 logwrite = EVDATA: $event_data