FAQ / Routing to remote hosts / Q0313
| /Q0301 /Q0302 /Q0303 /Q0304 /Q0305 /Q0306 /Q0307 /Q0308 /Q0309 /Q0310 /Q0311 /Q0312 /Q0313 /Q0314 /Q0315 /Q0316 /Q0317 /Q0318 /Q0319 /Q0320 /Q0321 /Q0322 |
Q0313
Question
I send all external mail to a smart host, but this means that bad addresses also get passed to the smart host. Can I avoid this?
Answer
Assuming you have DNS availability, set up a conventional dnslookup router to do the routing, but in the remote_smtp transport set this:
hosts = your.smart.host hosts_override
This will override the hosts that the router finds so that everything goes to the smart host, but any non-existent domains will be failed by the router.
| /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 / Q0313
