Hi folks, I recently upgraded to 1.0 and have a question about the right way to change the postfix configuration in /etc/postfix/main.conf.
I've configured Notifications correctly, and I have no problem getting emails from scheduled jobs in OpenMediaVault.
My original problem was that after I installed denyhosts, I would get bounced emails like this one:
I was able to solve the problem by adding the following line to /etc/postfix/main.cf:
recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical
And creating /etc/postfix/recipient_canonical with:
However, /etc/postfix/main.cf is overwritten any time I make configuration changes through the OMV user interface.
The question is: Is there a way I can persist my change to /etc/postfix/main.cf so that it's not overwritten?
The other solution is to configure denyhosts to send emails directly to a specific account instead of to "root@localhost", but I'd like to solve for the general case if I can.