Fix CVE-2016-1531
[exim.git] / test / confs / 3500
CommitLineData
afda344b
PH
1# Exim test configuration 3500
2
3exim_path = EXIM_PATH
bc3c7bb7 4keep_environment =
afda344b
PH
5host_lookup_order = bydns
6primary_hostname = myhost.test.ex
afda344b
PH
7spool_directory = DIR/spool
8log_file_path = DIR/spool/log/%slog
9gecos_pattern = ""
10gecos_name = CALLER_NAME
23f3dc67 11tls_advertise_hosts =
afda344b
PH
12
13# ----- Main settings -----
14
15domainlist local_domains = test.ex : *.test.ex
16
16ff981e 17hostlist auth_hosts = 10.0.0.1 : 10.0.0.5
afda344b
PH
18hostlist relay_hosts = 10.0.0.4
19hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
20
21acl_smtp_etrn = check_etrn
22acl_smtp_expn = check_expn
23acl_smtp_rcpt = check_recipient
24acl_smtp_vrfy = check_vrfy
25auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
26 10.0.0.5
27smtp_accept_max_nonmail = 20
28system_filter = DIR/aux-fixed/TESTNUM.filter
29trusted_users = CALLER
30
31
32# ----- ACL -----
33
34begin acl
35
36check_recipient:
37 warn hosts = 10.0.0.5
38 message = authentication-failed: $authentication_failed
39 accept hosts = 10.0.0.5
40 accept hosts = :
41 deny hosts = +auth_hosts
42 message = authentication required
43 !authenticated = *
44 accept domains = +local_domains
45 accept hosts = +relay_hosts
46 accept hosts = +auth_relay_hosts
47 endpass
48 message = authentication required
49 authenticated = *
50 deny message = relay not permitted
51
52check_etrn:
53 deny hosts = +auth_hosts
54 message = authentication required
55 !authenticated = *
56 require hosts = 10.0.0.0/24
57 warn log_message = accepted ETRN $smtp_command_argument
58 accept
59
60check_expn:
61 deny hosts = +auth_hosts
62 message = authentication required
63 !authenticated = *
64 accept hosts = 10.0.0.0/24
65
66check_vrfy:
67 deny hosts = +auth_hosts
68 message = authentication required
69 !authenticated = *
70 accept
71
72
73# ----- Authentication -----
74
75begin authenticators
76
77cram_md5:
78 driver = cram_md5
79 public_name = CRAM-MD5
f78eb7c6
PH
80 server_debug_print = +++CRAM-MD5 \$auth1="$auth1" \$auth2=\"$auth2" \$auth3="$auth3"
81 server_secret = "${if eq{$auth1}{tim}{tanstaaftanstaaf}\
82 {${if eq{$auth1}{userx}{secret}fail}}}"
83 server_set_id = $auth1
16ff981e 84 server_condition = ${if !eq {$sender_host_address}{10.0.0.5}}
afda344b
PH
85
86
87
88# ----- Routers -----
89
90begin routers
91
92fail_remote_domains:
93 driver = redirect
94 domains = ! +local_domains
95 data = :fail: unrouteable mail domain "$domain"
96
97localuser:
98 driver = accept
99 local_parts = userx
100 transport = appendfile
101
102
103# ----- Transports -----
104
105begin transports
106
107appendfile:
108 driver = appendfile
109 delivery_date_add
110 envelope_to_add
111 file = DIR/test-mail/$local_part
112 return_path_add
113 user = CALLER
114
115
116# End