I set up a mailing system in my Debian VPS. Everything works smoothly except for I can't send an email to user root.
There is a workaround to specify in /etc/aliases something like
root: <some_other_user>
Then all emails addressed to root@<fqdn> would go into <some_other_user>@<fqdn> mailbox.
From the security perspective it's even better but what I'm wondering about is whether there is a way to send emails to the user root.
So yes, is it possible technically with Postfix? If so, how can I do this?
UPDATE:
Here is postfix.service logs:
Apr 26 22:18:25 <hostname><fqdn> postfix/qmgr[2375]: 3905421760: from=<ddnomad@<fqdn>>, size=631, nrcpt=1 (queue active) Apr 26 22:18:26 <hostname><fqdn> postfix/local[2429]: 3905421760: to=<mailuser@<fqdn>>, orig_to=<root@<fqdn>>, relay=local, delay=1.3, delays=0.21/0.01/0/1, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION") To my understanding it means that letter was sent successfully. But it never got delivered to root's mailbox.
procmailcommand. I have not tried to send it withprocmailonly.procmail"feature"....root emails go to the nobody userman procmailgives no information about such a "feature". Where can I read more about it?