Can't receive email from my domain even after changing to Remote Mail Exchanger

james1052

Registered
Oct 7, 2020
2
0
1
Galveston, Texas, USA
cPanel Access Level
Root Administrator
When I use a php script to send email to my same domain, it never arrives. This script resides on the server running cPanel which is also the DNS server for this domain. Mail for this domain is hosted with Office365 and there is an MX record for that in cPanel.

I changed the cPanel Email Routing setting from Automatic to Remote Mail Exchanger, but that didn't solve the problem. I've been doing a lot of research online and that fixed the issue for most people, but didn't solve it for me. Ideas?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
975
136
168
cPanel Access Level
Root Administrator
When that script sends a message out, do you see the message being sent to the Office365 system when you check the /var/log/exim_mainlog file? That log would show all the email transactions on the system, so I would expect to see something there related to the issue.
 

james1052

Registered
Oct 7, 2020
2
0
1
Galveston, Texas, USA
cPanel Access Level
Root Administrator
When that script sends a message out, do you see the message being sent to the Office365 system when you check the /var/log/exim_mainlog file? That log would show all the email transactions on the system, so I would expect to see something there related to the issue.
Thank you! I was able to find this in that log file:

Code:
550 5.7.606 Access denied, banned sending IP [x.x.x.x]. To request removal from this list please visit https://sender.office.com/ and follow the directions. For more information please go to  http://go.microsoft.com/fwlink/?LinkID=526655 AS(1430)
It's a new server, so it's possible the previous owner of that IP address was a spammer, etc. I'll work on this further with Microsoft. Thank you much!