Support Rspamd. Patch from Andrew Lewis, lightly editorialised
[users/heiko/exim.git] / test / confs / 0079
1 # Exim test configuration 0079
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 spool_directory = DIR/spool
6 log_file_path = DIR/spool/log/%slog
7 gecos_pattern = ""
8 gecos_name = CALLER_NAME
9
10 # ----- Main settings -----
11
12 domainlist local_domains = exim.test.ex
13
14 acl_smtp_rcpt = check_recipient
15 log_selector = +incoming_interface
16 qualify_domain = exim.test.ex
17 system_filter = DIR/aux-var/TESTNUM.filter
18 system_filter_file_transport = file
19 system_filter_reply_transport = reply
20 trusted_users = CALLER
21
22
23 # ------ ACL ------
24
25 begin acl
26
27 check_recipient:
28   accept  hosts = :
29   warn    message = X-Warning: $sender_host_address is blacklisted at $dnslist_domain
30           log_message = $sender_host_address is in $dnslist_domain
31           dnslists = rbl.test.ex
32   warn    message = X-Warning: $sender_host_address is blacklisted at $dnslist_domain
33           log_message = accepting postmaster from host in $dnslist_domain
34           recipients = postmaster@exim.test.ex
35           dnslists = rbl2.test.ex
36   accept  recipients = postmaster@exim.test.ex
37   deny    message = host is listed in $dnslist_domain
38           dnslists = rbl2.test.ex
39   require verify = sender
40   deny    message = unrouteable address
41          !verify = recipient
42   accept  domains = +local_domains
43   deny    message = relay not permitted
44
45
46 # ------ Routers ------
47
48 begin routers
49
50 system_aliases:
51   driver = redirect
52   allow_defer
53   data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
54   qualify_preserve_domain
55   retry_use_local_part
56
57 localuser:
58   driver = accept
59   local_parts = userx
60   transport = local_delivery
61
62 caller:
63   driver = accept
64   check_local_user
65   transport = local_delivery
66
67
68 # ----- Transports -----
69
70 begin transports
71
72 local_delivery:
73   driver = appendfile
74   delivery_date_add
75   envelope_to_add
76   file = DIR/test-mail/$local_part
77   return_path_add
78   user = CALLER
79
80 file:
81   driver = appendfile
82   user = CALLER
83
84 reply:
85   driver = autoreply
86   user = CALLER
87
88
89 # ----- Retry -----
90
91 # End