1 # Exim test configuration 3400
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 rfc1413_query_timeout = 0s
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
10 gecos_name = CALLER_NAME
12 # ----- Main settings -----
14 domainlist local_domains = test.ex : *.test.ex
16 hostlist auth_hosts = 10.0.0.1
17 hostlist relay_hosts = 10.0.0.4
18 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
20 acl_smtp_etrn = check_etrn
21 acl_smtp_expn = check_expn
22 acl_smtp_rcpt = check_recipient
23 acl_smtp_vrfy = check_vrfy
24 auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
26 smtp_accept_max_nonmail = 20
27 system_filter = DIR/aux-fixed/TESTNUM.filter
28 trusted_users = CALLER
37 message = authentication-failed: $authentication_failed
38 accept hosts = 10.0.0.5
40 deny hosts = +auth_hosts
41 message = authentication required
43 accept domains = +local_domains
44 accept hosts = +relay_hosts
45 accept hosts = +auth_relay_hosts
47 message = authentication required
49 deny message = relay not permitted
52 deny hosts = +auth_hosts
53 message = authentication required
55 require hosts = 10.0.0.0/24
56 warn log_message = accepted ETRN $smtp_command_argument
60 deny hosts = +auth_hosts
61 message = authentication required
63 accept hosts = 10.0.0.0/24
66 deny hosts = +auth_hosts
67 message = authentication required
72 # ----- Authentication -----
79 server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
81 ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
82 {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
88 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
89 server_set_id = $auth2
96 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
97 server_set_id = $auth2
99 expanded_prompt_plain:
101 public_name = EXPANDED
102 server_prompts = $primary_hostname
103 server_condition = "\
104 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
105 server_set_id = $auth2
107 expanded_prompt_plain_fail:
109 public_name = EXPANDFAIL
110 server_prompts = $nonexistent
111 server_condition = "\
112 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
113 server_set_id = $auth2
118 server_condition = "account suspended"
119 server_set_id = $auth2
124 server_prompts = "User Name : Password "
125 server_condition = "\
126 ${if and {{eq{$auth1}{userx}}{eq{$auth2}{secret}}}{yes}{no}}"
127 server_set_id = $auth1
130 # ----- Routers -----
136 domains = ! +local_domains
137 data = :fail: unrouteable mail domain "$domain"
142 transport = appendfile
145 # ----- Transports -----
153 file = DIR/test-mail/$local_part