Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-17-2003, 06:30 PM
|
#1
|
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Rep:
|
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 07:30 PM.
|
|
|
|
11-17-2003, 07:53 PM
|
#2
|
|
Member
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160
Rep:
|
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.
|
|
|
|
11-18-2003, 10:24 AM
|
#3
|
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Original Poster
Rep:
|
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
|
|
|
|
11-18-2003, 08:54 PM
|
#4
|
|
Member
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160
Rep:
|
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?
|
|
|
|
11-19-2003, 10:17 AM
|
#5
|
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Original Poster
Rep:
|
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
|
|
|
|
11-19-2003, 03:42 PM
|
#6
|
|
Member
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160
Rep:
|
Damn! Wish I'd thought of that. Learn something new every day.
Hope it all goes smoothly from now on,
DaveG.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:58 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|