I'm trying to get sendmail working. Sending an email to myself, it appears the email is delivered...
May 24 06:55:13 texascoders sendmail: x4O6tDOL029544: to=, email@example.com (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30113, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x4O6tDVt029545 Message accepted for delivery)
But a few minutes later I get errors like this:
May 24 07:27:47 texascoders sm-mta: x4O74rBD029756: to=, ctladdr= (0/0), delay=00:22:53, xdelay=00:04:21, mailer=esmtp, pri=210301, relay=mail.protonmail.ch. [220.127.116.11], dsn=4.0.0, stat=Deferred: Connection timed out with mail.protonmail.ch.
I'm using Debian 9 on a VPS. So far:
- I set my hostname with hostnamectl
- changed /etc/hosts (not sure if that helped)
- Added SPF record
- Added DKIM record
Solved: It was the ISP. I didn't think of this at first because I have multiple providers and the one I usually use doesn't block port 25. I opened a ticket and now just waiting to reboot. "We have removed the default SMTP block on your account."