From owner-freebsd-questions@freebsd.org Tue Jul 10 05:58:08 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19E591049809 for ; Tue, 10 Jul 2018 05:58:08 +0000 (UTC) (envelope-from peter@boosten.org) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A16CC82B8B for ; Tue, 10 Jul 2018 05:58:07 +0000 (UTC) (envelope-from peter@boosten.org) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id B6DF5625F8 for ; Tue, 10 Jul 2018 01:58:06 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q2-1hbxeS6oP for ; Tue, 10 Jul 2018 01:58:04 -0400 (EDT) Received: from inet17.hamilton.harte-lyne.ca (inet17.hamilton.harte-lyne.ca [216.185.71.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "imap.hamilton.harte-lyne.ca", Issuer "CA HLL ISSUER 01" (not verified)) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPS for ; Tue, 10 Jul 2018 01:58:04 -0400 (EDT) Received: from mx32.harte-lyne.ca (mx32.harte-lyne.ca [216.185.71.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx32.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (verified OK)) by inet17.hamilton.harte-lyne.ca (Postfix) with ESMTPS id 646399DF5C; Tue, 10 Jul 2018 01:58:04 -0400 (EDT) Received: from mx32.harte-lyne.ca (unknown [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 58C32CF5D; Tue, 10 Jul 2018 01:58:03 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from mx32.harte-lyne.ca ([127.0.32.1]) by mx32.harte-lyne.ca (mx32.harte-lyne.ca [127.0.32.1]) (amavisd-new, port 10024) with ESMTP id KxS6qTSlNboF; Tue, 10 Jul 2018 01:57:47 -0400 (EDT) Received-SPF: Temperror (mailfrom) identity=mailfrom; client-ip=212.54.42.164; helo=smtpq1.tb.mail.iss.as9143.net; envelope-from=peter@boosten.org; receiver= Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx32.harte-lyne.ca (Postfix) with ESMTPS; Tue, 10 Jul 2018 01:57:46 -0400 (EDT) Received: from [212.54.42.136] (helo=smtp12.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1fclei-0006cp-GF; Tue, 10 Jul 2018 07:57:44 +0200 Received: from 5419f71f.cm-5-2d.dynamic.ziggo.nl ([84.25.247.31] helo=ra.boosten.org) by smtp12.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1fclei-0008Vc-Eg; Tue, 10 Jul 2018 07:57:44 +0200 Received: from ra.egypt.nl (localhost.egypt.nl [127.0.0.1]) by ra.boosten.org (Postfix) with ESMTP id 952C5343308B; Tue, 10 Jul 2018 07:57:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at boosten.org Received: from ra.boosten.org ([127.0.0.1]) by ra.egypt.nl (ra.egypt.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DqICvBxM32LY; Tue, 10 Jul 2018 07:57:37 +0200 (CEST) Received: from www.boosten.org (ra.egypt.nl [192.168.13.15]) by ra.boosten.org (Postfix) with ESMTPA id 16DFE3433087; Tue, 10 Jul 2018 07:57:37 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 10 Jul 2018 07:57:34 +0200 From: Peter Boosten To: byrnejb@harte-lyne.ca Cc: freebsd-questions@harte-lyne.ca, owner-freebsd-questions@freebsd.org Subject: Re: FreeBSD-11, Amavisd-New Spamassassin and Pyzor Reply-To: peter@boosten.org Mail-Reply-To: peter@boosten.org In-Reply-To: References: <071b18a6a1025eb2f27c9091dfc75f90.squirrel@webmail.harte-lyne.ca> <77694e205a706f0e4517b5bf2058bc86@boosten.org> <594f1e8cc6680fc6076ac1cbf35852c5@boosten.org> Message-ID: <0f5f1dbe8742f704adc1fdedca0eebf6@boosten.org> X-Sender: peter@boosten.org User-Agent: Roundcube Webmail/1.3.6 X-SourceIP: 84.25.247.31 X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=Gc+jYjfL c=1 sm=1 tr=0 a=JWBJsaPp29SgP5DpYRBqZw==:17 a=IkcTkHD0fZMA:10 a=R9QF1RCXAYgA:10 a=b6nfwRhkAAAA:8 a=4KpQIbDHtWIV50MmThEA:9 a=Wu1FouM_i_aEdmS5:21 a=G9qa4AYJur5wGbHa:21 a=QEXdDO2ut3YA:10 none X-Ziggo-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 05:58:08 -0000 James B. Byrne via freebsd-questions schreef op 2018-07-09 21:49: > > I am still uncertain whether or not I have actually installed pyzor > and razor2 correctly. But after these changes avavisd and > spamassassin seems to be working, at least to some degree at the > moment. > You could put this in your local.cf and watch the headers... pyzor_add_header 1 X-Spam-Status: No, score=0.266 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, FSL_BULK_SIG=0.001, PYZOR_CHECK=1.392, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no I can check razor by raising the debug level in its configuration file, which in my case is in /var/amavis/.razor My config looks like this: # # Razor2 config file # # Autogenerated by Razor-Agents v2.84 # Wed Jul 9 21:00:24 2014 # Created with all default values # # see razor-agent.conf(5) man page # debuglevel = 0 identity = identity ignorelist = 0 listfile_catalogue = servers.catalogue.lst listfile_discovery = servers.discovery.lst listfile_nomination = servers.nomination.lst logfile = razor-agent.log logic_method = 4 min_cf = ac razordiscovery = discovery.razor.cloudmark.com rediscovery_wait = 172800 report_headers = 1 turn_off_discovery = 0 use_engines = 4,8 whitelist = razor-whitelist If you raise the debug level to 5, that would give you enough evidence. The log will be in the same directory, called razor-agent.log. No need to restart amavis for this. You need to tell spamassassin where razor is, though. I did this: razor_config /var/amavis/.razor/razor-agent.conf You can either do that in local.cf, or in the user_prefs file in amavis' home directory (again, in my case: /var/amavis/.spamassassin/) Hope this helps. -- Met vriendelijke groet / Kind regards / Mit freundlichem Gruß Peter Boosten