View Single Post
  #10 (permalink)  
Old 08-21-2007, 11:11 PM
southplatte's Avatar
southplatte southplatte is offline
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Colorado
Posts: 358
southplatte RepRank 1
Default Re: Mail all going to bulk

Quote:
Originally Posted by vittorio View Post
Hi all,

I am holding a forum on PHP and have digged into this thing for a while.
Sofar I can state the following :

1) php mail() is per default taken to Junk folder in HOTMAIL and in BULK folder in YAHOO
2) Hotmail setting are a bit more complex than YAHOO to be targeted successfully
. . . if you want that your webmail works properly ask your DNS provider to issue an SPF record on your DNS SERVER
. . . thereafter register to Sender ID by sending an E-mail to : senderid@microsoft.com by stating your mail SERVER as follows : admin@Your_Server.com

If you want to avoid all this please use SMTP phpMAILER and NOT mail() [php-function]

For registration to my forum I have made all this personally, sofar I manage a reseller accoint and have access to DNS server through my WHM panel.

For more information visit my forum http://pr.c-php.com/forum/viewtopic.php?t=19
All details are available to forum members

The problem isn't (at least not in my experience and opinion) with the PHP mail() function, it is with the server configuration. PHP by default sends it from the user that apache or PHP is running as, generally apache@localhost or httpd@localhost and modfies the headers. With the SMTP you are specifying a user and password to send the email as, that the SMTP is setup to use, therefore the headers are not modified by PHP by default.

This triggers the spam filters. When I setup our server at work, it all ways went to our spam folder when sending customer contact messages to ourselves - the reason after reading the McAffee logs was the headers being forced to be different than the machine name.

Unfortunately on Linux, the machine name may be Server32.hostcompany.com for the FQDN - however with the virtual sites, they modify it to be www.yourdomainname.com or mail.yourdomainname.com and this automatically triggers spam filters since the mail header by default will contain the modified header and the original header that the sendmail or postfix programs use that is set system wide.

As soon as I set the FQDN and machine name to be the same, our mail was going through to our customers and passing our spam filter even after removing the allow rules that we had to setup prior just to be able to copy our various departments on the emails.
Reply With Quote