LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2006, 05:15 PM   #1
jd6strings
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
Configuring Sendmail to use multiple NICs


Hello all! I hope someone can help me out here...

We've a Sendmail box running along just fine with a single NIC and Sendmail configured to bind to it with a routable IP. All is well with the config...our users are able to send and receive without any issues.

Now to the "how do I configuration"...I have another NIC in the server and I've also configured it with a routable IP on a totally different Class C block and I've configured Sendmail to bind to it as well using the following:

define(`confDONT_PROBE_INTERFACE', `True')dnl
...
FEATURE(`no_default_msa')dnl
...
DAEMON_OPTIONS(`Port=smtp,Addr=64.X.X.X, Name=MTA')
DAEMON_OPTIONS(`Port=smtp,Addr=204.X.X.X, Name=MTA')

The intention is redundancy in case one or the other IP blocks go offline and I want to use a single server.

I've two MX records set up with different priorites. For example:

mydomain.com. IN MX 5 mail
mydomain.com. IN MX 10 mail2
mail.mydomain.com. IN A 64.X.X.X
mail2.mydomain.com. IN A 204.X.X.X

I have two routers (Cisco 3640's) that correspond to each Class C block and eth0, eth1 are both configured to use the correct gateway.

When I save/rebuild my M4 config and use dnsstuff.com to check my DNS configs both of my IP's configured in the MX records successfully respond to a SMTP request...HOWEVER...our users that are using a mail client configured with an SMTP server of mail.mydomain.com can NO longer send email. What gives? I've spent hours on this and I have obviously tried everything that I can think of. Is this DNS related OR Sendmail related? HELP!!!
 
Old 01-19-2006, 05:38 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
sounds DNS related

but i have noticed that sendmail will use the default route on the box to send. binding it is just for listening, and since you want it to listen on both interfaces, you really don't need to define it.

so if your eth0 is the primary nic that probably has the default route, so when it goes down, sendmail doesn't know where to send.

Last edited by Finlay; 01-19-2006 at 05:40 PM.
 
Old 01-19-2006, 07:12 PM   #3
jd6strings
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks....But my customers can't send even when the default route is accessible per the aformentioned setup. Depending on the mail client they get a message like "connection was interrupted". Any ideas??
 
Old 01-19-2006, 08:33 PM   #4
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
are you using ssl or sasl?
if so you need to disable the email scanning on your antivirus because it can't scan encrypted mail

also when you type
hostname
make sure it types out what your domain is like domain.com
 
Old 01-19-2006, 10:43 PM   #5
jd6strings
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
No encryption whatsoever...I'm at a loss....for days now. 'hostname' ouput is correct. Any more ideas greatly appreciated.

Last edited by jd6strings; 01-19-2006 at 10:46 PM.
 
  


Reply



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
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
Configuring 3 NICs TuxFreak Linux - Networking 4 01-12-2005 03:16 PM
nat, multiple NICs the_y_man Linux - Networking 7 03-14-2004 11:34 AM
Configuring NICs in KDE Olusegun Linux - Newbie 2 02-07-2003 04:06 PM
multiple NICs paulonline2501 Linux - Hardware 2 07-23-2002 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:30 PM.

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
Open Source Consulting | Domain Registration