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.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd May 2008, 18: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
  #2  
Old 24th May 2008, 12:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

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
__________________
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
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
Postfix: Generic mapping not working DanielB Server Operation 0 28th January 2008 23:41
Postfix Problem tardomatic Server Operation 2 12th December 2007 13:59
Virtual Users And Domains With Postfix, Courier And MySQL Login Problem BCNW HOWTO-Related Questions 6 4th January 2007 01:43
Virtual postfix sending problem generalchaos HOWTO-Related Questions 8 14th July 2006 11:50
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 09:15.


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