Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0197 |
2 | ||
3 | # Remove connection timeout when copying for real use, | |
4 | # and these settings. | |
5 | ||
6 | exim_path = EXIM_PATH | |
7 | host_lookup_order = bydns | |
8 | rfc1413_query_timeout = 0s | |
9 | spool_directory = DIR/spool | |
10 | log_file_path = DIR/spool/log/%slog | |
11 | gecos_pattern = "" | |
12 | gecos_name = CALLER_NAME | |
13 | ||
14 | queue_run_in_order | |
15 | trusted_users = CALLER | |
16 | ||
17 | ||
18 | # Exim configuration to pass all messages on to a fixed host, taking | |
19 | # copies of them for subsequent configuration testing. | |
20 | ||
21 | # This is the file the copies will be saved in. | |
22 | ||
23 | COPYFILE = DIR/test-mail/copies | |
24 | ||
25 | # This is the user that the copying delivery will run under. | |
26 | ||
27 | COPYUSER = CALLER | |
28 | ||
29 | # These are the domains whose mail will be copied. | |
30 | ||
31 | COPYDOMAINS = copy.domain | |
32 | ||
33 | # This is the list of domains that this server will relay. | |
34 | ||
35 | RELAYDOMAINS = COPYDOMAINS | |
36 | ||
37 | # This is the host that messages are relayed to. It can be a colon-separated | |
38 | # list of hosts - they are tried in order. | |
39 | ||
40 | NEXTHOST = V4NET.0.0.1 | |
41 | ||
42 | ||
43 | # ----- Main settings ----- | |
44 | ||
45 | # This is a list of domains which the host is going to relay. Mail addressed | |
46 | # to other domains will be rejected | |
47 | ||
48 | domainlist relay_domains = RELAYDOMAINS | |
49 | ||
50 | acl_smtp_rcpt = check_recipient | |
51 | ||
52 | ||
53 | # ----- ACL ----- | |
54 | ||
55 | begin acl | |
56 | ||
57 | check_recipient: | |
58 | accept hosts = : | |
59 | accept domains = +relay_domains | |
60 | deny message = relay not permitted | |
61 | ||
62 | ||
63 | # ----- Routers ----- | |
64 | ||
65 | begin routers | |
66 | ||
67 | # This router takes a copy of messages for a specific domain. | |
68 | ||
69 | checkcopy: | |
70 | driver = manualroute | |
71 | route_list = COPYDOMAINS | |
72 | transport = makecopy | |
73 | unseen | |
74 | ||
75 | # This router passes all addresses to the passing-on transport. | |
76 | ||
77 | passall: | |
78 | driver = manualroute | |
79 | route_list = * NEXTHOST byname | |
80 | transport = pass_on | |
81 | ||
82 | ||
83 | # ----- Transports ----- | |
84 | ||
85 | # This transport is used for doing the deliveries arising from taking copies | |
86 | # of each message passing through the system, for specific domains. | |
87 | ||
88 | begin transports | |
89 | ||
90 | makecopy: | |
91 | driver = appendfile | |
92 | batch_max = 100 | |
93 | use_bsmtp | |
94 | file = COPYFILE | |
95 | message_prefix = | |
96 | message_suffix = | |
97 | user = COPYUSER | |
98 | ||
99 | # This transport is used for passing the message on to the next host. | |
100 | ||
101 | pass_on: | |
102 | driver = smtp | |
103 | connect_timeout = 1s | |
104 | ||
105 | ||
106 | # ----- Retry ----- | |
107 | ||
108 | ||
109 | begin retry | |
110 | ||
111 | * * F,2h,15m; G,16h,1h,1.5; F,4d,8h | |
112 | ||
113 | ||
114 | # End |