Re: Name resolution in FreeBSD/Postfix

From: Bob Proulx <bob_at_proulx.com>
Date: Wed, 06 Nov 2024 03:41:15 UTC
Paul M. Foster wrote:
> Trying to configure Postfix to route local mail (internet is later). During
> a telnet conversation with Postfix to send it mail for a local user, it

I highly recommend using the swaks mail test utility to help with this
type of testing.  It's much easier than chatting using telnet.  Try it
and I am sure you will like it!

    swaks --to=rwp@localhost --server=localhost

> chokes on paulf@localhost recipient, with a 451 4.3.0 error. This is my
> user, and it's in the /etc/passwd file. So I don't understand why it doesn't
> understand the recipient email address. And yes, localhost is 127.0.0.1 in
> the /etc/hosts file.

It all depends upon your postfix configuration but localhost is
probably not listed in mydestination.

    rwp@madness:~$ postconf mydestination
    mydestination = $myhostname, localhost.$mydomain, localhost

Bob