Hi there,
proxmox-ve: 4.4-94 (running kernel: 4.4.76-1-pve)
TL;DR: postfix isn't aware of user.cfg, its handled by external forwarder program/script specified in /root/.forward.
My google-foo has not lead me to an answer, and I've checked the wiki and also spent some time grepping and finding my way through the file system trying to track down whats going on...
How is the root user in /etc/pve/user.cfg related to the postfix aliases?
The root user email address was specified during install, and editable via web gui:
I see no trace in /etc/ of how postfix knows how to deliver root mail to the root alias in user.cfg. The content of /etc/aliases also left me puzzled.
However the was a clue in /var/log/mail.info
is related to
The .pl file is responsible for mapping /etc/pve/user.cfg for delivery.
The bit that was missing for me, which I finally found through some more google-foo was
which contains
The postconf that is related:
HTH someone in the future.
If the mods approve, I'd happily write this up on the wiki?
proxmox-ve: 4.4-94 (running kernel: 4.4.76-1-pve)
TL;DR: postfix isn't aware of user.cfg, its handled by external forwarder program/script specified in /root/.forward.
My google-foo has not lead me to an answer, and I've checked the wiki and also spent some time grepping and finding my way through the file system trying to track down whats going on...
How is the root user in /etc/pve/user.cfg related to the postfix aliases?
The root user email address was specified during install, and editable via web gui:
Code:
Datacentre/Permissions/User/${user}
I see no trace in /etc/ of how postfix knows how to deliver root mail to the root alias in user.cfg. The content of /etc/aliases also left me puzzled.
However the was a clue in /var/log/mail.info
postfix/local said:status=sent (delivered to command: /usr/bin/pvemailforward)
Code:
/usr/bin/pvemailforward
Code:
/usr/bin/pvemailforward.pl
The .pl file is responsible for mapping /etc/pve/user.cfg for delivery.
The bit that was missing for me, which I finally found through some more google-foo was
Code:
/root/.forward
Code:
|/usr/bin/pvemailforward
The postconf that is related:
Code:
postconf forward_path
HTH someone in the future.
If the mods approve, I'd happily write this up on the wiki?