From owner-freebsd-questions@FreeBSD.ORG Fri Feb 15 16:35:44 2008 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 C848516A46C for ; Fri, 15 Feb 2008 16:35:44 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 824BB13C4CC for ; Fri, 15 Feb 2008 16:35:44 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 8FF51EBC3B; Fri, 15 Feb 2008 11:35:43 -0500 (EST) Date: Fri, 15 Feb 2008 11:33:34 -0500 From: Bill Moran To: Anton Shterenlikht Message-Id: <20080215113334.71e3380e.wmoran@potentialtech.com> In-Reply-To: <20080215162713.GA45570@mech-aslap33.men.bris.ac.uk> References: <20080215162713.GA45570@mech-aslap33.men.bris.ac.uk> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: mailq takes 25 sec to respond 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: Fri, 15 Feb 2008 16:35:44 -0000 In response to Anton Shterenlikht : > On my ds10l alpha sendmail seem to work fine with the exception > of very long wait time for mailq (sendmail -bp) - about 25 sec. > > I'm not convinced it is an alpha problem, so I post to this list. > > On a much slower i386 running the same version of OS and of sendmail > it takes less than a second. > > # uname -srm > FreeBSD 6.3-STABLE alpha > > # sendmail -d0.1 > Version 8.14.2 > Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 > NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SCANF > TCPWRAPPERS USERDB XDEBUG > > The only software difference between my i386 and my alpha I can think of > is that on alpha I run IPF: > > # grep "= 25" /etc/ipf.rules > pass out on dc0 proto tcp from any to any port = 25 flags S/SA keep state Based on your description of the probem, you should ensure that all block rules in ipf include logging, and see if running mailq is triggering a timeout because it can't communicate over the network. 25 sec is suspiciously close to 30 seconds, which is a common timeout value for network operations. sendmail needs to communicate on more ports than just 25, so it's likely that you've blocked something else that it needs ... DNS perhaps? -- Bill Moran http://www.potentialtech.com