b50220887324b68bbcc412b0275b6e4fc6644a54
[exim.git] / test / confs / 3411
1 # Exim test configuration 3411
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
10 domainlist relay_domains = ten-1.test.ex
11
12 hostlist relay_hosts = 10.255.255.0/24
13
14 trusted_users = CALLER
15
16 acl_smtp_rcpt = acl_rcpt
17
18 # ------ ACLs ------
19
20 begin acl
21
22 acl_rcpt:
23 accept hosts = :
24
25 accept domains = +local_domains
26 local_parts = postmaster
27
28 require verify = sender
29
30 deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text
31 dnslists = rbl.test.ex
32
33 warn message = X-Warning: $sender_host_address is in a black list at $dnslist_domain ($dnslist_value)
34 log_message = found in $dnslist_domain
35 dnslists = rbl2.test.ex
36
37 accept domains = +local_domains
38 endpass
39 verify = recipient
40
41 require verify = recipient
42
43 accept domains = +relay_domains
44
45 accept hosts = 127.0.0.1 : +relay_hosts
46
47 accept authenticated = *
48
49 deny message = relay not permitted
50
51
52 # ------ Authenticators ------
53
54 begin authenticators
55
56 plain:
57 driver = plaintext
58 public_name = PLAIN
59 server_condition = ${if eq {$3}{secret}{yes}{no}}
60
61
62 # ------ Routers ------
63
64 begin routers
65
66 r1:
67 driver = dnslookup
68 domains = ! +local_domains
69 transport = dev_null
70 no_more
71
72 r2:
73 driver = accept
74 local_parts = userx : postmaster
75 transport = local_delivery
76 cannot_route_message = unknown user
77
78
79 # ------ Transports ------
80
81 begin transports
82
83 dev_null:
84 driver = appendfile
85 file = /dev/null
86 user = CALLER
87
88 local_delivery:
89 driver = appendfile
90 file = DIR/test-mail/${bless:$local_part}
91 user = CALLER
92
93 # End