|
|||
|
I need Exim to direct all outgoing mail to an external mail server. I think I need Exim to ignore /etc/localdomains or something and add a new router in /etc/exim.conf. Can anyone elaborate on this? How can I prevent cPanel updates from overwriting my custom exim.conf file?
|
|
|||
|
SMTP relay
Try this matey
First box in routers static_route: driver = manualroute transport = remote_smtp route_data = ${lookup{$domain}lsearch{/etc/staticroutes}} now create a file in /etc/staticroutes that looks like this domain.net: 62.xx.xxx.xxx domain.co.uk: 62.xx.xxx.xxx domain2.co.uk: 62.xx.xxx.xxx domain2.net: 62.xx.xxx.xxx That will route (once it has been spam checked) to the IP of their mailserver. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|