Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2024 20:41:15 -0700
From:      Bob Proulx <bob@proulx.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Name resolution in FreeBSD/Postfix
Message-ID:  <20241105203524638613094@bob.proulx.com>
In-Reply-To: <30b4b3ca-1872-480a-93bb-f0c85908515f@quillandmouse.com>
References:  <30b4b3ca-1872-480a-93bb-f0c85908515f@quillandmouse.com>

index | next in thread | previous in thread | raw e-mail

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


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20241105203524638613094>