
SpamAssassin is an open-source mail filter that identifies spam emails using a wide range of heuristic tests. This guide explains how to install SpamAssassin on Ubuntu 20.04 LTS or 21.04.
Connect to your server with SSH.
Install SpamAssassin.
Add a SpamAssassin user and disable the login.
Assign the spamd user account to SpamAssassin and set the log and default home directories.
Edit the configuration settings.
Find the line:
Uncomment it by removing # and change the value from 1 to 0.
Find the line:
Change it to include the SpamAssassin user account and log files directory.
Find the line:
Change the value from 0 to 1.
Save and close the file.
Make a backup of the SpamAssassin local configuration file.
Create a new SpamAssassin local configuration file.
Paste the information below to the file.
Save and close the file.
Edit your Postfix configuration file.
Locate these entries.
Below the smtp configuration, add a SpamAssassin content filter.
Save and close the file.
Restart Postfix and enable SpamAssassin to run at system startup.
To learn more about SpamAssassin, please see the official website.
0 Comments
Be the first to comment and share your perspective with the community.