{Spam?} Re: Cannot test spamassassin, what is going on here?

RW rwmaillists at googlemail.com
Fri Sep 11 13:33:39 UTC 2015


On Fri, 11 Sep 2015 08:13:45 +0200
Nagy László Zsolt wrote:

> 
> >
> > This is because the postfix user doesn't have a default shell
> > configured, you can use  su -m which will use the current shell.
> >
> > The minus -m option prevents the environment being changed; it
> > might be necessary to set USER to postfix, and if that user has a
> > home directory set HOME.
> I have changed the shell to csh, and then this happens:
> 
> root at shopzeus:~ # chmod 777 /tmp/test.eml
> root at shopzeus:~ # su postfix -c 'spamassassin -t /tmp/test.eml -C 
> /usr/local/etc/MailScanner '
> config: no rules were found!  Do you need to run 'sa-update'? at 
> /usr/local/bin/spamassassin line 413.

When you ran spamassassin before it clearly found rules because the test
email hit RCVD_IN_DNSWL_HI.

My guess is that the -C option is causing a problem. There are
essential files in the spamassassin/ directory that probably aren't in
the MailScanner/ directory.

When you wrote:

> The configuration should be the same
> ( /usr/local/etc/mail/spamassassin is a symbolic link to 
> /usr/local/etc/MailScanner/spam.assassin.prefs.conf


I presume you meant that there is a symbolic link to
spam.assassin.prefs.conf *in* /usr/local/etc/mail/spamassassin/

SpamAssassin is probably ignoring this because the file name doesn't
end in .cf - try renaming the symbolic link.



More information about the freebsd-questions mailing list