FAQ / Routing to remote hosts / Q0308
| /Q0301 /Q0302 /Q0303 /Q0304 /Q0305 /Q0306 /Q0307 /Q0308 /Q0309 /Q0310 /Q0311 /Q0312 /Q0313 /Q0314 /Q0315 /Q0316 /Q0317 /Q0318 /Q0319 /Q0320 /Q0321 /Q0322 |
Q0308
Question
I have a domain for which some local parts must be delivered locally, but the remainder are to be treated like any other remote addresses.
Answer
One possible way of doing this is as follows: Assuming you are using a configuration that is similar to the default one, first exclude your domain from the first router by changing it to look like this:
non_special_remote: driver = dnslookup domains = ! +local_domains : ! special.domain transport = remote_smtp ignore_target_hosts = 127.0.0.0/8 no_more
Then add a second router to handle the local parts that are not to be delivered locally:
special_remote: driver = dnslookup domains = special.domain local_parts = ! lsearch;/list/of/special/localparts transport = remote_smtp ignore_target_hosts = 127.0.0.0/8 no_more
The remaining local parts will fall through to the remaining routers, which can delivery them locally.
| /Q0301 /Q0302 /Q0303 /Q0304 /Q0305 /Q0306 /Q0307 /Q0308 /Q0309 /Q0310 /Q0311 /Q0312 /Q0313 /Q0314 /Q0315 /Q0316 /Q0317 /Q0318 /Q0319 /Q0320 /Q0321 /Q0322 |
FAQ / Routing to remote hosts / Q0308
