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

Nagy László Zsolt gandalf at shopzeus.com
Fri Sep 11 06:13:55 UTC 2015


>
> 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.
root at shopzeus:~ # sa-update
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.
root at shopzeus:~ # su -l postfix /usr/local/bin/sa-update
Missing }.
root at shopzeus:~ #

What's next?


More information about the freebsd-questions mailing list