summaryrefslogtreecommitdiff
path: root/conf.d/030_routers.conf
diff options
context:
space:
mode:
authorroot2017-03-28 15:58:14 +0200
committerroot2017-03-28 15:59:59 +0200
commitdbe252d56cbb87bf749c108299f99d831c388241 (patch)
tree04a0a7a559400e22fbd8d375ebd3d536d35f7fca /conf.d/030_routers.conf
parent1bc70e549938fe8e3c4c33230726ac6cdacd575e (diff)
downloadexim-dbe252d56cbb87bf749c108299f99d831c388241.tar.gz
Configure routers and transports, with DKIM and SSL
Diffstat (limited to 'conf.d/030_routers.conf')
-rw-r--r--conf.d/030_routers.conf68
1 files changed, 42 insertions, 26 deletions
diff --git a/conf.d/030_routers.conf b/conf.d/030_routers.conf
index 28a7dd2..c88b94c 100644
--- a/conf.d/030_routers.conf
+++ b/conf.d/030_routers.conf
@@ -37,12 +37,10 @@ begin routers
37# setting, and consequently the address is unrouteable. 37# setting, and consequently the address is unrouteable.
38 38
39dnslookup: 39dnslookup:
40 driver = dnslookup 40 driver = dnslookup
41 domains = ! +local_domains 41 domains = ! +local_domains
42 transport = remote_smtp 42 transport = remote_smtp
43 ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 43 ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1
44# if ipv6-enabled then instead use:
45# ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1
46 no_more 44 no_more
47 45
48 46
@@ -86,13 +84,22 @@ dnslookup:
86# to set up different ones for pipe and file deliveries from aliases. 84# to set up different ones for pipe and file deliveries from aliases.
87 85
88system_aliases: 86system_aliases:
89 driver = redirect 87 driver = redirect
90 allow_fail 88 allow_fail
91 allow_defer 89 allow_defer
92 data = ${lookup{$local_part}lsearch{/etc/mail/aliases}} 90 data = ${lookup{$local_part}lsearch{/etc/mail/aliases}}
93# user = exim 91# user = exim
94 file_transport = address_file 92 file_transport = address_file
95 pipe_transport = address_pipe 93 pipe_transport = address_pipe
94
95
96mail_aliases:
97 driver = redirect
98 allow_fail
99 allow_defer
100 data = ${lookup{$local_part@$domain}lsearch{ALIASMAP}}
101 file_transport = address_file
102 pipe_transport = address_pipe
96 103
97 104
98# This router handles forwarding using traditional .forward files in users' 105# This router handles forwarding using traditional .forward files in users'
@@ -121,19 +128,19 @@ system_aliases:
121# forwarding generates a direct delivery to a file, or to a pipe, or sets 128# forwarding generates a direct delivery to a file, or to a pipe, or sets
122# up an auto-reply, respectively. 129# up an auto-reply, respectively.
123 130
124userforward: 131#userforward:
125 driver = redirect 132# driver = redirect
126 check_local_user 133# check_local_user
127# local_part_suffix = +* : -* 134# local_part_suffix = +* : -*
128# local_part_suffix_optional 135# local_part_suffix_optional
129 file = $home/.forward 136# file = $home/.forward
130# allow_filter 137# allow_filter
131 no_verify 138# no_verify
132 no_expn 139# no_expn
133 check_ancestor 140# check_ancestor
134 file_transport = address_file 141# file_transport = address_file
135 pipe_transport = address_pipe 142# pipe_transport = address_pipe
136 reply_transport = address_reply 143# reply_transport = address_reply
137 144
138 145
139# This router matches local user mailboxes. If the router fails, the error 146# This router matches local user mailboxes. If the router fails, the error
@@ -144,10 +151,19 @@ userforward:
144# part_suffix options. Then, for example, xxxx-foo@your.domain will be treated 151# part_suffix options. Then, for example, xxxx-foo@your.domain will be treated
145# in the same way as xxxx@your.domain by this router. 152# in the same way as xxxx@your.domain by this router.
146 153
147localuser: 154#localuser:
148 driver = accept 155# driver = accept
149 check_local_user 156# check_local_user
150# local_part_suffix = +* : -* 157# local_part_suffix = +* : -*
151# local_part_suffix_optional 158# local_part_suffix_optional
152 transport = local_delivery 159# transport = local_delivery
153 cannot_route_message = Unknown user 160# cannot_route_message = Unknown user
161
162
163local_user:
164 transport = dovecot_lmtp
165 domains = +local_domains
166 driver = manualroute
167 route_list = "* LMTP_BACKENDS byname"
168 host_find_failed = ignore
169 host_all_ignored = defer