From owner-freebsd-questions@FreeBSD.ORG Thu May 17 04:37:49 2007 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 501F316A401 for ; Thu, 17 May 2007 04:37:49 +0000 (UTC) (envelope-from doug@safeport.com) Received: from pemaquid.safeport.com (pemaquid.safeport.com [209.31.154.17]) by mx1.freebsd.org (Postfix) with ESMTP id 12E1113C43E for ; Thu, 17 May 2007 04:37:48 +0000 (UTC) (envelope-from doug@safeport.com) Received: from localhost (localhost [127.0.0.1]) by pemaquid.safeport.com (8.13.4/8.13.4) with ESMTP id l4H4BCI9055255 for ; Thu, 17 May 2007 00:11:13 -0400 (EDT) (envelope-from doug@safeport.com) Date: Thu, 17 May 2007 00:11:12 -0400 (EDT) From: doug@safeport.com To: freebsd-questions@FreeBSD.ORG Message-ID: <20070516233456.O47339@pemaquid.safeport.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (pemaquid.safeport.com [127.0.0.1]); Thu, 17 May 2007 00:11:13 -0400 (EDT) Cc: Subject: milter-greylist error 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, 17 May 2007 04:37:49 -0000 My question is how to restart the milter after an error. I am running FreeBSD 5.5 with milter-greylist and sendmail. I made a change with a syntax error and got: May 16 20:53:13 newharbor milter-greylist: config error at line 89: syntax error May 16 20:53:13 newharbor milter-greylist: Final database dump May 16 20:53:13 newharbor milter-greylist: Exiting May 16 20:53:14 newharbor sm-mta[19137]: l4H0rCWO019137: Milter (greylist): write(D) returned -1, expected 59: Broken pipe May 16 20:53:14 newharbor sm-mta[19137]: l4H0rCWO019137: Milter (greylist): to error state so I backed up to the previous conf file and got an unending series of: May 16 20:53:28 newharbor sm-mta[19142]: l4H0rSwG019142: Milter: initialization failed, temp failing commands May 16 20:53:31 newharbor sm-mta[19139]: l4H0rVxw019139: Milter (greylist): error connecting to filter: Connection refused by /var/milter-greylist/milter-greylist.sock May 16 20:53:31 newharbor sm-mta[19139]: l4H0rVxw019139: Milter (greylist): to error state after trying to restart the milter via /usr/local/etc/rc.d, I eventually gave up and rebooted. That yielded: May 16 21:31:59 newharbor sm-mta[21640]: l4H1VxmM021640: Milter (greylist): local socket name /var/milter-greylist/milter-greylist.sock unsafe May 16 21:31:59 newharbor sm-mta[21640]: l4H1VxmM021640: Milter (greylist): to error state May 16 21:31:59 newharbor sm-mta[21640]: l4H1VxmM021640: Milter: initialization failed, temp failing commands After trying ../rc.d filter again, I just typed in the appropriate command. My main question is how should the rc.d script be run? I did a cd /usr/local/etc/rc.d and ./milter-greylist.sh start I am clueless as to why the reboot did not work. The command that did work: /usr/local/libexec/milter-greylist -P /var/run/milter-greylist.pid \ -f /usr/local/etc/mail/greylist.conf \ -p /var/milter-greylist/milter-greylist.sock -u mailnull Thanks for any thoughts _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601