You can change the way qmail-scanner notifies you by editing your /usr/local/bin/ and changing the line that says:




If you just want the postmaster to be notified of the virus, use admin like so:


Please note: under $NOTIFY_ADDRS in most cases, sender notifies the sender of the message. THIS IS NOT RECOMMENDED!! The reason for this is most email viruses use bogus email addresses and that can cause bounces and double-bounces filling your postmaster mailbox full of them. The only exception to this is if you set your catchall to deleted. recips is for the postmaster notification which I would leave in there. I have not found a way to change this unless you change it in your qmail-scanner installation.

This will make Qmail-Scanner silently drop all the infected emails without sending any notification.

Save the file and run the following commands for your OS to update qmail-scanner.

# setuidgid qscand /var/qmail/bin/ -g
# setuidgid qscand /var/qmail/bin/ -z
# setuidgid qscand /var/qmail/bin/ -p (If you're using qmail-scanner 2.0 per domain)

Test it and then you should be all set.