![]() ![]() To learn more about SpamAssassin, please see the official website. Lately the spam on this mailserver is increasing. Restart Postfix and enable SpamAssassin to run at system startup. On this, I have installed Exim4, spamassassin and clamav all by normal package selections and some manual configuration. smtp inet n - y - smtpdīelow the smtp configuration, add a SpamAssassin content filter. Ifplugin Mail::SpamAssassin::Plugin::ShortcircuitĮdit your Postfix configuration file. rewrite_header Subject ***** SPAM _SCORE_ ***** $ sudo mv /etc/spamassassin/local.cf /etc/spamassassin/local.cf.bkĬreate a new SpamAssassin local configuration file. The filter assigns scores to emails to separate the genuine from the unwanted. It uses comprehensive spam-fighting methods to keep inboxes clear of unwanted email. Make a backup of the SpamAssassin local configuration file. SpamAssassin (SA) is a well-established email filtering system designed to live up to its name. OPTIONS="-create-prefs -max-children 5 -username spamd -helper-home-dir /home/spamd/ -s /home/spamd/spamd.log" In this recipe, we will learn how to install and set up a well-known e-mail filtering program, spam-assassin. ENABLED=0įind the line: OPTIONS="-create-prefs -max-children 5 -helper-home-dir"Ĭhange it to include the SpamAssassin user account and log files directory. Mail filtering with spam-assassin in Ubuntu. Uncomment it by removing # and change the value from 1 to 0. $ sudo adduser spamd -disabled-loginĪssign the spamd user account to SpamAssassin and set the log and default home directories.Įdit the configuration settings. $ sudo apt-get install spamassassin spamc -yĪdd a SpamAssassin user and disable the login. Verify the server has outbound port 25 open. Prerequisitesĭeploy an Ubuntu cloud server instance at Vultr. ![]() This guide explains how to install SpamAssassin on Ubuntu 20.04 LTS or 21.04. OPTIONS="-x -max-children 5 -helper-home-dir /var/lib/spamassassin -u spamd -g spamd -siteconfigpath /etc/spamassassin -socketpath=/var/spool/postfix/spamassassin/spamd.sock -socketowner=spamd -socketgroup=spamd -socketmode=0660"SpamAssassin is an open-source mail filter that identifies spam emails using a wide range of heuristic tests. The path expansions of SAHOME and SAGLOBALCFGPATH are failing, so change this file so that it includes the full paths: # Change to one to enable spamd ![]() # spamassassin's rules on a nightly basis The installation creates a non login user debian-spamd. # Set to anything but 0 to enable the cron job to automatically update Update: how to start the spamassassin service with Ubuntu 20.10 Install spamassassin (and also spamc and sa-compile ): sudo apt install spamassassin Spamassassin can be run in the foreground with spamassassin and in the background as a daemon with spamd -d. # Otherwise, the init script will not be able to shut spamd down. # -username option above, this needs to be writable by that user. # Where should spamd write its PID to file? If you use the -u or OPTIONS="-x -max-children 5 -helper-home-dir $ -socketpath=/var/spool/postfix/spamassassin/spamd.sock -socketowner=spamd -socketgroup=spamd -socketmode=0660" If you are following this Ars Technica guide, then you probably have /etc/default/spamassassin looking like this: SAHOME="/var/lib/spamassassin" I've tried stopping the service and starting it as well as simply restarting it, but it doesn't make a difference. Running sudo systemctl status rvice gets me the following: Feb 02 01:43:46 grace systemd: rvice: Service RestartSec=100ms expired, scheduling restart.įeb 02 01:43:46 grace systemd: rvice: Scheduled restart job, restart counter is at 5.įeb 02 01:43:46 grace systemd: Stopped Perl-based spam filter using text analysis.įeb 02 01:43:46 grace systemd: rvice: Start request repeated too quickly.įeb 02 01:43:46 grace systemd: rvice: Failed with result 'exit-code'.įeb 02 01:43:46 grace systemd: Failed to start Perl-based spam filter using text analysis. See "systemctl status rvice" and "journalctl -xe" for details. I've followed the instructions, installed it from the repositories, and when I try to start SpamAssassin I get an error message like the following: Job for rvice failed because the control process exited with error code. Running sa-compile (may take a long time) cc: internal compiler error: Bus error (program as) Please submit a full bug report, with preprocessed source if appropriate. I'm trying to build an email server based on Ubuntu, and I want to run SpamAssassin on it. SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin sa-compile (3.4.0-1ubuntu2.1) wird eingerichtet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |