Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 28th March 2010, 23:58
jseedev jseedev is offline
Junior Member
Join Date: Mar 2010
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default Postfix and multiple IPs/Domains

I have a CentOS 5.4 box, running ISPConfig 3. I have about 5 additional IPs configured on this server. I have all the IPs configured in ISPConfig (not that it applies to the problem at hand) and have 2 sites setup through ISPConfig. domain1.com and domain2.com

domain1.com hosts the nameservers for domain2.com

domain1.com points to the primary IP - lets call it
domain2.com points to a secondary IP - lets call it

When I use PHP mail() to send an e-mail from domain2.com, my "Received From:" header shows the primary IP ( instead of the IP assigned to domain2.com (

My question is, how do I get postfix to sign the outbound e-mails from sendmail.postfix as the triggering domain? (In this instance, domain2.com or

I know that I can modify ALL outbound headers with /etc/postfix/main.cf and changing $myhostname, but I want the header to be marked with the triggering domain's assigned IP or hostname (either would suffice).
Reply With Quote
Sponsored Links
Old 15th July 2011, 15:52
raczkowski1 raczkowski1 is offline
Junior Member
Join Date: Jul 2011
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post

I have the same problem, diid you do it?

Dariusz Raczkowski
Reply With Quote
Old 16th July 2011, 13:01
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

These links might help: http://www.linuxmail.info/postfix-mu...smtp-greeting/
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


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
Postfix Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 13:51
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 06:39
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 18:57

All times are GMT +2. The time now is 02:11.

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