1 # Exim test configuration 3400
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
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_connect = check_connect
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 control = allow_auth_unadvertised
43 message = authentication-failed: $authentication_failed
44 accept hosts = 10.0.0.5
46 deny hosts = +auth_hosts
47 message = authentication required
49 accept domains = +local_domains
50 accept hosts = +relay_hosts
51 accept hosts = +auth_relay_hosts
53 message = authentication required
55 deny message = relay not permitted
58 deny hosts = +auth_hosts
59 message = authentication required
61 require hosts = 10.0.0.0/24
62 warn log_message = accepted ETRN $smtp_command_argument
66 deny hosts = +auth_hosts
67 message = authentication required
69 accept hosts = 10.0.0.0/24
72 deny hosts = +auth_hosts
73 message = authentication required
78 # ----- Authentication -----
85 server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
87 ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
88 {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
94 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
95 server_set_id = $auth2
101 server_condition = "\
102 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
103 server_set_id = $auth2
105 expanded_prompt_plain:
107 public_name = EXPANDED
108 server_prompts = $primary_hostname
109 server_condition = "\
110 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
111 server_set_id = $auth2
113 expanded_prompt_plain_fail:
115 public_name = EXPANDFAIL
116 server_prompts = $nonexistent
117 server_condition = "\
118 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
119 server_set_id = $auth2
124 server_condition = "account suspended"
125 server_set_id = $auth2
130 server_prompts = "User Name : Password "
131 server_condition = "\
132 ${if and {{eq{$auth1}{userx}}{eq{$auth2}{secret}}}{yes}{no}}"
133 server_set_id = $auth1
136 # ----- Routers -----
142 domains = ! +local_domains
143 data = :fail: unrouteable mail domain "$domain"
148 transport = appendfile
151 # ----- Transports -----
159 file = DIR/test-mail/$local_part