1 # Exim test configuration 0567
5 .include DIR/aux-var/std_conf_prefix
7 primary_hostname = myhost.test.ex
9 # ----- Main settings -----
11 acl_smtp_connect = connect
14 acl_smtp_predata = predata
16 acl_not_smtp = notsmtp
18 qualify_domain = test.ex
19 trusted_users = CALLER
21 hostlist internal_headers = x-mail-2 : x-mail-3
32 accept remove_header = x-mail-1
33 senders = mailok@test.ex
34 # Won't work because doesn't expand
35 remove_header = +internal_headers
39 accept local_parts = rcptok
40 remove_header = x-rcpt-4 : x-rcpt-2
41 set acl_m_hdr = x-predata-1
42 deny add_header = RCPT: denied $local_part
46 warn remove_header = x-predata-3 : $acl_m_hdr
47 # Won't work because doesn't use wildcards
48 accept remove_header = x-not-*
51 warn log_message = Verified previously removed header X-Rcpt-2
52 condition = ${if eq{$h_x-rcpt-2:}{}}
53 warn remove_header = x-data-1 : x-data-4
54 condition = ${if eq{$h_cond:}{accept}}
55 remove_header = x-data-3
56 # Won't delete this header because condition fails before the modifier
57 warn condition = ${if eq{$h_cond:}{reject}}
58 remove_header = x-data-2
59 warn log_message = Verified removed header X-Data-3 in this ACL still visible
60 condition = ${if !eq{$h_x-data-3:}{}}
64 # Will remove a required header (Date) if told to
65 accept remove_header = x-notsmtp-1 : date
77 # ----- Transports -----
83 file = DIR/test-mail/${bless:$local_part}