Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail question

Status
Not open for further replies.

ArizonaGeek

IS-IT--Management
Aug 21, 2006
768
US
I have two interfaces on my linux mail server running sendmail as a relay, for sake of ease lets say eth0 is 10.10.10.10 and eth1 is 10.10.20.20. They are on two different T1 lines and I have eth1 configured with all the appropriate records and have the masquerade listed in the sendmail.mc. What is happening is we are moving to the eth0 network and at the moment I have some users sending on the eth1 network with no problems but I have a user (the only one right now) sending on the eth0 network and getting a kick back since the outside IP address on that network isnt resolving to the masquerade address. Can I add two masquerades for both networks?

At some point the eth1 network is going away but in the mean time I need people to be able to send out of both networks and both being resolved. I have the outside addresses set up with DNS records and NATed I just kinda need both to work at the same time. So eth0 goes out with its own and eth1 goes out with its own. I am sure it is fairly easy to set but I couldn't find any info on it. Can anyone help? Thanks in advance!

Cheers
Rob

The answer is always "PEBKAC!
 
I am not sure I understood your question, forgive me but I am not english, anyway, from what you are saying you are having problems with masquerading therefore I assume the problem is from outside and only with sending/relying onto the server.

Am I on the right track?

QatQat



If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
You are partially correct. I am having problems with some of our recipients. Because we only have one masuerade address when we send email thru our second connection the DNS of the masquerade address comes back different. So, as part of their filtering they reject email going on our eth0 address since it won't resolve correctly.

Essentially I need to know if I can set up two masquerades and how would I configure both to know which IP address it belongs to.

Thanks for the help!

Cheers
Rob

The answer is always "PEBKAC!
 
So your problem, if I got it right, is that you have two different addresses for the same mail server MX record, therefore, receiving servers, when validating your messages' address/DNS reject your mail.

If you have ip_forward enabled you can masquerade both interfaces' outgoing traffic onto the interface that has the correct address for your mail server's DNS records.


QatQat









If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top