Fix spamassassin and clamav in systemd

This commit is contained in:
Michel Roux 2016-08-15 18:13:50 +02:00
parent b4dd6a15e8
commit dab5c7c81c
2 changed files with 10 additions and 5 deletions

View File

@ -196,6 +196,11 @@ acl_check_data:
accept authenticated = *
.ifdef CLAMAV_ENABLE
deny malware = *
message = This message was detected as possible malware ($malware_name).
.endif
.ifdef SPAMD_ENABLE
warn spam = debian-spamd
add_header = X-Spam-Score: $spam_score ($spam_bar)
@ -204,11 +209,6 @@ acl_check_data:
control = fakereject
.endif
.ifdef CLAMAV_ENABLE
deny malware = *
message = This message was detected as possible malware ($malware_name).
.endif
deny message = Message headers fail syntax check
!verify = header_syntax

View File

@ -44,11 +44,16 @@ install_spamassassin() {
aptitude -y install exim4-daemon-heavy sa-exim spamassassin
cp -fv spamd/sa-learn /etc/cron.daily/sa-learn
cp -fv spamd/spamassassin /etc/default/spamassassin
systemctl enable spamassassin
service spamassassin restart
install_restart
}
install_clamav() {
aptitude -y install exim4-daemon-heavy clamav clamav-daemon
adduser clamav Debian-exim
systemctl enable clamav-daemon
service clamav-daemon restart
install_restart
}