LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   exim redirect outgoing mail for one domain to another server (https://www.linuxquestions.org/questions/linux-server-73/exim-redirect-outgoing-mail-for-one-domain-to-another-server-758656/)

RKris 09-30-2009 06:56 AM

exim redirect outgoing mail for one domain to another server
 
hi,

is it possible to redirect outgoing mail of a domain from exim to another server?

-RKris

hexahost 10-01-2009 05:25 AM

Quote:

Originally Posted by RKris (Post 3701727)
hi,

is it possible to redirect outgoing mail of a domain from exim to another server?

-RKris

Yes, You can. The answer is using using another mailserver as a smarthost your your exim.

Do a google search :

example guide : http://www.lexspoon.org/linux/smtp-relay.html

RKris 10-01-2009 10:15 AM

i am looking to redirect aol.com emails from the mailserver to another relay server.

RKris 10-01-2009 10:43 AM

i added this at the beginning of routers

smarthost_aol:
condition = ${if eq {${lc:$sender_address_domain}} {aol.com} {true} fail }
driver = manualroute
transport = remote_smtp
route_list = "* smtp.server.dom bydns_a"

but the mail still goes by dnslookup.

RKris 10-02-2009 06:00 AM

i got it working, edit exim4.conf

domainlist smarthost_domains = domain1:domain2.com

then in routers section

smarthost:
driver = manualroute
domains = +smarthost_domains
transport = remote_smtp
route_list = +smarthost_domains IP_or_DNS_of_smarthost


All times are GMT -5. The time now is 07:04 PM.