PHP Mail Not Sending From Hosted Domain But Server Domain
Hi,
I running CENTOS 6.9 x86_64 kvm " server cPanel & WHM 64.0 (build 36) and have a dedicated IP for mydomian.com
I have installed a script called PHPMailer I'm using to to allow visitors to send ecards to their friends. When I test it it goes through but goes to the spambox. Here is Mail Delivery Reports says:
Event: success
Sender User: user
Sender Domain: mydomian.com
Sender: user@server.myserver.com[/EMAIL]
Sent Time: Jul 27, 2017 11:30:11 AM
Sender Host: localhost
Sender IP: 127.0.0.1
Authentication: localuser
Spam Score:
Recipient: me@hotmail.com[/EMAIL]
Delivered To: me@hotmail.com[/EMAIL]
Delivery User: -remote-
Delivery Domain:
Router: lookuphost
Transport: remote_smtp
Out Time: Jul 27, 2017 11:31:11 AM
ID: 1dakjy-0001lT-VY
Delivery Host: mx2.hotmail.com
Delivery IP: 65.55.33.135
Size: 120.62 KB
Result: Accepted
The X-Mailer: PHPMailer 5.2.23 github.com/PHPMailer/PHPMailer
*****************************************
Then I have Wordpress installed and a newsletter module installed that sends a auto reply after someone subscribes. It doesn't get sent at all. Here is Mail Delivery Reports says for that:
Event: failure
Sender User: user
Sender Domain: mydomian.com
Sender: user@server.myserver.com[/EMAIL]
Sent Time: Jul 27, 2017 9:40:09 AM
Sender Host: localhost
Sender IP: 127.0.0.1
Authentication: localuser
Spam Score:
Recipient: me@hotmail.com[/EMAIL]
Delivered To:
Delivery User: -system-
Delivery Domain:
Router: lookuphost
Transport: remote_smtp
Out Time: Jul 27, 2017 9:40:09 AM
ID: 1daj1R-0003yj-Hi
Delivery Host: mx1.hotmail.com
Delivery IP: 65.55.92.136
Size: 1,001 bytes
Result: ECDHE-RSA-AES256-SHA384:256 CV=yes: SMTP error from remote mail server after end of data: 550 5.7.0 (SNT004-MC1F47) Unfortunately, messages from (11.11.11.111) on behalf of (mydomian.com) could not be delivered due to domain owner policy restrictions.
I'm not sure why this one doesn't get delivered but I think it's because I have dmarc set up.
*****************************************
I also have Magento ecommerce set up. It goes through prefect. Everything passes i.e. spf=pass, dkim=pass, dmarc=pass, Received-SPF: Pass. X-PHP-Originating-Script: 507:Sendmail.php
So I'm very happy about that.
******************************************
When I run a php test script from mydomian.com
[PHP][/PHP]
It doesn't get delivered it's the same as the newsletter reply as above from Wordpress.
I'm trying to get all the emails to go through like Magento. It seems I need toget mydomain.com to send the and not user@server.myserver.com[/EMAIL]?
How can I fix this?
Thank you
-
I found the problem here: SMTP PHP Mail Not Routed Through Dedicated IP Address I had to set the return path! 0 -
I found the problem here: SMTP PHP Mail Not Routed Through Dedicated IP Address I had to set the return path!
I'm happy to see you were able to solve the issue. Thank you for updating us with the outcome.0
Please sign in to leave a comment.
Comments
2 comments