Testsuite: Explicit disabling of identd no longer needed
[exim.git] / test / confs / 0567
CommitLineData
37ff4e03 1# Exim test configuration 0567
e7568d51
TL
2
3CONNECTCOND=
4
5exim_path = EXIM_PATH
6host_lookup_order = bydns
7primary_hostname = myhost.test.ex
e7568d51
TL
8spool_directory = DIR/spool
9log_file_path = DIR/spool/log/%slog
10gecos_pattern = ""
11gecos_name = CALLER_NAME
12
13# ----- Main settings -----
14
15acl_smtp_connect = connect
16acl_smtp_mail = mail
17acl_smtp_rcpt = rcpt
18acl_smtp_predata = predata
19acl_smtp_data = data
20acl_not_smtp = notsmtp
21
22qualify_domain = test.ex
23trusted_users = CALLER
24
25hostlist internal_headers = x-mail-2 : x-mail-3
26
27
28# ----- ACL -----
29
30begin acl
31
32connect:
33 accept CONNECTCOND
34
35mail:
36 accept remove_header = x-mail-1
37 senders = mailok@test.ex
38 # Won't work because doesn't expand
39 remove_header = +internal_headers
40 accept
41
42rcpt:
43 accept local_parts = rcptok
44 remove_header = x-rcpt-4 : x-rcpt-2
45 set acl_m_hdr = x-predata-1
46 deny add_header = RCPT: denied $local_part
47
48
49predata:
50 warn remove_header = x-predata-3 : $acl_m_hdr
51 # Won't work because doesn't use wildcards
52 accept remove_header = x-not-*
53
54data:
55 warn log_message = Verified previously removed header X-Rcpt-2
56 condition = ${if eq{$h_x-rcpt-2:}{}}
57 warn remove_header = x-data-1 : x-data-4
58 condition = ${if eq{$h_cond:}{accept}}
59 remove_header = x-data-3
60 # Won't delete this header because condition fails before the modifier
61 warn condition = ${if eq{$h_cond:}{reject}}
62 remove_header = x-data-2
63 warn log_message = Verified removed header X-Data-3 in this ACL still visible
64 condition = ${if !eq{$h_x-data-3:}{}}
65 accept
66
67notsmtp:
68 # Will remove a required header (Date) if told to
69 accept remove_header = x-notsmtp-1 : date
70
71
72# ----- Routers -----
73
74begin routers
75
76r1:
77 driver = accept
78 transport = t1
79
80
81# ----- Transports -----
82
83begin transports
84
85t1:
86 driver = appendfile
87 file = DIR/test-mail/$local_part
88 user = CALLER
89
90# End