Plugin: spamassassin
This plugin scans messages against a
SpamAssassin server. The
original message is replaced with the rewritten message sent by the
scanner, which will contain the results of the SpamAssassin scan in the
headers. This plugin can communicate with a scanner over TCP/IP or
local UNIX domain sockets.
Note: This plugin causes mailfront to save messages to temporary
files.
Configuration
- $SPAMD_CONNECT_TIMEOUT
- The maximum amount of time
to wait for a response when connecting to a SpamAssassin scanner, in
milliseconds. (defaults to $SPAMD_TIMEOUT below)
- $SPAMD_MAXSIZE
- The maximum message size to be
scanned, in bytes. This limit is useful for avoiding overloading the
scanning system(s). If the incoming message is larger than this
threshold, a warning is printed and no scanning is done. If unset or
set to "0", there is no limit.
- $SPAMD_HOST
- The hostname of the SpamAssassin
scanner. This setting only applies if $SPAMD_PATH is not set.
If this name resolves to multiple IP addresses, all of them are tried in
sequence (starting at a random point) until one scans the message.
- $SPAMD_PATH
- The file path to the local
SpamAssassin server socket. Overrides the setting
of $SPAMD_HOST.
- $SPAMD_PORT
- Use this TCP port number for the
command/response data. (defaults to 783)
- $SPAMD_REJECT
- If this is set, the plugin will
reject all messages that are flagged as spam. If $SPAMD_REJECT
is not an empty string, that string will be used as the reject
message.
- $SPAMD_SEND_TIMEOUT
- The maximum amount of time to
wait for the output buffer to clear when sending data to a SpamAssassin
scanner, in milliseconds. (defaults to $SPAMD_TIMEOUT below)
- $SPAMD_TIMEOUT
- The maximum amount of time to wait
for a response from the SpamAssassin scanner, in milliseconds. (defaults to
5000)
- $SPAMD_USER
- If set, the plugin will tell the
scanner to use the configuration for the named user instead of a default
configuration.
Sender Action
None
Recipient Action
None
Data Action
None
Message Action
The message is scanned when all the data has been completely
transmitted (to prevent timeout issues with sending data to the
SpamAssassin server).