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
13 # ----- Main settings -----
15 domainlist local_domains = test.ex : *.test.ex
17 hostlist auth_hosts = 10.0.0.1
18 hostlist relay_hosts = 10.0.0.4
19 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
21 acl_smtp_connect = check_connect
22 acl_smtp_etrn = check_etrn
23 acl_smtp_expn = check_expn
24 acl_smtp_rcpt = check_recipient
25 acl_smtp_vrfy = check_vrfy
26 auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
28 smtp_accept_max_nonmail = 20
29 system_filter = DIR/aux-fixed/TESTNUM.filter
30 trusted_users = CALLER
39 control = allow_auth_unadvertised
44 message = authentication-failed: $authentication_failed
45 accept hosts = 10.0.0.5
47 deny hosts = +auth_hosts
48 message = authentication required
50 accept domains = +local_domains
51 accept hosts = +relay_hosts
52 accept hosts = +auth_relay_hosts
54 message = authentication required
56 deny message = relay not permitted
59 deny hosts = +auth_hosts
60 message = authentication required
62 require hosts = 10.0.0.0/24
63 warn log_message = accepted ETRN $smtp_command_argument
67 deny hosts = +auth_hosts
68 message = authentication required
70 accept hosts = 10.0.0.0/24
73 deny hosts = +auth_hosts
74 message = authentication required
79 # ----- Authentication -----
86 server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
88 ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
89 {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
95 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
96 server_set_id = $auth2
100 public_name = EXPLAIN
102 server_condition = "\
103 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
104 server_set_id = $auth2
106 expanded_prompt_plain:
108 public_name = EXPANDED
109 server_prompts = $primary_hostname
110 server_condition = "\
111 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
112 server_set_id = $auth2
114 expanded_prompt_plain_fail:
116 public_name = EXPANDFAIL
117 server_prompts = $nonexistent
118 server_condition = "\
119 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
120 server_set_id = $auth2
125 server_condition = "account suspended"
126 server_set_id = $auth2
131 server_prompts = "User Name : Password "
132 server_condition = "\
133 ${if and {{eq{$auth1}{userx}}{eq{$auth2}{secret}}}{yes}{no}}"
134 server_set_id = $auth1
137 # ----- Routers -----
143 domains = ! +local_domains
144 data = :fail: unrouteable mail domain "$domain"
149 transport = appendfile
152 # ----- Transports -----
160 file = DIR/test-mail/$local_part