You've already forked mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-30 01:01:15 +03:00
fix: run Amavis cron job only when Amavis is enabled (#2831)
This commit is contained in:
@ -79,6 +79,11 @@ function _setup_amavis
|
||||
else
|
||||
_log 'debug' "Removing Amavis from Postfix's configuration"
|
||||
sed -i 's|content_filter =.*|content_filter =|' /etc/postfix/main.cf
|
||||
|
||||
_log 'debug' 'Disabling Amavis cron job'
|
||||
mv /etc/cron.d/amavisd-new /etc/cron.d/amavisd-new.disabled
|
||||
chmod 0 /etc/cron.d/amavisd-new.disabled
|
||||
|
||||
[[ ${ENABLE_CLAMAV} -eq 1 ]] && _log 'warn' 'ClamAV will not work when Amavis is disabled. Remove ENABLE_AMAVIS=0 from your configuration to fix it.'
|
||||
[[ ${ENABLE_SPAMASSASSIN} -eq 1 ]] && _log 'warn' 'Spamassassin will not work when Amavis is disabled. Remove ENABLE_AMAVIS=0 from your configuration to fix it.'
|
||||
fi
|
||||
|
Reference in New Issue
Block a user