philrefa.blogg.se

Configuring spamassassin
Configuring spamassassin








  1. Configuring spamassassin install#
  2. Configuring spamassassin update#

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. 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. 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. To be able to use the _SCORE_ in the rewrite_header directive, we need to set report_safe to 0. To avoid that, we are going to create a specific user and group for spamassassin. So email with a score lower than 2 won’t be modified. Setting up spamassassin Okie, so you installed spamassassinfrom debian repository, on default settings, spamassassinruns as root user and is not started. 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.

configuring spamassassin

Setup a user account and group for spamd service groupadd spamd useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd mkdir /var/log/spamassassin chown spamd:spamd /var/log/spamassassin 3. I’ll give an example of installing and configuring Spamassassin to filter spam.

Configuring spamassassin install#

#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. The first thing would be to install spamassassin packages.

configuring spamassassin

Configuring spamassassin update#

Automatically run update for SpamAssassin rules (recommended). #to be able to use _SCORE_ we need report_safe set to 0 Below you will find all the relevant configuration options.










Configuring spamassassin