From owner-freebsd-questions@freebsd.org Mon Sep 14 05:38:10 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 0D6DCA04236 for ; Mon, 14 Sep 2015 05:38:10 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from fep21.mx.upcmail.net (fep21.mx.upcmail.net [62.179.121.41]) by mx1.freebsd.org (Postfix) with ESMTP id 5193817B0 for ; Mon, 14 Sep 2015 05:38:08 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep28-int.chello.at (InterMail vM.8.01.05.21 201-2260-151-156-20141103) with ESMTP id <20150914053753.RHW14702.viefep28-int.chello.at@edge02.upcmail.net> for ; Mon, 14 Sep 2015 07:37:53 +0200 Received: from [192.168.1.160] ([86.101.30.40]) by edge02.upcmail.net with edge id Gtds1r00N0rw6r201tdsLE; Mon, 14 Sep 2015 07:37:53 +0200 X-SourceIP: 86.101.30.40 Subject: Re: {Spam?} 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> <55F27119.4090705@shopzeus.com> <20150911143329.3c3cf3c8@gumby.homeunix.com> From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Message-ID: <55F65D30.4080103@shopzeus.com> Date: Mon, 14 Sep 2015 07:37:52 +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: <20150911143329.3c3cf3c8@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: Mon, 14 Sep 2015 05:38:10 -0000 >> 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. You are right. After changing shell of postfix user to csh: su postfix -c 'spamassassin -p /usr/local/etc/MailScanner/spam.assassin.prefs.conf -t < /tmp/test.eml ' The result is this: > Content analysis details: (-5.0 points, 5.0 required) > > pts rule name description > ---- ---------------------- > -------------------------------------------------- > -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed athttp://www.dnswl.org/, > high > trust > [8.8.178.116 listed in list.dnswl.org] > 0.0 T_TVD_MIME_EPI BODY: No description available. > But this is wrong, because the email is still identified as ham. But the live server has identified it as spam => still cannot test spamassassin.