From owner-freebsd-questions@freebsd.org Fri Sep 11 13:33:39 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 0532AA00024 for ; Fri, 11 Sep 2015 13:33:39 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 924461A6A for ; Fri, 11 Sep 2015 13:33:38 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by wicfx3 with SMTP id fx3so64459085wic.1 for ; Fri, 11 Sep 2015 06:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=VUpdc3qwWhutOs5TRiQdgdiTfOy1J86+ofuyQPYaSyE=; b=xZOGMMlVjY9SB9Gp/y1MytXQlFurL2DYDbcv2242SpDYxiR8anzDbDbBJ9YdchKzUB Dh3jo7sWxsVlla+Qx7wgq6c+lGp+E6ygkf7iA48IpIyWZs/TZseynNO1WnA2YvKrtL4j 29TLIiClCznETj1VJJ97j0Gu9VVxe2G9BO0fXcda2JxDbqoC4jUjRb9v/VeB3jJCMSgg AJPa8JKh5O/ehoNUaBWIunQkQHoXkOEVh1ErDyRZ/9d2wtwCfM+9+3lIpOExtg3OX6Vk y2RoCYZSgFMPMN6bPVCyzLxdz96S+q0ZZg6anCzkHIOPPOXUHXpYLKS5tC6W29hvuuVM WNVg== X-Received: by 10.180.89.99 with SMTP id bn3mr16660216wib.61.1441978416235; Fri, 11 Sep 2015 06:33:36 -0700 (PDT) Received: from gumby.homeunix.com ([90.195.198.255]) by smtp.gmail.com with ESMTPSA id wj4sm438892wjb.10.2015.09.11.06.33.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 06:33:35 -0700 (PDT) Date: Fri, 11 Sep 2015 14:33:29 +0100 From: RW 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> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 13:33:39 -0000 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.