You are not logged in.

#1 2021-02-20 12:22:35

alfiedotwtf
Member
Registered: 2021-02-20
Posts: 1

Postfix not sending, getting "Host or domain name not found"

First off, apologies. I'm new to Arch (about 3 weeks in) so I wasn't sure if this was the place to discuss the issue, or raise a bug.

After installing Postfix, I was unable to send externally... using the following command:

    journalctl -u postfix.service -b

I found the error to be:

    Host or domain name not found

This smelt like a DNS issue, but after installing `dog` and doing a lookup for my smart host, it was able to successfully resolve the MX records no problem. So it wasn't DNS... or was it? I remembered I had changed the chroot settings for most processes in `master.cf` to 'y', and after looking at /var/spool/postfix/etc, I had found the issue - /var/spool/postfix/etc/ was missing!

As /var/spool/postfix/etc/resolv.conf was missing, that explained the lookup failure. Copying /etc/resolv.conf to /var/spool/etc/resolv.conf and restarting Postfix did the trick. Mail flowed and I was happy again.

I'm sure others would have had this issue in the past, and others will continue to have this issue in the future, so I was wondering if it was worthy of a bug fix - i.e include /etc/resolv.conf as part of the chroot generation?

Offline

Board footer

Powered by FluxBB