I have been running my own personal email server since the late 1990’s. Currently using Ubuntu 22.04 with postfix/dovecot and using a static IP via VPN service (since I cannot get a static IP over my internet connection). I have had this particular static IP for about 4 years. Also use letsencrypt/certbot for SSL/TLS.
Sending outgoing mail became increasingly difficult over the last decade since my IP didn’t generate enough email to develop a positive reputation and the VPN provider blocked outgoing port 25 connections, but I’ve worked around that issue by relaying outgoing email through mailgun.org via Port 587. That works pretty well and it’s a free service for low email volumes.
The latest issue I am having is with incoming email. Gmail suddenly stopped delivering to my static IP sometime around 3/6/2024. When sending a test message to myself from gmail and monitoring /var/mail.log, nothing shows up. I first get a delayed delivery message in gmail, followed by a delivery failure notice a few days later with the message “The recipient server did not accept our requests to connect”
Meanwhile, I’m getting email just fine from other sources.
I’ve tried a few SMTP test tools, and getting mixed results.
Using this one results in “unable to connect” and nothing shows up in my postfix logs:
https://mxtoolbox.com/diagnostic.aspx
This one results a connection timeout error on port 25, although I do see a connection attempt in my postfix log. Also connecting on port 465 with SSL works successfully:
https://smtpserver.com/smtptest
This one connects successfully on port 25 with and without encryption:
https://www.smtper.net/
I initially accused my VPN provider of blocking incoming port 25 connections, but after doing some testing I see that some port 25 connections are coming though, just not from everywhere. Any ideas or work-arounds? Unfortunately mailgun doesn’t seem to be set up very well for relaying incoming mail.
Bookmarks