
touch /etc/mail/spamassassin/custom.cf Inside this file, you will want to add the options you wish to use. The file name can be anything you wish to use. Configure the SpamAssassin Daemon (spamd/spamc) groupadd -g 501 spamd useradd -u 501 -g 501 -s /sbin/nologin -d /home/spamd spamd After creating your new user.

Using spamassassin as a standalone daemon.

Those might be interresting to use, but I’m not going to use them here as I found it took long enough to spamassassin to deal with spams only using it rules. Configuration files can be located in the following directory: /etc/mail/spamassassin/ You will want to make a custom.cf file. spamassassin package includes a daemon which can be called by user programs such as procmail but can also be integrated into a Mail Transport Agent such as postfix. Those collaborative network keep an up-to-date catalogue of know mail checksum to be recognized as spam. In the last section, we disable collaborative network such as pyzor, razor2 and dcc. In the next section, we tell spamassassin to use bayes classifier and to improve itself by auto-learning from the messages it will analyse.
CONFIGURING SPAMASSASSIN SERIES
They work just fine with other mail transfer agents (MTAs) ( define) like qmail, Exim, and Sendmail, but this series will center around Postfix. To be able to use the _SCORE_ in the rewrite_header directive, we need to set report_safe to 0. SpamAssassin Amavisd-new ClamAV Prerequisite: An existing Postfix server, that is running well and happily.

So email with a score lower than 2 won’t be modified. Here, we set spamassassin’ spamd default settings to rewrite email subject to, where _SCORE_ is the score attributed to the email by spamassassin after running different tests, only if the actual score is greater or equal to 2.0. You may need to adjust the default Threshold Score to suit your email hosting scenario, but once that’s done, SpamAssassin will work in the background to ensure that spam ends up where it belongs. #If this option is set to 0, incoming spam is only modified by adding some "X-Spam-" headers and no changes will be made to the body. For most users, configuring SpamAssassin is as simple as activating it and choosing whether to use the Spam Box or Auto-Delete. #to be able to use _SCORE_ we need report_safe set to 0
