1 # Exim test configuration 3500
3 .include DIR/aux-var/std_conf_prefix
5 primary_hostname = myhost.test.ex
7 # ----- Main settings -----
9 domainlist local_domains = test.ex : *.test.ex
11 hostlist auth_hosts = 10.0.0.1 : 10.0.0.5
12 hostlist relay_hosts = 10.0.0.4
13 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
15 acl_smtp_etrn = check_etrn
16 acl_smtp_expn = check_expn
17 acl_smtp_rcpt = check_recipient
18 acl_smtp_vrfy = check_vrfy
19 auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
21 smtp_accept_max_nonmail = 20
22 system_filter = DIR/aux-fixed/TESTNUM.filter
23 trusted_users = CALLER
32 message = authentication-failed: $authentication_failed
33 accept hosts = 10.0.0.5
35 deny hosts = +auth_hosts
36 message = authentication required
38 accept domains = +local_domains
39 accept hosts = +relay_hosts
40 accept hosts = +auth_relay_hosts
42 message = authentication required
44 deny message = relay not permitted
47 deny hosts = +auth_hosts
48 message = authentication required
50 require hosts = 10.0.0.0/24
51 warn log_message = accepted ETRN $smtp_command_argument
55 deny hosts = +auth_hosts
56 message = authentication required
58 accept hosts = 10.0.0.0/24
61 deny hosts = +auth_hosts
62 message = authentication required
67 # ----- Authentication -----
73 public_name = CRAM-MD5
74 server_debug_print = +++CRAM-MD5 \$auth1="$auth1" \$auth2=\"$auth2" \$auth3="$auth3"
75 server_secret = "${if eq{$auth1}{tim}{tanstaaftanstaaf}\
76 {${if eq{$auth1}{userx}{secret}fail}}}"
77 server_set_id = $auth1
78 server_condition = ${if !eq {$sender_host_address}{10.0.0.5}}
88 domains = ! +local_domains
89 data = :fail: unrouteable mail domain "$domain"
94 transport = appendfile
97 # ----- Transports -----
105 file = DIR/test-mail/$local_part