1 # Exim test configuration 3500
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
7 rfc1413_query_timeout = 0s
8 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/%slog
11 gecos_name = CALLER_NAME
13 # ----- Main settings -----
15 domainlist local_domains = test.ex : *.test.ex
17 hostlist auth_hosts = 10.0.0.1 : 10.0.0.5
18 hostlist relay_hosts = 10.0.0.4
19 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
21 acl_smtp_etrn = check_etrn
22 acl_smtp_expn = check_expn
23 acl_smtp_rcpt = check_recipient
24 acl_smtp_vrfy = check_vrfy
25 auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
27 smtp_accept_max_nonmail = 20
28 system_filter = DIR/aux-fixed/TESTNUM.filter
29 trusted_users = CALLER
38 message = authentication-failed: $authentication_failed
39 accept hosts = 10.0.0.5
41 deny hosts = +auth_hosts
42 message = authentication required
44 accept domains = +local_domains
45 accept hosts = +relay_hosts
46 accept hosts = +auth_relay_hosts
48 message = authentication required
50 deny message = relay not permitted
53 deny hosts = +auth_hosts
54 message = authentication required
56 require hosts = 10.0.0.0/24
57 warn log_message = accepted ETRN $smtp_command_argument
61 deny hosts = +auth_hosts
62 message = authentication required
64 accept hosts = 10.0.0.0/24
67 deny hosts = +auth_hosts
68 message = authentication required
73 # ----- Authentication -----
79 public_name = CRAM-MD5
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
84 server_condition = ${if !eq {$sender_host_address}{10.0.0.5}}
94 domains = ! +local_domains
95 data = :fail: unrouteable mail domain "$domain"
100 transport = appendfile
103 # ----- Transports -----
111 file = DIR/test-mail/$local_part