From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97C7F1382C5 for ; Fri, 20 Apr 2018 12:03:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3069E08EF; Fri, 20 Apr 2018 12:03:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 903C1E08EF for ; Fri, 20 Apr 2018 12:03:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F563335C60 for ; Fri, 20 Apr 2018 12:03:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D9FC257 for ; Fri, 20 Apr 2018 12:03:34 +0000 (UTC) From: "Thomas Raschbacher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Raschbacher" Message-ID: <1524225788.8a1683cff89eed7ef6c64df2d1636bf341887baa.lordvan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/clamav/, app-antivirus/clamav/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-antivirus/clamav/clamav-0.99.2-r1.ebuild app-antivirus/clamav/clamav-0.99.2-r3.ebuild app-antivirus/clamav/files/clamav-milter.README.gentoo app-antivirus/clamav/files/clamd.initd-r6 X-VCS-Directories: app-antivirus/clamav/files/ app-antivirus/clamav/ X-VCS-Committer: lordvan X-VCS-Committer-Name: Thomas Raschbacher X-VCS-Revision: 8a1683cff89eed7ef6c64df2d1636bf341887baa X-VCS-Branch: master Date: Fri, 20 Apr 2018 12:03:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ea70f1d4-5f7c-4b2b-aebd-b827368c0d46 X-Archives-Hash: 2e7f0401a358cb27baa6cae10f1eabe8 commit: 8a1683cff89eed7ef6c64df2d1636bf341887baa Author: Thomas Raschbacher gentoo org> AuthorDate: Fri Apr 20 12:01:30 2018 +0000 Commit: Thomas Raschbacher gentoo org> CommitDate: Fri Apr 20 12:03:08 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a1683cf app-antivirus/clamav: updated clamav-milter README Package-Manager: Portage-2.3.27, Repoman-2.3.9 app-antivirus/clamav/clamav-0.99.2-r1.ebuild | 2 +- app-antivirus/clamav/clamav-0.99.2-r3.ebuild | 2 +- .../clamav/files/clamav-milter.README.gentoo | 49 ++++++++++++++++++++-- app-antivirus/clamav/files/clamd.initd-r6 | 2 +- 4 files changed, 48 insertions(+), 7 deletions(-) diff --git a/app-antivirus/clamav/clamav-0.99.2-r1.ebuild b/app-antivirus/clamav/clamav-0.99.2-r1.ebuild index c0eb37e298b..d4a161880c9 100644 --- a/app-antivirus/clamav/clamav-0.99.2-r1.ebuild +++ b/app-antivirus/clamav/clamav-0.99.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 diff --git a/app-antivirus/clamav/clamav-0.99.2-r3.ebuild b/app-antivirus/clamav/clamav-0.99.2-r3.ebuild index a4419b7542f..44c387e2dcf 100644 --- a/app-antivirus/clamav/clamav-0.99.2-r3.ebuild +++ b/app-antivirus/clamav/clamav-0.99.2-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 diff --git a/app-antivirus/clamav/files/clamav-milter.README.gentoo b/app-antivirus/clamav/files/clamav-milter.README.gentoo index 17e9ba628ea..f526bd35a92 100644 --- a/app-antivirus/clamav/files/clamav-milter.README.gentoo +++ b/app-antivirus/clamav/files/clamav-milter.README.gentoo @@ -19,7 +19,10 @@ Step 2 - Tell the init script to start clamd as well as freshclam and the START_FRESHCLAM=yes START_MILTER=yes -Step 3 - Edit sendmail.mc +Step 3 - Inform your MTA about the new milter. + + SENDMAIL + Step 3.a.1 - Edit sendmail.mc Add these lines to sendmail.mc before any any other INPUT_MAIL_FILTER lines and before MAILER(local) @@ -30,15 +33,53 @@ Step 3 - Edit sendmail.mc INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `clmilter')dnl -Step 4 - Rebuild sendmail.cf + Step 3.a.2 - Rebuild sendmail.cf cd /etc/mail m4 sendmail.mc > sendmail.cf -Step 5 - Start clamad + + + POSTFIX + Step 3.b - Edit main.cf. + + Add unix:/var/run/clamav/clamav-milter.sock to your + smtpd_milters line. If the line doesn't exist, just + stick it at the bottom of main.cf on a new line. + + If you're appending, this is a space separated list. + If virus scanning is your most intensive test, you + may wish to put it on the end of the list so earlier, + easiser tests may punt the message before you go through the + trouble of virus scanning it. + + Only one milter example: + + # milters to run on network received mail. + smtpd_milters=unix:/var/run/clamav/clamav-milter.suck + + Multiple milters example: + + # milters to run on network received mail. + smtpd_milters=unix:/var/run/dkim-filter/dkim-filter.sock unix:/var/run/clamav/clamav-milter.sock + + +Step 5 - Adjust permissions for clamav-milter socket + + Edit /etc/clamav-milter.conf and check/change MilterSocketGroup and MilterSocketMode + e.g. for postfix it would be this (sendmail,.. should be similar): + MiltersocketGroup postfix + MilterSocketMode 660 + +Step 6 - Start clamad /etc/init.d/clamd start -Step 6 - Restart sendmail +Step 7 - Restart your MTA + SENDMAIL /etc/init.d/sendmail restart + + POSTFIX + /etc/init.d/postfix restart + diff --git a/app-antivirus/clamav/files/clamd.initd-r6 b/app-antivirus/clamav/files/clamd.initd-r6 index 7b50af64072..8cf8dd0a4ba 100644 --- a/app-antivirus/clamav/files/clamd.initd-r6 +++ b/app-antivirus/clamav/files/clamd.initd-r6 @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 daemon_clamd="/usr/sbin/clamd"