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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to route mail betwenn 2 network interface cards ?

Status
Not open for further replies.

colas

IS-IT--Management
Jun 10, 2002
5
FR
- We have one firewall with sendmail.
- On this firewall we have 2 eth cards with 2 respectively different ip addresses.
- For spare we have 2 ISP
- Each ip is owned by one ISP
- Our default gateway (web, smtp traffic...) is on one ISP/eth card

>> I want that smtp go on the other ISP/eth card for different reasons.
How can I do ?
Thanks in advance.
 
If you want to define which interface sendmail should use add the following to your sendmail.mc
DAEMON_OPTIONS(`Port=smtp, Name=MTA, Address=127.0.0.1')
You will obviously replace the localhost address with the address of the interface you want sendmail to use.
Recompile sendmail with the m4 preprocessor
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Restart sendmail (if xinetd.d) use service sendmail restart.

Cogito Ergo Sum - Non Compos Mentis
 
Thanks for your information, BUT:

We have a special Sendmail because we use the INTERSCAN VIRUSWALL of TREND which is make with a special configuration of sendmail, so is there another way to obtain this result because I don't know what could be the consequences of recompilation of the special sendmail of INTERSCAN...
 
I don't know where the interscan viruswall is defined in sendmail. Post your sendmail.mc file.

Cogito Ergo Sum - Non Compos Mentis
 
I have not any sendmail.mc file...
 
Look in /etc or in /etc/mail it should be in one of those folders.

Cogito Ergo Sum - Non Compos Mentis
 
as root the command
gatekeeper:~ # find / -name "sendmail.mc" -print
found nothing...
 
Add it to the sendmail.cf directly (make sure you back up sendmail.cf first. It goes in the #SMTP daemon options field.


Cogito Ergo Sum - Non Compos Mentis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top