Ubuntu spamassassin4/11/2023 ![]() Make a startup item: % sudo systemctl enable spamassassin Why a dedicated user? % grep spamd /etc/passwdĭebian-spamd:x:131:136::/var/lib/spamassassin:/usr/sbin/nologin The installation creates a non login user debian-spamd. ![]() Spamassassin can be run in the foreground with spamassassin and in the background as a daemon with spamd -d. Install spamassassin (and also spamc and sa-compile): % sudo apt install spamassassin Update: how to start the spamassassin service with Ubuntu 20.10 I think the core of the issue is step 2 and then adding -username spamd in the OPTIONS of /etc/default/spamassassin One more step is described, to update postfix, which was not needed in my case. OPTIONS="-create-prefs -max-children 5 -username spamd -helper-home-dir $spamd.log"Ĥ) Edit /etc/spamassassin/local.cf to set up some anti-spam rules, e.g., rewrite_header Subject ***** SPAM ***** The essential steps described in that page are:ġ) sudo apt-get install spamassassin spamcģ) Edit /etc/default/spamassassin to include the following: ENABLED=1 I found that the problem went away, without disabling IPv6, by editing /etc/default/spamassassin and adding a user for spamd, as described here. Here too not showing any process run with 127.0.1.1:783 ![]() There is process running with 127.0.1.1:783 Spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 9: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 8: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 7: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 6: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 5: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 4: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 3: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use Server socket setup failed, retry 2: spamd: could not create IO::Socket::INET6 socket on :783: Address already in use When I start a service using, service spamassassin startĪm getting response as, Starting SpamAssassin Mail Filter Daemon: server socket setup failed, retry 1: spamd: could not create IO::Socket::INET6 socket on :783: Cannot assign requested address You MUST include the 'postrotate restart' section as you may get an open file handles 'leak' and run out of drive space: /var/log/spamassassin/spamd.I have installed and configured spammassassin in my system(14.04) using this tutor. $ sudo nano /etc/logrotate.d/spamassassinĪdd the following lines. $ sudo mkdir /var/log/spamassassin & sudo chown debian-spamd:debian-spamd /var/log/spamassassin If it's not, adjust these flags as needed. If your mail server is on the same machine, remove the -listen= and -allowed-ips= flags. OPTIONS="-create-prefs -max-children=5 -helper-home-dir=/var/lib/spamassassin -username=debian-spamd -listen=* -allowed-ips=10.0.0.0/8 -syslog=/var/log/spamassassin/spamd.log" OPTIONS="-create-prefs -max-children 5 -helper-home-dir" $ sudo apt-get -install-recommends install spamassassin Install Spamassassin as stand-alone daemon ( spamd) along with it's recommended packages like spamc: The default SA debian/ubuntu repository package already creates a debian-spamd user when you install it. One reason I wrote these instructions was because every guide I have read includes a bit about creating a "spamd" user. Amavis has it's own directive/tag system with regards to SA as well.įurther information on Amavis-New and Spamassassin: Note: Some local.cf rules/directives are still observed, while others are not. spamd from the Spamassassin package should NOT be a parent process if you are using amavisd-new, BUT should be installed (The rvice should not be enabled). Other than checking that the daily cron job is being run to refresh the SA rules (see below), this guide should not be needed. If you installed the amavisd-new package, SA was probably already installed and should not need much more tinkering. The Ubuntu/Debian amavisd-new package already uses and suggests Spamassassin be installed. IMPORTANT: This article assumes you do not have amavisd-new installed/running on the same system. ![]() Spamassassin/SpamD Installation Guide Ubuntu 18/20 or comparable Debian dedicated server amavisd-new ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |