Search:

1. Virus Scanning

smtp.proxy can scan all mails for viruses using clamav as scan engine.

1.1 Location of clamd server

smtp.proxy expects the clamd server on the network address 127.0.0.1:3310. This address is coded into smtp.proxy and cannot be configured.

1.2 Virus quarantine

Virulent e-mails can be put into a quarantine area. This is enable by configuring a directory for it:

clamav-qdir dir
sets the directory to be used as virus quarantine area. smtp.proxy must have write permissions to it.

The quarantine area has some options on its own, see Mail Quarantining.

1.3 Configuring virus scanning

To enable virus scanning the clamav-scan option must be set to yes. Of course this requires a installed and configured clamav daemon, but nothing else must be done in smtp.proxy.

1.4 Scan result options

There are two options available how to process with scan results. They should be only used if there is another virus scanner behind and smtp.proxy/clamav combination is just the first line of defense:

clamav-passonerror yes|no
passes the e-mail to the upstream server if the scan process returns an error code which usually means that the e-mail is unscanned.

clamav-passonvirus yes|no
setting this option to yes makes smtp.proxy forward virulent e-mails. This option is implemented to allow to check what clamav would do when enabled before actually doing it.