From owner-freebsd-questions@FreeBSD.ORG Sun Jun 14 19:57:52 2009 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 3A21C106566C for ; Sun, 14 Jun 2009 19:57:52 +0000 (UTC) (envelope-from ottk@zzz.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id E4C628FC14 for ; Sun, 14 Jun 2009 19:57:51 +0000 (UTC) (envelope-from ottk@zzz.ee) Received: from zzz.ee (localhost.zzz.ee [127.0.0.1]) by zzz.ee (Postfix) with ESMTP id 52050FD97B for ; Sun, 14 Jun 2009 22:57:50 +0300 (EEST) Received: by zzz.ee (Postfix, from userid 3019) id 3C143FD96C; Sun, 14 Jun 2009 22:57:50 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Guessed-Language: X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_50 X-Spam-Checker-URL: http://info.zzz.ee Received: from unknown-00-0f-ea-cc-7f-eb.lan (87-119-181-26.tll.elisa.ee [87.119.181.26]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zzz.ee (Postfix) with ESMTPS id AB9A3FD80C for ; Sun, 14 Jun 2009 22:55:04 +0300 (EEST) From: Ott =?utf-8?q?K=C3=B6stner?= To: freebsd-questions@freebsd.org Date: Sun, 14 Jun 2009 22:55:03 +0300 User-Agent: KMail/1.9.10 References: <200906142228.17898.ottk@zzz.ee> <20090614154601.0cc0b47f@scorpio> In-Reply-To: <20090614154601.0cc0b47f@scorpio> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906142255.04001.ottk@zzz.ee> X-Virus-Scanned: ClamAV using ClamSMTP @zzz.ee Subject: Re: Unable to start clamsmtpd 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: Sun, 14 Jun 2009 19:57:52 -0000 On Sunday 14 June 2009 10:46:01 pm Jerry wrote: > I had: > > ClamAddress: /var/run/clamav/clamd > > in my config file. I changed the clamd to clamd.sock but it did not > make a difference. > > The clamd.pin, clamd.sock= and freshclam.pid files are in > the /var/run/clamav directory. > > This is becoming really annoying. Aparently, clamdsmtp will not create > its own clamsmtpd.pid file. Name does not matter, but '/var/run/clamav/' should be owned by 'clamsmtp' owner. Also 'clamd.conf' should be edited. The socket must be the same in both configuration files. # Path to a local socket file the daemon will listen on. # Default: disabled (must be specified by a user) LocalSocket /var/run/clamav/clamd.sock All 3 programs should run under the same username: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 56863 clamav 3 45 0 236M 28292K ucond 0 0:03 0.98% clamd 21484 clamav 1 4 0 15704K 984K accept 1 1:44 0.00% clamsmtpd 56894 clamav 1 20 0 19188K 636K pause 1 0:39 0.00% freshclam Works fine. I can send all my conf files, if needed. Probably not a very good idea to copy/paste these into this list. My clamd works fine for some time already. This very e-mail goes through my clamd... greetings, Ott