1 # Exim test configuration 3400
3 .include DIR/aux-var/std_conf_prefix
5 primary_hostname = myhost.test.ex
7 # ----- Main settings -----
9 domainlist local_domains = test.ex : *.test.ex
11 hostlist auth_hosts = 10.0.0.1
12 hostlist relay_hosts = 10.0.0.4
13 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
15 acl_smtp_connect = check_connect
16 acl_smtp_etrn = check_etrn
17 acl_smtp_expn = check_expn
18 acl_smtp_rcpt = check_recipient
19 acl_smtp_vrfy = check_vrfy
20 auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
22 smtp_accept_max_nonmail = 20
23 system_filter = DIR/aux-fixed/TESTNUM.filter
24 trusted_users = CALLER
33 control = allow_auth_unadvertised
38 message = authentication-failed: $authentication_failed
39 accept hosts = 10.0.0.5
41 deny hosts = +auth_hosts
42 message = authentication required
44 accept domains = +local_domains
45 accept hosts = +relay_hosts
46 accept hosts = +auth_relay_hosts
48 message = authentication required
50 deny message = relay not permitted
53 deny hosts = +auth_hosts
54 message = authentication required
56 require hosts = 10.0.0.0/24
57 warn log_message = accepted ETRN $smtp_command_argument
61 deny hosts = +auth_hosts
62 message = authentication required
64 accept hosts = 10.0.0.0/24
67 deny hosts = +auth_hosts
68 message = authentication required
73 # ----- Authentication -----
80 server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
82 ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
83 {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
89 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
90 server_set_id = $auth2
97 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
98 server_set_id = $auth2
100 expanded_prompt_plain:
102 public_name = EXPANDED
103 server_prompts = $primary_hostname
104 server_condition = "\
105 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
106 server_set_id = $auth2
108 expanded_prompt_plain_fail:
110 public_name = EXPANDFAIL
111 server_prompts = $nonexistent
112 server_condition = "\
113 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
114 server_set_id = $auth2
119 server_condition = "account suspended"
120 server_set_id = $auth2
125 server_prompts = "User Name : Password "
126 server_condition = "\
127 ${if and {{eq{$auth1}{userx}}{eq{$auth2}{secret}}}{yes}{no}}"
128 server_set_id = $auth1
131 # ----- Routers -----
137 domains = ! +local_domains
138 data = :fail: unrouteable mail domain "$domain"
143 transport = appendfile
146 # ----- Transports -----
154 file = DIR/test-mail/$local_part
155 create_file = DIR/test-mail