Re: Name resolution in FreeBSD/Postfix

From: Paul M. Foster <paulf_at_quillandmouse.com>
Date: Tue, 05 Nov 2024 18:42:15 UTC
On 11/5/24 12:08, Paul Procacci wrote:
> On Tue, Nov 5, 2024 at 12:02 PM Paul M. Foster <paulf@quillandmouse.com> wrote:
>> Folks:
>>
>> 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 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.
>>
>> Can anyone enlighten me?
>>
>> Paul
>>
>> ou should probably include your config.
>> My guess is postfix needs to be told explicitly that localhost is a
>> domain it's servicing yet hasn't been told that.
>>
>> ~Paul


Contents of /usr/local/etc/mail/mailer.conf:

===

sendmail /usr/local/sbin/sendmail

send-mail /usr/local/sbin/sendmail

mailq /usr/local/sbin/sendmail

newaliases /usr/local/sbin/sendmail

myhostname = banzai

mydomain = mars.lan

mydestination = $myhostname, localhost.$mydomain, localhost

inet_interfaces = $myhostname, localhost

mynetworks_style = hosts

default_transport = error: outside mail is not deliverable

===

Paul

-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster