Expansions: new ${authresults {mch}} for an Authentication-Results header
[exim.git] / test / confs / 3403
CommitLineData
afda344b
PH
1# Exim test configuration 3403
2
d4dc049f
JH
3.include DIR/aux-var/std_conf_prefix
4
afda344b 5primary_hostname = myhost.test.ex
afda344b
PH
6
7# ----- Main settings -----
8
9acl_smtp_rcpt = accept
dfbcb5ac 10acl_smtp_data = accept add_header = :at_start:${authresults {$primary_hostname}}
afda344b
PH
11
12
13# ----- Authentication -----
14
15begin authenticators
16
17plain1:
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
32begin routers
33
34d1:
35 driver = accept
36 headers_add = aid: $authenticated_id
37 retry_use_local_part
38 transport = t1
39
40
41# ----- Transports -----
42
43begin transports
44
45t1:
46 driver = appendfile
47 file = DIR/test-mail/$local_part
48 user = CALLER
49
50# End