Add variables for wildcard portion of local-part affix. Bug 281
[exim.git] / test / confs / 3500
1 # Exim test configuration 3500
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 domainlist local_domains = test.ex : *.test.ex
10
11 hostlist auth_hosts = 10.0.0.1 : 10.0.0.5
12 hostlist relay_hosts = 10.0.0.4
13 hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4
14
15 acl_smtp_etrn = check_etrn
16 acl_smtp_expn = check_expn
17 acl_smtp_rcpt = check_recipient
18 acl_smtp_vrfy = check_vrfy
19 auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \
20 10.0.0.5
21 smtp_accept_max_nonmail = 20
22 system_filter = DIR/aux-fixed/TESTNUM.filter
23 trusted_users = CALLER
24
25
26 # ----- ACL -----
27
28 begin acl
29
30 check_recipient:
31 warn hosts = 10.0.0.5
32 message = authentication-failed: $authentication_failed
33 accept hosts = 10.0.0.5
34 accept hosts = :
35 deny hosts = +auth_hosts
36 message = authentication required
37 !authenticated = *
38 accept domains = +local_domains
39 accept hosts = +relay_hosts
40 accept hosts = +auth_relay_hosts
41 endpass
42 message = authentication required
43 authenticated = *
44 deny message = relay not permitted
45
46 check_etrn:
47 deny hosts = +auth_hosts
48 message = authentication required
49 !authenticated = *
50 require hosts = 10.0.0.0/24
51 warn log_message = accepted ETRN $smtp_command_argument
52 accept
53
54 check_expn:
55 deny hosts = +auth_hosts
56 message = authentication required
57 !authenticated = *
58 accept hosts = 10.0.0.0/24
59
60 check_vrfy:
61 deny hosts = +auth_hosts
62 message = authentication required
63 !authenticated = *
64 accept
65
66
67 # ----- Authentication -----
68
69 begin authenticators
70
71 cram_md5:
72 driver = cram_md5
73 public_name = CRAM-MD5
74 server_debug_print = +++CRAM-MD5 \$auth1="$auth1" \$auth2=\"$auth2" \$auth3="$auth3"
75 server_secret = "${if eq{$auth1}{tim}{tanstaaftanstaaf}\
76 {${if eq{$auth1}{userx}{secret}fail}}}"
77 server_set_id = $auth1
78 server_condition = ${if !eq {$sender_host_address}{10.0.0.5}}
79
80
81
82 # ----- Routers -----
83
84 begin routers
85
86 fail_remote_domains:
87 driver = redirect
88 domains = ! +local_domains
89 data = :fail: unrouteable mail domain "$domain"
90
91 localuser:
92 driver = accept
93 local_parts = userx
94 transport = appendfile
95
96
97 # ----- Transports -----
98
99 begin transports
100
101 appendfile:
102 driver = appendfile
103 delivery_date_add
104 envelope_to_add
105 file = DIR/test-mail/${bless:$local_part}
106 return_path_add
107 user = CALLER
108
109
110 # End