1 # Exim test configuration 3400
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
16 hostlist relay_hosts = 10.0.0.4
17 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
19 acl_smtp_connect = check_connect
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 control = allow_auth_unadvertised
42 message = authentication-failed: $authentication_failed
43 accept hosts = 10.0.0.5
45 deny hosts = +auth_hosts
46 message = authentication required
48 accept domains = +local_domains
49 accept hosts = +relay_hosts
50 accept hosts = +auth_relay_hosts
52 message = authentication required
54 deny message = relay not permitted
57 deny hosts = +auth_hosts
58 message = authentication required
60 require hosts = 10.0.0.0/24
61 warn log_message = accepted ETRN $smtp_command_argument
65 deny hosts = +auth_hosts
66 message = authentication required
68 accept hosts = 10.0.0.0/24
71 deny hosts = +auth_hosts
72 message = authentication required
77 # ----- Authentication -----
84 server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
86 ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
87 {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
93 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
94 server_set_id = $auth2
100 server_condition = "\
101 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
102 server_set_id = $auth2
104 expanded_prompt_plain:
106 public_name = EXPANDED
107 server_prompts = $primary_hostname
108 server_condition = "\
109 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
110 server_set_id = $auth2
112 expanded_prompt_plain_fail:
114 public_name = EXPANDFAIL
115 server_prompts = $nonexistent
116 server_condition = "\
117 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
118 server_set_id = $auth2
123 server_condition = "account suspended"
124 server_set_id = $auth2
129 server_prompts = "User Name : Password "
130 server_condition = "\
131 ${if and {{eq{$auth1}{userx}}{eq{$auth2}{secret}}}{yes}{no}}"
132 server_set_id = $auth1
135 # ----- Routers -----
141 domains = ! +local_domains
142 data = :fail: unrouteable mail domain "$domain"
147 transport = appendfile
150 # ----- Transports -----
158 file = DIR/test-mail/$local_part