Search:

2. Spam Filter

smtp.proxy can make use of spamassassin SPAM filtering and mail tagging. Optionally mails that have a certain spam level can be put into a quarantine folder.

2.1 Configure spamassassin program

spamc-cmd /path/to/spamc: can be used to configure the path and required arguments to the spamassassin client. The default is /usr/bin/spamc -c.

2.2 Spam handling

smtp.proxy applies special processing to mails that are identified as spam. However, spam recognition is fully done by spamassassin. Notice that smtp.proxy scan only mail up to a certain size which is 250kByte.

2.2.1 Spam tagging in mail subject

spamc-tag tag puts tag in the subject line of all mails that were classified as spam (and forwarded to the upstream server). Default is [SPAM].

2.2.2 Spam quarantining

The option spamc-quarantine controls wether spam mails that are above a certain treshhold are put in a quarantine folder or not. The default is no, which means that spam mails are to the upstream server.

spamc-quarantine yes|no
boolean, activates spam quarantine.

spamc-treshhold num
sets the spam value treshhold above which smtp.proxy quarantines spam. The spam score is computed by spamassassin.

spamc-qdir dir
sets the quaratine directory.

2.2.2.1 Quarantine folder

By default smtp.proxy uses the same folder for spam quarantining as for viruses if a directory is not configured. In this case spam quarantining depends on a properly confired virus quarantine.

However, the spam quarantine directory can be configured with spamc-qdir to be different from the virus are.

spamc-qdir dir
sets the quaratine directory.

Possible options to the quarantine directory are listed in Mail Quarantining.

Notice that a quarantine must be configured in one or another way to stop spam on the proxy. Otherwise smtp.proxy forwards the mails to the server.

2.3 Enable spam scanning

If properly configured, spam scanning must be enabled with the spamc-scan option.

spamc-scan yes|no
boolean, enables spam scanning if set to yes.