Dnia 4.12.2023 o godz. 14:44:44 lejeczek via Postfix-users pisze: > > I can send email to root@localhost and I thought it was all good but > today a tool/client wanted to send an email to that address and it > got: > ... > connect from localhost[127.0.0.1] > NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 504 5.5.2 > <root@localhost>: Recipient address rejected: need fully-qualified > address; from=<mo...@whale.mine.priv> to=<root@localhost> [...] > Say I manually: > -> $ echo -e "${_when} \n\n${@:2}" | mail -S > "from=mo...@whale.mine.priv" -s "${_hostUpper}" root@localhos > ... > 952E7604CF0D: uid=0 from=<root> [...] > 952E7604CF0D: to=<root@localhost>, relay=local, delay=0.04, > delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (forwarded as > 99753604D3F9)
Do you have "reject_non_fqdn_recipient" anywhere in your smtpd_*_restrictions in main.cf ? If you do, that's the restriction that is rejecting your message. When you send mail locally using the "mail" command, it does not come in via SMTP, so smtpd_*_restrictions don't apply. -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub." _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org