1 # Exim test configuration 0532
7 host_lookup_order = bydns
8 primary_hostname = myhost.test.ex
9 rfc1413_query_timeout = 0s
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/%slog
13 gecos_name = CALLER_NAME
15 # ----- Main settings -----
17 acl_smtp_connect = connect
20 acl_smtp_predata = predata
22 acl_not_smtp = notsmtp
24 qualify_domain = test.ex
25 trusted_users = CALLER
27 hostlist internal_headers = x-mail-2 : x-mail-3
38 accept remove_header = x-mail-1
39 senders = mailok@test.ex
40 # Won't work because doesn't expand
41 remove_header = +internal_headers
45 accept local_parts = rcptok
46 remove_header = x-rcpt-4 : x-rcpt-2
47 set acl_m_hdr = x-predata-1
48 deny add_header = RCPT: denied $local_part
52 warn remove_header = x-predata-3 : $acl_m_hdr
53 # Won't work because doesn't use wildcards
54 accept remove_header = x-not-*
57 warn log_message = Verified previously removed header X-Rcpt-2
58 condition = ${if eq{$h_x-rcpt-2:}{}}
59 warn remove_header = x-data-1 : x-data-4
60 condition = ${if eq{$h_cond:}{accept}}
61 remove_header = x-data-3
62 # Won't delete this header because condition fails before the modifier
63 warn condition = ${if eq{$h_cond:}{reject}}
64 remove_header = x-data-2
65 warn log_message = Verified removed header X-Data-3 in this ACL still visible
66 condition = ${if !eq{$h_x-data-3:}{}}
70 # Will remove a required header (Date) if told to
71 accept remove_header = x-notsmtp-1 : date
83 # ----- Transports -----
89 file = DIR/test-mail/$local_part