mirror of
https://github.com/tomav/docker-mailserver
synced 2025-09-04 16:25:20 +00:00
Add warnings when Amavis is disabled. (#2251)
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
@@ -137,6 +137,8 @@ function _setup_amavis
|
|||||||
else
|
else
|
||||||
_notify 'task' 'Remove Amavis from postfix configuration'
|
_notify 'task' 'Remove Amavis from postfix configuration'
|
||||||
sed -i 's|content_filter =.*|content_filter =|' /etc/postfix/main.cf
|
sed -i 's|content_filter =.*|content_filter =|' /etc/postfix/main.cf
|
||||||
|
[[ ${ENABLE_CLAMAV} -eq 1 ]] && _notify 'warn' 'ClamAV will not work when Amavis is disabled. Remove ENABLE_AMAVIS=0 from your configuration to fix it.'
|
||||||
|
[[ ${ENABLE_SPAMASSASSIN} -eq 1 ]] && _notify 'warn' 'Spamassassin will not work when Amavis is disabled. Remove ENABLE_AMAVIS=0 from your configuration to fix it.'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user