- Debian: Jessie
- Mail Server: Exim
- Anti-Virus: Clamav
apt-get install clamav clamav-daemon exim4-daemon-heavy
adduser clamav Debian-exim
- Modify
/etc/clamav/clamd.conf
(<0.99.2)AllowSupplementaryGroups true
service clamav-daemon restart
dpkg-reconfigure exim4-config
- Set config to
split
- Set config to
- Modify
/etc/exim4/conf.d/main/02_exim4-config_options
- Uncomment
av_scanner = clamd:/var/run/clamav/clamd.ctl
- Uncomment
- Modify
/etc/exim4/conf.d/acl/40_exim4-config_check_data
- Uncomment
deny malware = * message = This message was detected as possible malware ($malware_name).
- Uncomment
chmod -Rf g+w /var/spool/exim4
chmod -Rf g+s /var/spool/exim4
service exim4 restart
wget -o /tmp/eicar.com.txt https://secure.eicar.org/eicar.com.txt
exim4 -bmalware /tmp/eicar.com.txt
telnet localhost 25
helo localhost
mail from: <[email protected]>
rcpt to: <user@localhost>
data
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
.
- The SMTP server will send a message about detected malware.
- http://hswong3i.net/blog/hswong3i/exim4-clamav-spamassassin-greylistd-debian-etch-mini-howto
- http://michaelfranzl.com/2013/09/07/setting-up-exim4-mail-transfer-agent-with-spam-filtering-greylisting-and-anti-virus/
- http://www.eicar.org/85-0-Download.html
- https://help.ubuntu.com/community/EximClamAV
- https://technet.microsoft.com/zh-tw/library/aa995718%28v=exchg.65%29.aspx
- https://blog.clamav.net/2018/04/clamav-01000-has-been-released.html
Yeah, it was removed in/around: https://blog.clamav.net/2018/12/clamav-01010-has-been-released.html
I think that the
(<0.99.2)
thing hints that it's only when clamav is older than that...