diff options
author | root | 2017-03-29 23:46:36 +0200 |
---|---|---|
committer | root | 2017-03-29 23:46:36 +0200 |
commit | 904f2042df61ac52e5eb077839b2d6f93c5d1217 (patch) | |
tree | fe85718932f0c9a3522bdc78dd21d5cdc60cacca /conf.d/030_routers.conf | |
parent | fed59864f03887ed31c586fb149775ca38a7d3ac (diff) | |
download | exim-904f2042df61ac52e5eb077839b2d6f93c5d1217.tar.gz |
Add local smtp lookup
Diffstat (limited to 'conf.d/030_routers.conf')
-rw-r--r-- | conf.d/030_routers.conf | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/conf.d/030_routers.conf b/conf.d/030_routers.conf index a74fb44..be3651f 100644 --- a/conf.d/030_routers.conf +++ b/conf.d/030_routers.conf | |||
@@ -23,6 +23,16 @@ begin routers | |||
23 | # transport = remote_smtp | 23 | # transport = remote_smtp |
24 | 24 | ||
25 | 25 | ||
26 | localrouting: | ||
27 | domains = ! +local_domains | ||
28 | transport = remote_smtp | ||
29 | ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1 | ||
30 | driver = manualroute | ||
31 | route_data = ${lookup{$domain}lsearch*{SMTPMAP}} | ||
32 | host_find_failed = ignore | ||
33 | host_all_ignored = pass | ||
34 | |||
35 | |||
26 | # This router routes addresses that are not in local domains by doing a DNS | 36 | # This router routes addresses that are not in local domains by doing a DNS |
27 | # lookup on the domain name. The exclamation mark that appears in "domains = ! | 37 | # lookup on the domain name. The exclamation mark that appears in "domains = ! |
28 | # +local_domains" is a negating operator, that is, it can be read as "not". The | 38 | # +local_domains" is a negating operator, that is, it can be read as "not". The |
@@ -39,7 +49,7 @@ begin routers | |||
39 | dnslookup: | 49 | dnslookup: |
40 | driver = dnslookup | 50 | driver = dnslookup |
41 | domains = ! +local_domains | 51 | domains = ! +local_domains |
42 | transport = remote_smtp | 52 | transport = signed_smtp |
43 | ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1 | 53 | ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1 |
44 | no_more | 54 | no_more |
45 | 55 | ||
@@ -160,8 +170,8 @@ mail_aliases: | |||
160 | # cannot_route_message = Unknown user | 170 | # cannot_route_message = Unknown user |
161 | 171 | ||
162 | 172 | ||
163 | local_user: | 173 | localuser: |
164 | transport = dovecot_lmtp | 174 | transport = remote_lmtp |
165 | domains = +local_domains | 175 | domains = +local_domains |
166 | driver = manualroute | 176 | driver = manualroute |
167 | route_data = ${lookup{$domain}lsearch*{LMTPMAP}} | 177 | route_data = ${lookup{$domain}lsearch*{LMTPMAP}} |