I have a mailuser "web13_callback" with the e-mail address "email@example.com" and the alias "firstname.lastname@example.org". The servers fqdn is "server1.domain.tld".
I have no problems to receive mails on the "normal" way from outside. It's also no problem to write an e-mail as root with "mailx email@example.com
But when I redirect root's mails to firstname.lastname@example.org
in the /etc/aliases then Postfix bounces it:
Jan 13 10:52:05 srv002 postfix/local: 356AA51836E: to=<email@example.com>, orig_to=<root>, relay=local, delay=0.1, delays=0.09/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "callback")
I don't know why it cuts off the domain part, but I tried to forward root's mails to "firstname.lastname@example.org" what works:
Jan 13 11:23:35 srv002 postfix/local: EBAD351836E: to=<email@example.com>, orig_to=<root>, relay=local, delay=0.09, delays=0.08/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
I know I can use "web13_callback" in the /etc/aliases and I do. But I propose to fix this buggy behavior.