Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2015 08:13:45 +0200
From:      =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= <gandalf@shopzeus.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: {Spam?} Re: Cannot test spamassassin, what is going on here?
Message-ID:  <55F27119.4090705@shopzeus.com>
In-Reply-To: <20150910134146.2a987efd@gumby.homeunix.com>
References:  <55F0212B.9090708@shopzeus.com> <20150910134146.2a987efd@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>
> 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@shopzeus:~ # chmod 777 /tmp/test.eml
root@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@shopzeus:~ # sa-update
root@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@shopzeus:~ # su -l postfix /usr/local/bin/sa-update
Missing }.
root@shopzeus:~ #

What's next?



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