summaryrefslogtreecommitdiff
path: root/test/confs/0197
blob: 175b671cba65ddeed96a71dfd0a9acca0a2290d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Exim test configuration 0197

# Remove connection timeout when copying for real use,
# and these settings.

exim_path = EXIM_PATH
host_lookup_order = bydns
rfc1413_query_timeout = 0s
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME

queue_run_in_order
trusted_users = CALLER


# Exim configuration to pass all messages on to a fixed host, taking
# copies of them for subsequent configuration testing.

# This is the file the copies will be saved in.

COPYFILE = DIR/test-mail/copies

# This is the user that the copying delivery will run under.

COPYUSER = CALLER

# These are the domains whose mail will be copied.

COPYDOMAINS = copy.domain

# This is the list of domains that this server will relay.

RELAYDOMAINS = COPYDOMAINS

# This is the host that messages are relayed to. It can be a colon-separated
# list of hosts - they are tried in order.

NEXTHOST = V4NET.0.0.1


# ----- Main settings -----

# This is a list of domains which the host is going to relay. Mail addressed
# to other domains will be rejected

domainlist relay_domains = RELAYDOMAINS

acl_smtp_rcpt = check_recipient


# ----- ACL -----

begin acl

check_recipient:
  accept  hosts = :
  accept  domains = +relay_domains
  deny    message = relay not permitted


# ----- Routers -----

begin routers

# This router takes a copy of messages for a specific domain.

checkcopy:
  driver = manualroute
  route_list = COPYDOMAINS
  transport = makecopy
  unseen

# This router passes all addresses to the passing-on transport.

passall:
  driver = manualroute
  route_list = * NEXTHOST byname
  transport = pass_on


# ----- Transports -----

# This transport is used for doing the deliveries arising from taking copies
# of each message passing through the system, for specific domains.

begin transports

makecopy:
  driver = appendfile
  batch_max = 100
  use_bsmtp
  file = COPYFILE
  message_prefix =
  message_suffix =
  user = COPYUSER

# This transport is used for passing the message on to the next host.

pass_on:
  driver = smtp
  connect_timeout = 1s


# ----- Retry -----


begin retry

*    *    F,2h,15m; G,16h,1h,1.5; F,4d,8h


# End