View Single Post
  #1  
Old 5th September 2006, 12:07
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 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: 11.22.33.44


When sending from the PHP form:
Quote:
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[72.14.205.27], 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!):
Quote:
Sep 5 11:24:21 host postfix/smtpd[15452]: connect from a11-22-33-44.adsl.cistron.nl[11.22.33.44]
Sep 5 11:24:21 host postfix/smtpd[15452]: 2E60B125000F: client=a11-22-33-44.adsl.cistron.nl[11.22.33.44], 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[11.22.33.44]
Sep 5 11:24:22 host postfix/smtp[15455]: 2E60B125000F: to=<email_address@gmail.com>, relay=gmail-smtp-in.l.google.com[72.14.205.27], 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 12:11.
Reply With Quote
Sponsored Links