blob: 8217278c4da2025b68ec525e7b212441947a97ad (
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
|
# Exim test configuration 0134
exim_path = EXIM_PATH
host_lookup_order = bydns
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME
tls_advertise_hosts =
# ----- Main settings -----
domainlist local_domains = test.ex: *.test.ex
qualify_domain = test.ex
# ----- Routers -----
begin routers
topipe:
driver = accept
caseful_local_part
retry_use_local_part
domains = pipe.domain
local_parts = PIPE
transport = pipe
domainlist:
driver = manualroute
caseful_local_part
domains = lsearch;DIR/aux-fixed/TESTNUM.listR
headers_add = "domainlist: dd=$domain_data lpd=$local_part_data"
local_parts = lsearch;DIR/aux-fixed/TESTNUM.listR
route_list = *
transport = appendfile
default1:
driver = manualroute
domains = ! +local_domains
route_list = *
transport = appendfile
no_more
smartuser:
driver = accept
domains = lsearch;DIR/aux-fixed/TESTNUM.listD
headers_add = "smartuser: dd=$domain_data lpd=$local_part_data"
local_parts = lsearch;DIR/aux-fixed/TESTNUM.listD
retry_use_local_part
transport = appendfile
default2:
driver = accept
headers_add = router: defaulted
retry_use_local_part
transport = appendfile
# ----- Transports -----
begin transports
# We want local parts with different casing to be different, but this goes
# wrong on file systems that are not case-dependent. So fudge the file names
# by steam - an lsearch lookup is no good because it is case-independent.
appendfile:
driver = appendfile
user = CALLER
headers_add = "domain_data: $domain_data\n\
local_part_data: $local_part_data"
file = DIR/test-mail/\
${if eq {$local_part}{unknown}{lc-unknown}{\
${if eq {$local_part}{USERX}{UC-USERX}{\
${if eq {$local_part}{userx}{lc-userx}{\
$local_part}}}}}}
pipe:
driver = pipe
command = /bin/sh -c "echo $local_part $domain >DIR/test-mail/$local_part"
user = CALLER
# ----- Retry -----
begin retry
* * F,1d,15m
# End
|