LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-30-2009, 06:56 AM   #1
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
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
 
Old 10-01-2009, 05:25 AM   #2
hexahost
LQ Newbie
 
Registered: Oct 2008
Location: Chennai - INDIA
Distribution: CentOS
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by RKris View Post
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
 
Old 10-01-2009, 10:15 AM   #3
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Original Poster
Rep: Reputation: 15
i am looking to redirect aol.com emails from the mailserver to another relay server.
 
Old 10-01-2009, 10:43 AM   #4
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Original Poster
Rep: Reputation: 15
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.
 
Old 10-02-2009, 06:00 AM   #5
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which qmail log file details outgoing mail? (have huge outgoing mail volume) hilljockey Linux - Server 2 12-08-2008 04:26 PM
Configure exim on Debian to redirect mail to another server syzzer Linux - Server 0 07-28-2008 07:04 AM
Redirect outgoing mail Haiyadragon Linux - Software 7 11-28-2007 12:11 AM
setup exim for remote outgoing mail matt1982 Linux - Newbie 2 11-23-2005 08:55 AM
Exim mail monitor for discovering outgoing spam/viruses TheSpork Linux - Software 0 11-30-2004 03:14 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration