View Single Post
  #1  
Old 23rd September 2008, 08:36
cat cat is offline
Member
 
Join Date: Sep 2008
Location: Australia
Posts: 40
Thanks: 9
Thanked 3 Times in 3 Posts
Default php email script www-data

Thanks for a great product, ispconfig is making site management much easer.

I am writing a php script that sends an email to the user who fills in a form, and a copy of the email to the sales department of the site. When the out ward bound email arrives the Recipient/From looks like www-data@mail.myserver.mydomain.com when it should look like sales@mydomain.com and the email that should go to the sales department never arrives.

I have setup the site with two Co-Domains both with DNS: and DNS MX: ticked

ip_address www mydomain.com
ip_address mydomain.com

I have set up two users
user1 user1@mydomain.com
user2 sales@mydomain.com

when I view the mail source of the test email the arrives I see (ip addresses changed to protect the innocent).

From www-data@mail.myserver.mydomain.com Tue, 23 Sep 2008 00:00:51 -0400
Received: from kumquat.safe-mail.net ([0.0.0.])
by tamar.safe-mail.net with smlocal (smtas 1.2);
Tue, 23 Sep 2008 00:01:21 -0400
DomainKey-Status: not-signed (some+real)
X-SMTests: g00nmp0i0b0aR00u
Received: from 0.0.0.0.dynamic.rev.aanet.com.au ([0.0.0.0] helo=mail.myserver.mydomain.com)
by kumquat.safe-mail.net with esmtp (TLSv1/SSLv3:AES256-SHA:256) (smtpd 1.0)
id N1K-PWiIWDsmZX
for myaccount@safe-mail.net; Tue, 23 Sep 2008 00:00:51 -0400
Received-SPF: no-spf
Received: by mail.myserver.mydomain.com (Postfix, from userid 33)
id 15929186C0; Tue, 23 Sep 2008 12:01:02 +0800 (WST)
To: myaccount@Safe-mail.net
Subject: Your Quote Request
MIME-Version: 1.0

Content-type: text/html; charset=iso-8859-1

To: myaccount@Safe-mail.net

From: sales@mydomain.com

Cc:

Message-Id: <20080923040102.15929186C0@mail.myserver.mydomain. com>
Date: Tue, 23 Sep 2008 12:01:02 +0800 (WST)
Reply With Quote
Sponsored Links