Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2015 14:33:29 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: {Spam?} Re: Cannot test spamassassin, what is going on here?
Message-ID:  <20150911143329.3c3cf3c8@gumby.homeunix.com>
In-Reply-To: <55F27119.4090705@shopzeus.com>
References:  <55F0212B.9090708@shopzeus.com> <20150910134146.2a987efd@gumby.homeunix.com> <55F27119.4090705@shopzeus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 11 Sep 2015 08:13:45 +0200
Nagy L=E1szl=F3 Zsolt wrote:

>=20
> >
> > 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:
>=20
> root@shopzeus:~ # chmod 777 /tmp/test.eml
> root@shopzeus:~ # su postfix -c 'spamassassin -t /tmp/test.eml -C=20
> /usr/local/etc/MailScanner '
> config: no rules were found!  Do you need to run 'sa-update'? at=20
> /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=20
> /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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150911143329.3c3cf3c8>