Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st January 2006, 03:42
penguinol penguinol is offline
Junior Member
 
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 21st January 2006, 07:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st January 2006, 07:54
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!!!!
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #4  
Old 21st January 2006, 21:00
penguinol penguinol is offline
Junior Member
 
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #5  
Old 22nd January 2006, 08:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Is your system behind a router or directly connected to the internet?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 22nd January 2006, 21:47
penguinol penguinol is offline
Junior Member
 
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's a dedicated server at a datacenter.
Reply With Quote
  #7  
Old 22nd January 2006, 23:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 22nd January 2006, 23:50
penguinol penguinol is offline
Junior Member
 
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #9  
Old 23rd January 2006, 05:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 24th January 2006, 01:27
penguinol penguinol is offline
Junior Member
 
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 22:09
Can't send outside domain ejkeebler Server Operation 2 12th November 2005 22:01
Can't SEND eMails. DanceNgine Installation/Configuration 21 6th October 2005 18:12
Recompile PHP after Sendmail reconfigured ? Roman Installation/Configuration 16 31st August 2005 23:20
Config file templates till Developers' Forum 0 30th July 2005 23:10


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


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