View Single Post
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: 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=<>,[], 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[]
Sep 5 11:24:21 host postfix/smtpd[15452]: 2E60B125000F:[], 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[]
Sep 5 11:24:22 host postfix/smtp[15455]: 2E60B125000F: to=<>,[], 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