Results 1 to 4 of 4

Thread: Incoming mail problem from gmail (Postfix)

  1. #1
    Join Date
    Jul 2008
    Beans
    17

    Incoming mail problem from gmail (Postfix)

    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.
    Last edited by zeero_k; March 21st, 2024 at 09:02 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Incoming mail problem from gmail (Postfix)

    I followed the setup here: https://theorangeone.net/posts/wireg...proxy-gateway/

    I haven't noticed any issues recently.

  3. #3
    Join Date
    Jul 2008
    Beans
    17

    Re: Incoming mail problem from gmail (Postfix)

    Quote Originally Posted by TheFu View Post
    I followed the setup here: https://theorangeone.net/posts/wireg...proxy-gateway/

    I haven't noticed any issues recently.
    Thanks, yeah I've been thinking of going the VPN via VPS route, so I'll check that out.

    It turns out that my VPN provider implemented some screwy firewall settings right around the time that this issue started. They said they reverted the changes but the problem is still happening. I went ahead and purchased a super-cheap VPS from racknerd and installed postfix configured as a secondary MX on it, and the email is flowing again. Now that I have this VPS and second IP to play with, maybe I'll try setting up a VPN server on it, that seems to be cheaper than the VPN service anyway!

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Incoming mail problem from gmail (Postfix)

    Quote Originally Posted by zeero_k View Post
    that seems to be cheaper than the VPN service anyway!
    Probably not. $4/month isn't cheaper than a $20/yr VPN AND if you go over the VPS monthly transfer limits, expect to pay. For email, that might not be a problem, but if you use the VPN for everything, those cheap VPS plans don't give away bandwidth - or at least mine doesn't. The VPS I use didn't email SMTP by default. I had to request it and follow up 3 times. I like that. It means it is too much hassle for spammers to bother using. So the server subnet for my VPS is unlikely to get on a spammer list.

    Anyway, glad you found a solution, though I never used it without a VPN. It actually never crossed my mind. OTOH, I use a VPN between my wifi network and my other home LANs. I don't trust wifi at all. Wifi traffic is like bare internet traffic to me, until there's a full VPN.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •