mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-05 15:57:23 +01:00
Manage the local Postgrey whitelist in the admin console
This commit is contained in:
@@ -267,6 +267,18 @@ EOF
|
||||
chmod +x /etc/cron.daily/mailinabox-postgrey-whitelist
|
||||
/etc/cron.daily/mailinabox-postgrey-whitelist
|
||||
|
||||
# keep the postgrey local client whitelist file in STORAGE_ROOT so it
|
||||
# gets backed up
|
||||
mkdir -p "$STORAGE_ROOT/mail/postgrey"
|
||||
if [ ! -L "/etc/postgrey/whitelist_clients.local" ] && [ -f "/etc/postgrey/whitelist_clients.local" ]; then
|
||||
# regular file (non-link) exists - move it to user-data
|
||||
cp -p "/etc/postgrey/whitelist_clients.local" \
|
||||
"$STORAGE_ROOT/mail/postgrey/whitelist_clients.local"
|
||||
fi
|
||||
ln -sf "$STORAGE_ROOT/mail/postgrey/whitelist_clients.local" \
|
||||
"/etc/postgrey/whitelist_clients.local"
|
||||
|
||||
|
||||
# Increase the message size limit from 10MB to 128MB.
|
||||
# The same limit is specified in nginx.conf for mail submitted via webmail and Z-Push.
|
||||
tools/editconf.py /etc/postfix/main.cf \
|
||||
|
||||
Reference in New Issue
Block a user