LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-17-2003, 07:30 PM   #1
Dewar
Member
 
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90

Rep: Reputation: 15
Routing outgoing mail on a dual external interface system with sendmail


First off, I'm aware of the disadvantages of sendmail over qmail and the like, but I am required to use sendmail by my boss, so I can't switch over. (A shame really, sendmail is quickly becoming my nemisis)

Alright, my internet gateway/mail server is set up with one external interface and two external interfaces. Each of the external interfaces goes to a different DSL provider. Using zebra and advanced routing, the gateway load balances between the two connections and provides fail-over abilities.

My problem is that one of the connections has much more lag and connection problems than the other, and my boss really wants e-mail transfering quick out of the chute. I'd like to make sendmail only send outgoing mail through the quicker of the two interfaces (in other words, I want to force it to use eth0 over all other connections) Also, if possible, I'd like to let sendmail fail over to the second, slower connection if the first dies.

Thank you all you sendmail gurus out there
-Derek

...moved to the Linux - Netwoking forum

Last edited by mcleodnine; 11-17-2003 at 08:30 PM.
 
Old 11-17-2003, 08:53 PM   #2
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160

Rep: Reputation: 43
I think the solution is going to be in the zebra domain.

sendmail just asks DNS about MX hosts and lets TCP/IP do the rest. The only sendmail configuration that comes to mind is forcing a connection back out through the incoming interface.
 
Old 11-18-2003, 11:24 AM   #3
Dewar
Member
 
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90

Original Poster
Rep: Reputation: 15
There isn't a whole lot under zebra to configure, and none of it does what I need it to do. Is there perhaps another package I can download that will sort outgoing packets to different interfaces by destination port?

-Derek
 
Old 11-18-2003, 09:54 PM   #4
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160

Rep: Reputation: 43
Looking at the sendmail docs, you may want to try "ClientPortOptions". That should allow you to specify which interface is used for the outgoing SMTP connection. I don't see a simple way to support fail-over with this.

If one link is faster than the other, what about using ifconfig to adjust the link metrics?
 
Old 11-19-2003, 11:17 AM   #5
Dewar
Member
 
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90

Original Poster
Rep: Reputation: 15
I changed the link metrics as you suggested, but every e-mail was still taking more than a minute to send over the slower link. After much pain and suffering, my boss figured out that he had failed to put a DNS record on the server for the second IP. With out that DNS entry, reverese DNS lookups were failing, so pickey servers weren't acepting mail. The mail then had to be send through the other IP, and all this extra time is what caused the minute long delay.

Thanks for everyone's help.
-Derek
 
Old 11-19-2003, 04:42 PM   #6
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160

Rep: Reputation: 43
Damn! Wish I'd thought of that. Learn something new every day.

Hope it all goes smoothly from now on,

DaveG.
 
  


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
sendmail and outgoing mail shafey Linux - Networking 1 11-16-2005 05:57 AM
Filtering Outgoing Mail With Sendmail WeNdeL Linux - Software 1 08-25-2004 04:12 PM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 03:24 AM
Sendmail : How To control outgoing mail joseph Linux - Software 0 02-16-2004 08:30 PM
sendmail outgoing mail karunesh Linux - General 0 11-17-2003 03:19 PM


All times are GMT -5. The time now is 01:23 AM.

Main Menu
Advertisement
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