HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   sendmail config / send with specific ip (http://www.howtoforge.com/forums/showthread.php?t=2177)

penguinol 21st January 2006 03:42

sendmail config / send with specific ip
 
Hello, is anyone aware of an option that forces sendmail to send using a specific ip address on a machine?

Thanks.

falko 21st January 2006 07:01

Have a look here: http://www.howtoforge.com/forums/showthread.php?t=25

Instead of using Webmin, you can edit the file /etc/mail/sendmail.cf (or wherever your sendmail.cf is) and restart Sendmail.

themachine 21st January 2006 07:54

minor adjustment to what falko said... you do not want to make changes to the "sendmail.cf".... the file you want to make changes to is the "sendmail.mc". Always think of the ".mc" and "Make Changes" and you'll never forget. When you make changes to the sendmail.mc... you then need to "make" the changes active. This depends on you distro and everything... but usually 'cd'ing into '/etc/mail' and running "make" will work... or something like "make -m4 /etc/mail" or something stupid like that.

note... i hate sendmail and recommend postfix!!!! ;)

penguinol 21st January 2006 21:00

Yes, before I posted here I had tried editing the port options, and changing the listening smtp ip address was successful, however, mail was still sent via a different ip. Is this a routing issue?

falko 22nd January 2006 08:23

Is your system behind a router or directly connected to the internet?

penguinol 22nd January 2006 21:47

It's a dedicated server at a datacenter.

falko 22nd January 2006 23:18

Quote:

Originally Posted by penguinol
however, mail was still sent via a different ip. Is this a routing issue?

How do you know the mail was sent via a different IP address?

What's in the header of such a mail?

penguinol 22nd January 2006 23:50

Received: from unknown (HELO host.domain) ([x.x.x.x])

where host.domain is the localhost name, and x.x.x.x is the incorrect IP. For example, when i set y.y.y.y as the listening IP in the smtp portions and netstat, it shows that it is listening on y.y.y.y. However, when the mail is sent, the header shows that it was received from x.x.x.x as in above.

falko 23rd January 2006 05:59

I think the problem is that host.domain's DNS record points to x.x.x.x, not y.y.y.y. That's why x.x.x.x appears in the mail header.

penguinol 24th January 2006 01:27

I use my own nameservers, and it resolves forward and reverse. :/


All times are GMT +2. The time now is 18:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.