
This proved useful when I implemented MailScanner for Carbide-Finger Limited
By adding a smart router you can act as the primary mx for a domain that actually isn't local to your server at all for example: I used this to push virus & spam filtered mail onto a customers Exchange Server negating the need for POP boxes.
To implement smart routers:
Then open /etc/staticroutes in your favourite text editor (vi is my preference) and add each domain you would like pushed on in the following format (one per line):
target.mail.server can be a FQDN or an IP address
In the Routers Configuration section of your exim.conf add the following:
Then after an exim restart you should have working smart routers (its always worthwhile to tail the exim_mainlog for a while afterwards just to make sure its ok)
Thanks to 'projectandrew' on the cPanel Forums for this one.
Sponsors: Bridge Loan | Bridging Loan
Worked like a charm! Thank you!
[...] Thanks to Nick Pack [...]
could you use this to route email for just one person? e.g. bob@domainname.com? I want to test webroot with a real email account, but don’t want to point my entire organisation’s email at their service!
Is it possible to forward the mail to like port 26 like this: domainname.com: target.mail.server:26 I want to be able to forward mail for specific domains to my home e-mail server. Tho my provider has blocked port 25, so that’s why I’m asking. Thanks and best regards, Jeroen.
[...] I think is the tag line, though, it is certainly physically doable. You can do it as such: nickpack.com - Using Exim as a smarthost Those entries would go in the advanced configuration editor, if you go right below the [...]
[...] correctly, is smart routers within Exim (smarthosts to many) Heaps of doc, just one example - nickpack.com - Using Exim as a smarthost Would require going into the Exim advanced config - as well I should point out, I don’t think this [...]
[...] Exim configuration changes - nickpack.com - Using Exim as a smarthost [...]
HTML tags allowed in comments are: strong,em,ul,ol,li, URL's are automatically converted to links so no need to use <a>.