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