mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-06-29 20:14:51 +02:00
fix: run Amavis cron job only when Amavis is enabled (#2831)
This commit is contained in:
parent
032ed00a17
commit
ac795a5976
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue