My company uses dreamhost for several websites and we also use dreamhost to host our email for redrhinomg.com.
We actually host the webserver at our office and everything works great except when I'm trying to send auto emails.
Using php and the basic mail(), I've modified the .ini settings to have:
When trying to send the email I get the following error:
mail() [function.mail]: SMTP server response: 554 5.7.1 : Client host rejected: Access denied
I'm assuming because the email is originating form my server (184.108.40.206) and the dreamhost email server is rejecting?
The test php code is as follows:
$to = 'email@example.com';
$subject = 'Test from ryan';
$message = 'test';
$headers = 'From: firstname.lastname@example.org' . "\r\n" .
'Reply-To: email@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
Thanks for your help!