Hi,

On Mon, Jul 15, 2024 at 09:55:06PM +0800, Jeff Pang wrote:
> 
> > 
> > I get:
> > 
> > 0A032940922     657 Mon Jul 15 14:40:01  user1@mymachine
> > (Host or domain name not found. Name service error for name=example.com
> > type=MX: Host not found, try again)
> 
> Any SMTP client which does not fall back to the A record when no MX records
> exists is fundamentally broken.

I think a confusion here is that the /etc/hosts file is not DNS. Not
all applications on a system will ask the NSS for host lookups; some
do go straight to DNS (as directed by /etc/resolv.conf). So the
assumption that putting an entry in /etc/hosts is just the same as
an A record in DNS is not always true.

It looks like OP has worked out how to tell Postfix not to use DNS,
so it would obey a hosts entry.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to