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.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 5th September 2006, 13:07
edge edge is offline
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts
Default Weird problem when sending email from a PHP form.

I've got this online registration for that will send a confirmation email back to the user.
The problem is that when the email is send from the form it will show "www-data@host.domainname.tld"
Problem with this is that there is no SPF record for this, causing some registrations not to get to the user (hotmail does not accept mail when SPF is wrong)

Now my HOSTNAME is host.domainname.tld, so I thought by adding host.domainname.tld to the existing SPF record for domainname.tld would fix it.
Wrong.. The problem is still their.

The problem is the from: www-data@host.domainname.tld
I think if it would read www-data@domainname.tld that all is okay!

I've had a look at PHP.ini, but see nothing where I can set this.

Anyone here who might know how to fix this problem?

This is the data from the: mail.info file
(note that I have changed some things for privacy reasons)
I have changed the domainname.tld, the email_address, an_email_address and the IP:

When sending from the PHP form:
Sep 5 11:21:16 host postfix/pickup[11837]: DB072125000F: uid=33 from=<www-data>
Sep 5 11:21:16 host postfix/cleanup[14600]: DB072125000F: message-id=<20060905092116.DB072125000F@domainname.tld>
Sep 5 11:21:16 host postfix/qmgr[11838]: DB072125000F: from=<www-data@host.domainname.tld>, size=522, nrcpt=1 (queue active)
Sep 5 11:21:18 host postfix/smtp[14602]: DB072125000F: to=<email_address@gmail.com>, relay=gmail-smtp-in.l.google.com[], delay=2, status=sent (250 2
Sep 5 11:21:18 host postfix/qmgr[11838]: DB072125000F: removed
When sending with SMTP (and all is ok!):
Sep 5 11:24:21 host postfix/smtpd[15452]: connect from a11-22-33-44.adsl.cistron.nl[]
Sep 5 11:24:21 host postfix/smtpd[15452]: 2E60B125000F: client=a11-22-33-44.adsl.cistron.nl[], sasl_method=LOGIN, sasl_username=web4_me
Sep 5 11:24:21 host postfix/cleanup[15454]: 2E60B125000F: message-id=<004f01c6d0cd$46731ca0$0400000a@xeon2>
Sep 5 11:24:21 host postfix/qmgr[11838]: 2E60B125000F: from=<me@an_email_address>, size=685, nrcpt=1 (queue active)
Sep 5 11:24:21 host postfix/smtpd[15452]: disconnect from a11-22-33-44.adsl.cistron.nl[]
Sep 5 11:24:22 host postfix/smtp[15455]: 2E60B125000F: to=<email_address@gmail.com>, relay=gmail-smtp-in.l.google.com[], delay=1, status=sent (250 2
Sep 5 11:24:22 host postfix/qmgr[11838]: 2E60B125000F: removed

Last edited by edge; 5th September 2006 at 13:11.
Reply With Quote
Sponsored Links


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
Newbie: Creating a simple php form email, how? mancho Programming/Scripts 3 8th August 2006 17:07
Problem with 'CC' & 'BCC' email not being delivered. snowfly HOWTO-Related Questions 10 20th July 2006 13:36
php script injections Grizzly General 21 18th July 2006 09:55
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58
Sending email problem andrew2603 Installation/Configuration 4 7th February 2006 04:36

All times are GMT +2. The time now is 05:58.

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