1 # Exim test configuration 3500
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
9 gecos_name = CALLER_NAME
11 # ----- Main settings -----
13 domainlist local_domains = test.ex : *.test.ex
15 hostlist auth_hosts = 10.0.0.1 : 10.0.0.5
16 hostlist relay_hosts = 10.0.0.4
17 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
19 acl_smtp_etrn = check_etrn
20 acl_smtp_expn = check_expn
21 acl_smtp_rcpt = check_recipient
22 acl_smtp_vrfy = check_vrfy
23 auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
25 smtp_accept_max_nonmail = 20
26 system_filter = DIR/aux-fixed/TESTNUM.filter
27 trusted_users = CALLER
36 message = authentication-failed: $authentication_failed
37 accept hosts = 10.0.0.5
39 deny hosts = +auth_hosts
40 message = authentication required
42 accept domains = +local_domains
43 accept hosts = +relay_hosts
44 accept hosts = +auth_relay_hosts
46 message = authentication required
48 deny message = relay not permitted
51 deny hosts = +auth_hosts
52 message = authentication required
54 require hosts = 10.0.0.0/24
55 warn log_message = accepted ETRN $smtp_command_argument
59 deny hosts = +auth_hosts
60 message = authentication required
62 accept hosts = 10.0.0.0/24
65 deny hosts = +auth_hosts
66 message = authentication required
71 # ----- Authentication -----
77 public_name = CRAM-MD5
78 server_debug_print = +++CRAM-MD5 \$auth1="$auth1" \$auth2=\"$auth2" \$auth3="$auth3"
79 server_secret = "${if eq{$auth1}{tim}{tanstaaftanstaaf}\
80 {${if eq{$auth1}{userx}{secret}fail}}}"
81 server_set_id = $auth1
82 server_condition = ${if !eq {$sender_host_address}{10.0.0.5}}
92 domains = ! +local_domains
93 data = :fail: unrouteable mail domain "$domain"
98 transport = appendfile
101 # ----- Transports -----
109 file = DIR/test-mail/$local_part