From owner-freebsd-questions@freebsd.org Fri Sep 11 06:13:55 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 160CAA02172 for ; Fri, 11 Sep 2015 06:13:55 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from fep31.mx.upcmail.net (fep31.mx.upcmail.net [62.179.121.49]) by mx1.freebsd.org (Postfix) with ESMTP id 5A0311982 for ; Fri, 11 Sep 2015 06:13:53 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep31-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20150911060529.PJST2710.viefep31-int.chello.at@edge02.upcmail.net> for ; Fri, 11 Sep 2015 08:05:29 +0200 Received: from [192.168.1.160] ([86.101.30.40]) by edge02.upcmail.net with edge id FiDl1r00Y0rw6r201iDlR4; Fri, 11 Sep 2015 08:13:45 +0200 X-SourceIP: 86.101.30.40 Subject: Re: {Spam?} Re: Cannot test spamassassin, what is going on here? To: freebsd-questions@freebsd.org References: <55F0212B.9090708@shopzeus.com> <20150910134146.2a987efd@gumby.homeunix.com> From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Message-ID: <55F27119.4090705@shopzeus.com> Date: Fri, 11 Sep 2015 08:13:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150910134146.2a987efd@gumby.homeunix.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 06:13:55 -0000 > > 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?