21
« on: February 14, 2014, 10:15:01 AM »
I have arrived at this point from another angle. I have been using MAIL to send messages to customers without problems. Until recently that is. I sent myself a test mail from the mail to customers form in admin. It didnt arrive. Subsequently I found that no mails to customers were arriving, though order confirmations to the store owner with addresses on the same damain as the store did arrive. I tracked the problem down to the sever host (webhosting buzz UK) blocking them as an anti spam measure. They said,
>>
From what we can see the email message has not been sent. This is the result of a recent ACL modification on the server hosting your account. One of its purposes is to block e-mails being sent from 'cPanelusername@serverhostname'. You can review more information on this implementation athttp://status.webhostingbuzz.com/index.php/2013/11/11/mail-service-configuration-alterations/
We were forced to implement these changes due to the recent increase of spam originating from compromised outdated CMS installations, from which mass spam is sent, resulting in blacklisting of the server's IP addresses in RBLs. To avoid these problems, you should reconfigure your contact form to perform a proper SMTP authentication, and sent emails from a valid email address that exists under your account.
To cut the long story short:
In order for a script to send mail successfully, the following requirements must be met:
- a valid email address, which exists on the server (i.e. in cPanel >> Email Accounts) must be used in the script's From field;
- proper SMTP authentication must be used by the script, using the aforementioned email account's login credentials for authenticating;
- domain must be using our server for its mail and the script must localhost as the mail server.
<<
I don't know if these sort of measures are being used by other hosting companies but the simple answer seemed to be to use smtp. And that brought me here.
Does anyone have this figured out?
Is there anyway to get the MAIL function to send from a real email account rather than username@serverhostname?