Linux - NetworkingThis 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.
Currently my sendmail sends mail using the default route.
i have multiple interfaces and want to force sendmail to use one that isn't the default route.
is there a way for me to force sendmail to use a different interface then the default route?
As you have multiple NICs I assume that for some reason you want ONLY SMTP (outgoing mail) to use a route other than the default (other outgoing connections to services (ports) use the default) ??
If so, you obviously cannot change your route with as suggested by others. I never ran across this exact problem before so even dug out my sendmail book and looked there -- no configuration directive for sendmail.mc (at least that I could find). So, I would look at setting up iptables to route only outgoing port 25 (SMTP) out on a specific interface. That's the only thing I can think of right now that may solve what I think you say is your problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.