From owner-freebsd-questions@freebsd.org Mon Jul 9 19:49:49 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 ACF311027A80 for ; Mon, 9 Jul 2018 19:49:49 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) 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 4A08282FBD for ; Mon, 9 Jul 2018 19:49:49 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 1482162598 for ; Mon, 9 Jul 2018 15:49:48 -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 HSBuomDuf2An for ; Mon, 9 Jul 2018 15:49:44 -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 ; Mon, 9 Jul 2018 15:49:43 -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 15DCA9ED36 for ; Mon, 9 Jul 2018 15:49:44 -0400 (EDT) Received: from mx32.harte-lyne.ca (unknown [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 51D6CC912 for ; Mon, 9 Jul 2018 15:49:43 -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 2QLvfNLAiLZh; Mon, 9 Jul 2018 15:49:27 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx32.harte-lyne.ca (Postfix) with ESMTPSA id 6B51CC909; Mon, 9 Jul 2018 15:49:27 -0400 (EDT) Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 9 Jul 2018 15:49:27 -0400 Message-ID: In-Reply-To: <594f1e8cc6680fc6076ac1cbf35852c5@boosten.org> References: <071b18a6a1025eb2f27c9091dfc75f90.squirrel@webmail.harte-lyne.ca> <77694e205a706f0e4517b5bf2058bc86@boosten.org> <594f1e8cc6680fc6076ac1cbf35852c5@boosten.org> Date: Mon, 9 Jul 2018 15:49:27 -0400 Subject: Re: FreeBSD-11, Amavisd-New Spamassassin and Pyzor From: "James B. Byrne" To: "Peter Boosten" Cc: freebsd-questions@harte-lyne.ca Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Mon, 09 Jul 2018 19:49:49 -0000 On Mon, July 9, 2018 13:45, Peter Boosten wrote: > Peter Boosten schreef op 2018-07-09 19:20: >> James B. Byrne via freebsd-questions schreef op 2018-07-09 17:22: >>> I am not having any success in discovering any documentation on how >>> to get pyzor set up and running on FreeBSd. I cannot even find >>> documentation as to where the configuration bits go. > > You might want to have a look at /usr/local/bin/pyzor, and of course > on pyzor.org. When you're not running your own pyzor server, you don't > actually have to configure anything. > As it turns out, there is a fair bit of configuration necessary to get DCC, pyzor and Razor2 working with Amavisd-new and Postfix. None of which is particularly well documented. What documentation exists is found in the form of tutorials. These are often out-of-date; or assume too much prior knowledge; or are specific to a different OS to a degree that makes using the examples fraught with hazards. For FreeBSD one begins, after installing the requisite packages, by registering ones instance using razor-admin. Then, to actually get things to work, one must either edit Spamassassin's v310.pre file and uncomment the loadplugins instructions for the necessary bits or add those instructions to the top of local.cf: # DCC is disabled here because it is not open source. See the DCC # license for more details. # loadplugin Mail::SpamAssassin::Plugin::DCC # Pyzor - perform Pyzor message checks. # loadplugin Mail::SpamAssassin::Plugin::Pyzor # Razor2 - perform Razor2 message checks. # loadplugin Mail::SpamAssassin::Plugin::Razor2 Then one has to enable these things in local.cf itself. ifplugin Mail::SpamAssassin::Plugin::Razor2 use_razor2 1 endif ifplugin Mail::SpamAssassin::Plugin::DCC use_dcc 1 endif ifplugin Mail::SpamAssassin::Plugin::Pyzor use_pyzor 1 pyzor_timeout 30 pyzor_path /usr/local/bin/pyzord # pyzor_options --homedir /usr/local/etc/mail/spamassassin/pyzor endif 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. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3