Hello Victor,
thanks for the explanation. Then I misinterpreted the documentation at
https://www.postfix.org/postconf.5.html#append_dot_mydomain.
My simple (already chosen solution) for /etc/postfix/aliases is
# Person who should get root's mail. Don't receive mail as root!
root: kl...@tachtler.net
Thanks for the quick reply and clarification.
Regards
Klaus.
On 1/11/25 09:19, Viktor Dukhovni via Postfix-users wrote:
On Sat, Jan 11, 2025 at 08:16:37AM +0100, Klaus Tachtler via Postfix-users
wrote:
I have set the following configuration in /etc/postfix/main.cf:
append_at_myorigin = no
Best to not do that.
If I now create an e-mail locally via (Postfix) sendmail, which is also
stored locally under /var/spool/main/klaus.
My expectation would be that a rewrite to kl...@mydomain.tld takes place -
here kl...@tachtler.net - but there is a rewrite to kl...@mx1.tachtler.net
There's no reason to expect that. The only related setting is
"append_dot_mydomain" which appends the domain to non-fqdn hostnames,
there's nothing that appends to the domain to bare localpart addresses.
For that:
# Leave default:
# append_at_myorigin = yes
myorigin = $mydomain
# postconf -nx myhostname
myhostname = mx1.tachtler.net
myorigin defaults $myhostname.
# postconf -dx append_dot_mydomain
append_dot_mydomain = yes
The default is not relevant here, and has changed in more recent Postfix
versions and compatibility levels.
--
---------------------------------------
e-Mail : kl...@tachtler.net
Homepage: https://www.tachtler.net
DokuWiki: https://dokuwiki.tachtler.net
---------------------------------------
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org