Fix CVE-2016-1531
[exim.git] / test / confs / 3400
CommitLineData
afda344b
PH
1# Exim test configuration 3400
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
17hostlist auth_hosts = 10.0.0.1
18hostlist relay_hosts = 10.0.0.4
19hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
20
c46782ef 21acl_smtp_connect = check_connect
afda344b
PH
22acl_smtp_etrn = check_etrn
23acl_smtp_expn = check_expn
24acl_smtp_rcpt = check_recipient
25acl_smtp_vrfy = check_vrfy
26auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
27 10.0.0.5
28smtp_accept_max_nonmail = 20
29system_filter = DIR/aux-fixed/TESTNUM.filter
30trusted_users = CALLER
31
32
33# ----- ACL -----
34
35begin acl
36
c46782ef
PH
37check_connect:
38 warn hosts = 10.0.0.6
39 control = allow_auth_unadvertised
40 accept
41
afda344b
PH
42check_recipient:
43 warn hosts = 10.0.0.5
44 message = authentication-failed: $authentication_failed
45 accept hosts = 10.0.0.5
46 accept hosts = :
47 deny hosts = +auth_hosts
48 message = authentication required
49 !authenticated = *
50 accept domains = +local_domains
51 accept hosts = +relay_hosts
52 accept hosts = +auth_relay_hosts
53 endpass
54 message = authentication required
55 authenticated = *
56 deny message = relay not permitted
57
58check_etrn:
59 deny hosts = +auth_hosts
60 message = authentication required
61 !authenticated = *
62 require hosts = 10.0.0.0/24
63 warn log_message = accepted ETRN $smtp_command_argument
64 accept
65
66check_expn:
67 deny hosts = +auth_hosts
68 message = authentication required
69 !authenticated = *
70 accept hosts = 10.0.0.0/24
71
72check_vrfy:
73 deny hosts = +auth_hosts
74 message = authentication required
75 !authenticated = *
76 accept
77
78
79# ----- Authentication -----
80
81begin authenticators
82
83mylogin:
84 driver = plaintext
85 public_name = mylogin
86 server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
87 server_condition = "\
88 ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
89 {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
90
91plain:
92 driver = plaintext
93 public_name = PLAIN
94 server_condition = "\
f78eb7c6
PH
95 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
96 server_set_id = $auth2
afda344b
PH
97
98extended_plain:
99 driver = plaintext
100 public_name = EXPLAIN
101 server_prompts = :
102 server_condition = "\
f78eb7c6
PH
103 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
104 server_set_id = $auth2
afda344b
PH
105
106expanded_prompt_plain:
107 driver = plaintext
108 public_name = EXPANDED
109 server_prompts = $primary_hostname
110 server_condition = "\
f78eb7c6
PH
111 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
112 server_set_id = $auth2
afda344b
PH
113
114expanded_prompt_plain_fail:
115 driver = plaintext
116 public_name = EXPANDFAIL
117 server_prompts = $nonexistent
118 server_condition = "\
f78eb7c6
PH
119 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
120 server_set_id = $auth2
afda344b
PH
121
122defer:
123 driver = plaintext
124 public_name = DEFER
125 server_condition = "account suspended"
f78eb7c6 126 server_set_id = $auth2
afda344b
PH
127
128login:
129 driver = plaintext
130 public_name = LOGIN
131 server_prompts = "User Name : Password "
132 server_condition = "\
f78eb7c6
PH
133 ${if and {{eq{$auth1}{userx}}{eq{$auth2}{secret}}}{yes}{no}}"
134 server_set_id = $auth1
afda344b
PH
135
136
137# ----- Routers -----
138
139begin routers
140
141fail_remote_domains:
142 driver = redirect
143 domains = ! +local_domains
144 data = :fail: unrouteable mail domain "$domain"
145
146localuser:
147 driver = accept
148 local_parts = userx
149 transport = appendfile
150
151
152# ----- Transports -----
153
154begin transports
155
156appendfile:
157 driver = appendfile
158 delivery_date_add
159 envelope_to_add
160 file = DIR/test-mail/$local_part
161 return_path_add
162 user = CALLER
163
164
165# End