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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 23rd May 2008, 19:28
spdavid spdavid is offline
Junior Member
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix config - virtual domain mapping problem

I am currently hosting a few websites with ISPConfig and use Postfix simply to relay web generated emails (from web site contact forms) via smtp. I don't do any local mail hosting. This is working fine, however my problem is that when I inspect the headers of the emails generated from my sites they all contain "Return-Path:" and "Received:" from my own domain, rather than the domain from which the email originated. For example, say my main domain is www.site1.com but I am sending an email via a contact form at www.site2.com. If I look at the email header it looks like the email originates from site1.com when it should be originating from site2.com.

In my main.cf I have myhostname set to site1.com. Don't know what this should be set to in an ISP environment.

I am new to Postfix and have spent several hours trying to find a solution to my problem - Thanks for any pointers!
Reply With Quote
Sponsored Links
Old 24th May 2008, 13:49
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

If you're using PHP's mail() function to send mails, you should set additional headers, as shown on http://de3.php.net/manual/en/function.mail.php
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: Generic mapping not working DanielB Server Operation 0 29th January 2008 00:41
Postfix Problem tardomatic Server Operation 2 12th December 2007 14:59
Virtual Users And Domains With Postfix, Courier And MySQL Login Problem BCNW HOWTO-Related Questions 6 4th January 2007 02:43
Virtual postfix sending problem generalchaos HOWTO-Related Questions 8 14th July 2006 12:50
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58

All times are GMT +2. The time now is 21:41.

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