Merge branch 'acl'
[exim.git] / test / confs / 0231
1 # Exim test configuration 0231
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 rfc1413_query_timeout = 0s
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11
12 # ----- Main settings -----
13
14 domainlist local_domains = test.ex : *.test.ex
15
16 acl_smtp_rcpt = check_recipient
17
18
19 # ----- ACL -----
20
21 begin acl
22
23 check_recipient:
24   accept  hosts = :
25   accept  domains = +local_domains
26   deny    message = relay not permitted
27
28
29 # ----- Routers -----
30
31 begin routers
32
33 rewrite1:
34   driver = manualroute
35   domains = ! +local_domains
36   route_list = * 127.0.0.1 byname
37   self = send
38   transport = smtp_rewrite
39   no_more
40
41 rewrite2:
42   driver = accept
43   local_parts = a
44   retry_use_local_part
45   transport = local_delivery_rewrite
46
47 no_rewrite:
48   driver = accept
49   retry_use_local_part
50   transport = local_delivery
51
52
53 # ----- Transports -----
54
55 begin transports
56
57 local_delivery_rewrite:
58   driver = appendfile
59   file = DIR/test-mail/$local_part
60   headers_rewrite = a@test.ex a-rewrite@test.ex
61   user = CALLER
62
63 local_delivery:
64   driver = appendfile
65   file = DIR/test-mail/$local_part
66   user = CALLER
67
68 smtp_rewrite:
69   driver = smtp
70   headers_rewrite = *@domain1 $1-rewrite@domain2 f :\
71                     *@domain1 $1-other@domain2
72   port = PORT_S
73
74
75 # ----- Retry -----
76
77
78 begin retry
79
80 * * F,5d,10s
81
82
83 # End