Debug: "kill" option on ACL control=debug. Bug 1831
[exim.git] / test / confs / 3400
1 # Exim test configuration 3400
2
3 exim_path = EXIM_PATH
4 keep_environment =
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11 tls_advertise_hosts =
12
13 # ----- Main settings -----
14
15 domainlist local_domains = test.ex : *.test.ex
16
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
20
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 : \
27 10.0.0.5
28 smtp_accept_max_nonmail = 20
29 system_filter = DIR/aux-fixed/TESTNUM.filter
30 trusted_users = CALLER
31
32
33 # ----- ACL -----
34
35 begin acl
36
37 check_connect:
38 warn hosts = 10.0.0.6
39 control = allow_auth_unadvertised
40 accept
41
42 check_recipient:
43 warn hosts = 10.0.0.5
44 message = authentication-failed: $authentication_failed
45 accept hosts = 10.0.0.5
46 accept hosts = :
47 deny hosts = +auth_hosts
48 message = authentication required
49 !authenticated = *
50 accept domains = +local_domains
51 accept hosts = +relay_hosts
52 accept hosts = +auth_relay_hosts
53 endpass
54 message = authentication required
55 authenticated = *
56 deny message = relay not permitted
57
58 check_etrn:
59 deny hosts = +auth_hosts
60 message = authentication required
61 !authenticated = *
62 require hosts = 10.0.0.0/24
63 warn log_message = accepted ETRN $smtp_command_argument
64 accept
65
66 check_expn:
67 deny hosts = +auth_hosts
68 message = authentication required
69 !authenticated = *
70 accept hosts = 10.0.0.0/24
71
72 check_vrfy:
73 deny hosts = +auth_hosts
74 message = authentication required
75 !authenticated = *
76 accept
77
78
79 # ----- Authentication -----
80
81 begin authenticators
82
83 mylogin:
84 driver = plaintext
85 public_name = mylogin
86 server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
87 server_condition = "\
88 ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
89 {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
90
91 plain:
92 driver = plaintext
93 public_name = PLAIN
94 server_condition = "\
95 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
96 server_set_id = $auth2
97
98 extended_plain:
99 driver = plaintext
100 public_name = EXPLAIN
101 server_prompts = :
102 server_condition = "\
103 ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}"
104 server_set_id = $auth2
105
106 expanded_prompt_plain:
107 driver = plaintext
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
113
114 expanded_prompt_plain_fail:
115 driver = plaintext
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
121
122 defer:
123 driver = plaintext
124 public_name = DEFER
125 server_condition = "account suspended"
126 server_set_id = $auth2
127
128 login:
129 driver = plaintext
130 public_name = LOGIN
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
135
136
137 # ----- Routers -----
138
139 begin routers
140
141 fail_remote_domains:
142 driver = redirect
143 domains = ! +local_domains
144 data = :fail: unrouteable mail domain "$domain"
145
146 localuser:
147 driver = accept
148 local_parts = userx
149 transport = appendfile
150
151
152 # ----- Transports -----
153
154 begin transports
155
156 appendfile:
157 driver = appendfile
158 delivery_date_add
159 envelope_to_add
160 file = DIR/test-mail/$local_part
161 return_path_add
162 user = CALLER
163
164
165 # End