o postfix usa procmail
para entregar e-mail, e como postfix
invoca procmail
executando como nobody
por motivos de segurança, os e-mails enviados para root
serão enviados para o usuário nobody
. / p>
As listas de discussão da Debian explicam melhor do que eu e sugerem um trabalho em torno de:
postfix's own delivery agent can deliver to root's mailbox, but postfix will NEVER fork an external program (e.g. procmail) as root. it either changes UID to the owner of the mail being delivered or if that user is root, then it changes UID to nobody.
so procmail gets run as nobody when delivering root's mail.
i work around this by just symlinking /var/spool/mail/root to /var/spool/mail/nobody - then i can read root's mail as root.
note that this is NOT the recommended way of doing it - most people will recommend that you direct root's mail to another user in /etc/aliases.
Mais adiante no tópico, eles também lembram-se das FAQs do postfix
sobre o e-mail raiz :
If you use procmail (or some other command) for local mail delivery, Postfix will not deliver mail as root. Instead, Postfix runs procmail (or whatever) as nobody. Perhaps some day Wietse will trust Postfix enough to run external commands as root. Solution: just like you're not supposed to log in as root (except for unusual conditions), you're not supposed to receive mail as root.
Create a mail alias for root that forwards mail to a real user.