79fb73fe1209e93814b72c822eacf5deaba525ae
[exim.git] / test / confs / 3403
1 # Exim test configuration 3403
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 acl_smtp_rcpt = accept
10 acl_smtp_data = accept add_header = :at_start:${authresults {$primary_hostname}}
11
12
13 # ----- Authentication -----
14
15 begin authenticators
16
17 plain1:
18 driver = plaintext
19 public_name = PLAIN
20 server_condition = \
21 ${if or {\
22 {and {{eq{$2}{userx}}{eq{$3}{secret}}}}\
23 {and {{eq{$2}{usery}}{eq{$3}{ab?}}}}\
24 }\
25 {yes}{no}}
26 server_set_id = $2
27 server_mail_auth_condition = ${if eq{$authenticated_id}{userx}{yes}}
28
29
30 # ----- Routers -----
31
32 begin routers
33
34 d1:
35 driver = accept
36 headers_add = aid: $authenticated_id
37 retry_use_local_part
38 transport = t1
39
40
41 # ----- Transports -----
42
43 begin transports
44
45 t1:
46 driver = appendfile
47 file = DIR/test-mail/$local_part
48 user = CALLER
49
50 # End