spamassassin¶
spamassassin is a plugin for spmfilter that enables spmfilter to spam-check emails with the help of the daemonized version of Spamassassin (spamd). The major goal of this plugin is to provide an easy way for spam-checking messages. Currently the message is given to spamd which actually takes care of spam-checking the message, after completion the email is simply passed back to spmfilter which takes care of further processing. Activation of the module is done by adding spamassassin to the modules-variable within the [global]-section in spmfilter.conf like follows:
[global]
...
modules = spamassassin
...
Configuration for spamassassin is done by adding a new section for spamassassin to the spmfilter.conf:
[spamassassin]
host = 127.0.0.1
port = 783
quarantine_dir = /var/spool/spam
reject_spam = false
reject_msg = message identified as spam
Configuration parameter overview:
| option | description | scope |
| host | IP-address of the Spamassassin-daemon. | mandatory |
| port | Port on which the Spamassassin-daemon listens. | optional, default: 783 |
| quarantine_dir | Defines the absolute path to the quarantine directory. This option is mandatory, so please make sure the path exists and is read/writeable for the spmfilter user. | mandatory |
| reject_spam | If set to true, the plugin will reject spam messages. It is no good idea to reject messages, if spmfilter is configured as after queue filter. | optional, default: false |
| reject_msg | If reject_spam is set to true, reject_msg will be used as smtp response message. | optional |
Important notes
If you're running spmfilter with spamassassin plugin as after-queue-filter and reject_spam is set to true, then you are going to generate bounce messages! So please make sure, you are using reject_spam only as pre-queue-filter.