Have a couple of FreeBSD VMs running 11.1 and Postfix 3.2.2. Both
VMs are used as MX for the domain.

Using these two for about 1000 clients for one domain to send/receive.
Been working fine for a couple years. 

Moving to a new set of VM hosts, so spun up a new VM on FBSD 12.4, 
installed via pkg Postfix 3.7.4.

Set the VM up, can send/receive ok, but local mail is failing.

FreeBSD has a few scripts that run nightly and send the reports to root or
whomever.

Since installing this VM, the reports are failing as is sending email from
the CLI using
mail root
or
mail user

Log for the nightly cron job run:

03:01:09 mail sendmail[10703]: 342A19Wv010703: from=root, size=14672,
class=0, nrcpts=1, msgid=<202305021001.342a19wv010...@mail.citytel.net>,
relay=root@localhost
May  2 03:01:09 mail postfix/postscreen[10718]: CONNECT from
[127.0.0.1]:28289 to [127.0.0.1]:25
May  2 03:01:09 mail postfix/postscreen[10718]: ALLOWLISTED
[127.0.0.1]:28289
May  2 03:01:09 mail postfix/smtpd[10722]: connect from localhost[127.0.0.1]
May  2 03:01:09 mail postfix/smtpd[10722]: 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=<r...@mail.citytel.net>
to=<r...@mail.citytel.net> proto=ESMTP helo=<mail.citytel.net>
May  2 03:01:09 mail postfix/smtpd[10722]: too many errors after RCPT from
localhost[127.0.0.1]

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.

Main.cf on both the new VM and old VM:
#
myhostname = mail.citytel.net
#
mydomain = citytel.net
#
myorigin = $mydomain

Current prod postfix server log file for root mail during the nightly cron
job:
May  2 03:03:08 mail postfix/qmgr[813]: 3BBF88930A: from=<r...@citytel.net>,
size=13805, nrcpt=1 (queue active)
May  2 03:03:08 mail postfix/smtp[15553]: 3BBF88930A: to=<r...@citytel.net>,
orig_to=<root>

Is this a change in behaviour of postfix? Or is this the behaviour of the
unix mail program itself?

Why does the older FBSD11.1/Postfix 3.2.2 append the domain, but
FBSD12.4/Postfix 3.7.4 appends the whole hostname
and not the domain?

Or have I completely missed a config option somewhere?

Thanks.

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

Reply via email to