Install and configures spamassassin, https://spamassassin.apache.org
Go to file
Andrea Dell'Amico c60f714619
Fix some tags.
2026-08-21 14:36:53 +02:00
defaults Add support for the trusted_networks and internal_networks options. 2026-08-21 00:22:59 +02:00
files userpref value size increased to 1024 to store all the default languages of the sauserspref roundcube plugin. 2020-04-05 18:18:42 +02:00
handlers spamassassin: installation and configuration of the spamd service and spamass-milter. Support user preferences in postgreSQL. 2020-04-04 20:13:34 +02:00
meta Fix the conditional for the clamav role 2020-09-23 18:57:37 +02:00
tasks Fix some tags. 2026-08-21 14:36:53 +02:00
templates Add support for the trusted_networks and internal_networks options. 2026-08-21 00:22:59 +02:00
vars Installl some missing perl modules. Remove the sought rules. 2020-10-12 13:40:48 +02:00
.gitignore Initial commit 2020-03-04 16:37:00 +01:00
LICENSE Initial commit 2020-03-04 16:37:00 +01:00
README.md Add support for the trusted_networks and internal_networks options. 2026-08-21 00:22:59 +02:00

README.md

Role Name

ansible-role-spamassassin

Installs and configures spamassassin, https://spamassassin.apache.org

  • Currently supports PostgreSQL as remote backend
  • The sql present in the files directory is valid for spamassassin 3.4
  • Run spamassassin -D --lint 2>&1 | grep -i failed to verify that all the required perl packages are present

TODO

  • Clean the txrep stale data regulary, running the following query (PostgreSQL)
DELETE FROM txrep WHERE last_hit <= (now() - INTERVAL '120 day');

Role Variables

There are a lot of them, see the defaults/main.yml file

Relay classification can be configured explicitly with:

spamassassin_trusted_networks: []
spamassassin_internal_networks: []

The entries are rendered as trusted_networks and internal_networks in local.cf and should contain only mail relays whose Received headers are trusted.

Dependencies

clamav, when one of spamassassin_clamav_old_plugin or spamassassin_clamav_github_plugin is set to True

License

EUPL-1.2

Author Information

Andrea DellAmico, andrea.dellamico@isti.cnr.it