Page 1 of 1

Trouble using mail.sonic.net as mail relay - has something changed on your end?

Posted: Wed Dec 09, 2020 8:13 pm
by oddhack
I'm running postfix on my Debian box configured to use [mail.sonic.net]:587 as the relayhost. Starting December 3rd, I began getting a lot of "(unable to look up host mail.sonic.net: Name or service not known)" errors in the logs, and queued mail backing up locally. Absolutely nothing about my local mail software or configuration changed since last summer, nor has my password on Sonic, and I can successfully lookup mail.sonic.net and connect to it on port 587 via telnet.

Did anything change on the Sonic end that would be causing this, before I start trying to generate more verbose logs to better diagnose what's happening locally?

Re: Trouble using mail.sonic.net as mail relay - has something changed on your end?

Posted: Wed Dec 09, 2020 8:48 pm
by oddhack
Talked with support for a while. They are seeing incoming (edit: SMTP, presumably) connections which authenticate successfully, but nothing that helps diagnose why mail isn't being accepted. Looks like cranking up the log verbosity is the only way forward, for the moment, but if anyone else is running into this that would be good to know. I'm running Postfix 3.4.14-0+deb10u1, binaries dated from last June.

Re: Trouble using mail.sonic.net as mail relay - has something changed on your end?

Posted: Thu Dec 10, 2020 5:05 am
by oddhack
I worked on this quite a bit more tonight, and eventually found that it is probably some manner of obscure nameserver problem, as replacing mail.sonic.net with the EMSTP server's IP address got outgoing email working. But I'm at a loss as to what the NS problem is, if so. I can do DNS lookups, dig, telnet to port 587, all that stuff - yet Postfix insists on coughing up a "relayhost configuration problem" / "unable to look up host mail.sonic.net: Name or service not known" errors when trying to relay mail. N.b. I have to use Google nameservers, as the Sonic ones don't seem to allow lookups from a Comcast IP (I am just an email customer until Sonic rolls fiber in Hayward :-( ).

I haven't changed anything relevant in my OS or postfix setup in the timeframe that this problem started happening, so it seems likely to be *something* happening on the Sonic end.

Re: Trouble using mail.sonic.net as mail relay - has something changed on your end?

Posted: Thu Dec 10, 2020 8:59 pm
by oddhack
After more hair-tearing I eventually discovered that postfix runs in a chroot with its own copy of /etc/resolv.conf, and NetworkManager thoughtfully wiped that out completely when I had to switch over to tethering to my phone during a Comcast outage. So DNS queries from my shell worked fine but postfix had no NS to look at, and reported an error message not giving any insight into the situation.

I really hate NetworkManager.

Re: Trouble using mail.sonic.net as mail relay - has something changed on your end?

Posted: Mon Dec 21, 2020 1:40 pm
by kgc
oddhack wrote:I really hate NetworkManager.
You're not alone.

Re: Trouble using mail.sonic.net as mail relay - has something changed on your end?

Posted: Sun Mar 20, 2022 12:23 pm
by rohitm
A somewhat related query.

I'm trying to send email with postfix on Ubuntu 20.04. I see the email goes into my outgoing queue (verified using mailq). It then goes out of my mailq. However, its not received on my recipient (gmail).
I dont have any authentication credentials that I've provided to postfix. Do I need any configuration other than this for postfix to send emails?

relayhost = [mail.sonic.net]:587

-Rohit

Re: Trouble using mail.sonic.net as mail relay - has something changed on your end?

Posted: Mon Mar 21, 2022 10:07 am
by kgc
You'll have to configure it with valid credentials, I'd suggest adding a mailbox to your account that you only use for this purpose.