mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.98k stars 1.44k forks source link

/etc/postgrey/whitelist_clients gettings overwritten #1637

Open fmonts opened 5 years ago

fmonts commented 5 years ago

Since the 0.43 update, the postgrey whitelist_clients config file is getting overwritten daily with the default version.

How can we avoid it, or set custom exclusions in another way?

yodax commented 5 years ago

This was changed to always be in-line with the upstream list. The code should only be run after 28 days. Not sure why that would run every night on your box. Are you copying and old file in place?

If you want this configurable (like I did) you will need to make changes to the repo. Only do this if you are comfortable maintaining your own fork!

I did so here: https://github.com/yodax/mailinabox/blob/master/setup/mail-postfix.sh#L229

I maintain my own list and concat it to the repo list. Alternatively you could disable the cron job by moving the cron file after each upgrade of miab.

lorrin commented 4 years ago

With the #1675 fix, you should be able to maintain custom exclusions in /etc/postgrey/whitelist_clients.local.