We have sendmail running in a RHEL box. We have two public IP address configured in the same box, one for SAP app and other for Sendmail. First interface will be used for SAP and second for Sendmail.
I have bind
ed the Sendmail daemon on secondary NIC, but when I send out a mail, traffic is getting initiated via the primary NIC and connection is getting refused as port 25 is blocked for the this NIC in the firewall.
Can someone please help me out to resolve this? Should I make changes in Sendmail's config to route SMTP traffic via secondary NIC, or should I play with IPtables to get this done? I need some ideas.
Thanks in advance for the reply.
Christopher
As requested:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.x.x.32 0.0.0.0 255.255.255.240 U 0 0 0 eth1
10.90.9.96 0.0.0.0 255.255.255.224 U 0 0 0 eth0
0.0.0.0 xx.x.x.33 0.0.0.0 UG 0 0 0 eth1
ip route show
orroute -en
– Ulrich Dangel Jun 27 '12 at 10:06eth0
has no default route so you can only send mails via eth1 – Ulrich Dangel Jun 27 '12 at 10:30