:: Re: [DNG] spamd setup
Top Page
Delete this message
Reply to this message
Author: Ralph Ronnquist
Date:  
To: dng
Subject: Re: [DNG] spamd setup
On Fri, Jul 11, 2025 at 10:35:04AM -0400, Haines Brown via Dng wrote:
> I'm floundering trying to set up blacklisting in spamassassin. My
> old directions no longer work. I have no DE, so I am not helped
> by directions to use cPanel. I'm running daedalus. Spamassassin
> and spamd are both installed. I am in the debian-spamd group. I
> use exim4, but not postfix.
>
> # spamassassin -V
> SpamAssassin version 4.0.1
> running on Perl version 5.36.0
>
>   # netstat -tap | grep spamd
>   tcp     0   0 localhost:spamd   0.0.0.0:*  LISTEN   5019/spamd
>   cp6    0   0 localhost:spamd   [::]:*     LISTEN   5019/spamd

>
> I have trouble starting spamassassin:
>
> # service spamassassin restart
> unrecognized service
>
> # /etc/init.d/spamassassin restart
> -bash: /etc/init.d/spamassassin: No such file or directory
>
> # service /etc/init.d/spamd restart
> /etc/init.d/spamd: unrecognized service
>
> # update-rc.d spamassassin enable
> update-rc.d: error: cannot find a LSB script for spamassassin
>
> I cannot access the spamassassin config file:
>
> # nano /etc/spamassassin/local.cf
> -bash: /etc/spamassassin/local.cf: Permission denied
> This file is -rw-r--r--
>
> For blacklisting I used to put a user_prefs file in
> ~/.spamassassin


Try "man spamc" ... the trick is that "spamassasin" is an abstraction
that gets realised with the two programs spamd and spamc; the first
(spamd) is run as a daemon, and the second (spamc) is run repeatedly
in a the mail processing pipeline for filtering emails.

Though I use postfix with dovecot and I'm not exactly sure how you
configure exim4 to run spamc. Perhaps it's still by installing the
sa-exim package and editing its configuration file...

Ralph.