THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
# Scan for viruses :0 VIRUS=|clamdscan --mbox --disable-summary --stdout - :0fw * VIRUS ?? ^.*: \/.* FOUND | formail -b -f -t -I "X-Clamav-statusStatus: Yes, $MATCH" :0Efw | formail -b -f -t -I "X-Clamav-statusStatus: No" |
This will add "X-Clamav-status: yes" to any message that's found to have a virus. Since "clamdscan" uses the daemon, you'll need to enable Scan{{`Mail
, Scan
}}Archive
and Stream
Save
To
`Disk}} in clamav.conf