From owner-freebsd-questions@FreeBSD.ORG Thu Aug 19 08:43:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0294D1065694 for ; Thu, 19 Aug 2010 08:43:28 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg20.ifdnrg.com (outbound.ifdnrg.com [195.66.148.241]) by mx1.freebsd.org (Postfix) with ESMTP id 896A68FC25 for ; Thu, 19 Aug 2010 08:43:27 +0000 (UTC) Received: from [192.168.1.131] (93-97-172-73.zone5.bethere.co.uk [93.97.172.73]) (authenticated bits=0) by ifdnrg20.ifdnrg.com (8.14.4/8.14.3) with ESMTP id o7J8hPOl022613 for ; Thu, 19 Aug 2010 09:43:25 +0100 (BST) (envelope-from paul@ifdnrg.com) Message-ID: <4C6CEEA2.1070009@ifdnrg.com> Date: Thu, 19 Aug 2010 09:43:14 +0100 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C6BC321.5090901@ifdnrg.com> <20100818075321.37c39671@scorpio> <4C6C49B0.3030202@ifdnrg.com> <4C6C52BD.6020604@ifdnrg.com> In-Reply-To: <4C6C52BD.6020604@ifdnrg.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: clamav issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2010 08:43:28 -0000 On 18/08/2010 22:38, Paul Macdonald wrote: > Paul Macdonald wrote: >> Jerry wrote: >>> On Wed, 18 Aug 2010 12:25:21 +0100 >>> Paul Macdonald articulated: >>> >>> >>> >>>> I'm having some problems with a clamav install and wondered if >>>> anyone had any suggestions. >>>> >>>> As of a few days ago i noticed mail was getting rejected with 451 >>>> retry codes. >>>> >>>> Checking the milters this appeared to be clamav, and removing this >>>> milter fixed the problem. >>>> >>>> Afterwards, on tryign to fix the issue, i noticed that whilst clamd >>>> started ok, it no longer stopped and just endlessly waited for the >>>> pid. >>>> >>>> I suspect this is related, as freshclam also was unable to notifuy >>>> clamd of updates. >>>> >>>> I've rebuilt clamav several times, mainly thinking that the first >>>> issue of why it wouldn;t stop was indictaive of it not responding to >>>> other requests ( milter , freshclam etc). >>>> >>>> I've moved the mail scanning onto another box, but would dearly like >>>> it to be working on this particular box. >>>> >>>> Where to start? Suggestions welcomed! >>> >>> Perhaps you could try the following - basically nuking clamav >>> >>> 1) Stop Clamav/Freshclam and the milter if it is running. >>> 2) Run: pkg_delete -dfv clamav-0.96.2_1 >>> 3) Remove or rename any config files of Clamav and it children. Also, >>> be sure to delete all of Clamav's definition files. >>> 4) Remove old Clamav log files >>> 5) Insure that any stale 'pid' files are deleted. >>> 6) cd to the clamav port and run "make config" >>> 7) Install the port and modify the Clamav/Freshclam/Clamilter config >>> files are needed. >>> 8 Either reboot or start manually all of the Clamav programs you >>> require. (I would recommend the reboot) >>> >>> Good luck! >> thanks jerry, i'd pretty much done this, but followed these >> instructions with those specific flasg and am still not able to use >> the startup scripts to stop clamd after its started, >> The pid in /var/run/clamav/ is correct, but it never manages to stop >> the daemon. >> I'm working from the assumption that i need to get it responding to >> normal signals before trying any scanning ( i have tried adding it >> back in to my sendmail config as get the same result as originally) >> >> I've got all the debugging on, and see nothing in logs when its told >> to restart or sent any signals. >> >> Paul. >> >> >> > clamav now works fine when installing as a package over ftp, so thats > a working although an unsatisying result.. > > thanks > in case it helps anyone, i finally got this workjing from ports by disabling the JIT bytecode compiler. -- ------------------------- Paul Macdonald IFDNRG Ltd Web and video hosting ------------------------- t: 0131 5548070 m: 07534206249 e: paul@ifdnrg.com w: http://www.ifdnrg.com ------------------------- IFDNRG 40 Maritime Street Edinburgh EH6 6SA -------------------------