I have a mailuser "web13_callback" with the e-mail address "firstname.lastname@example.org" and the alias "email@example.com". 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 firstname.lastname@example.org
But when I redirect root's mails to email@example.com
in the /etc/aliases then Postfix bounces it:
Jan 13 10:52:05 srv002 postfix/local: 356AA51836E: to=<firstname.lastname@example.org>, 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 "email@example.com" what works:
Jan 13 11:23:35 srv002 postfix/local: EBAD351836E: to=<firstname.lastname@example.org>, 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.