> kwoody--- via Postfix-users:
> > The local recipient table has a list of all valid users in the format
> > u...@citytel.net. This is rebuilt when needed.
> >
> > Postifx is appending mail.citytel.net, not citytel.net.
> 
> Over the last 25+ years, Postfix appends the domain that is configured in
the
> myorigin setting.
> 
> Typically, that's one of:
> 
>     myorigin = $myhostname (the default)
>     myorigin = $myomain
> 
> You may want to check the output from this command:
> 
>     postconf -x myorigin myhostname mydomain
> 
> HOWEVER Postfix will not append a domain if your mail command already
> provides one.

That's what I always have done, set the myorigin as $mydomain.

# postconf -x myorigin myhostname mydomain

myorigin = citytel.net
myhostname = mail.citytel.net
mydomain = citytel.net

I'm just using the stock FBSD /usr/sbin/mail from CLI:

# mail root

Log file:

May  2 14:56:49 mail sendmail[1456]: 342LunsF001456: from=kwoody, size=32,
class=0, nrcpts=1, msgid=<202305022156.342lunsf001...@mail.citytel.net>,
relay=root@localhost
May  2 14:56:49 mail postfix/postscreen[1457]: CONNECT from
[127.0.0.1]:44529 to [127.0.0.1]:25
May  2 14:56:49 mail postfix/postscreen[1457]: ALLOWLISTED [127.0.0.1]:44529
May  2 14:56:49 mail postfix/smtpd[1458]: connect from localhost[127.0.0.1]
May  2 14:56:49 mail postfix/smtpd[1458]: NOQUEUE: reject: RCPT from
localhost[127.0.0.1]: 550 5.1.1 <r...@mail.citytel.net>: Recipient address
rejected: User unknown in local recipient table;
from=<kwo...@mail.citytel.net> to=<r...@mail.citytel.net> proto=ESMTP
helo=<mail.citytel.net>

Which then tries to bounce the mail to my local user:
kwo...@mail.citytel.net, which fails since the bounce is addressed
to mail.citytel.net.

The same /usr/sbin/mail root works fine on the older FBSD 11.1/Postfix 3.2.2
system. Not sure where else to look on this one as the main.cf file is
practically the same between both installs, save for paths.

Thanks.





_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to