From owner-freebsd-questions@FreeBSD.ORG Wed Oct 15 14:52:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4A1016A4B3 for ; Wed, 15 Oct 2003 14:52:12 -0700 (PDT) Received: from amsfep11-int.chello.nl (amsfep11-int.chello.nl [213.46.243.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8212C43F85 for ; Wed, 15 Oct 2003 14:52:11 -0700 (PDT) (envelope-from marko@half2.nl) Received: from p90 ([80.56.244.216]) by amsfep11-int.chello.nl (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with ESMTP id <20031015215209.SHDU13165.amsfep11-int.chello.nl@p90> for ; Wed, 15 Oct 2003 23:52:09 +0200 Date: Wed, 15 Oct 2003 23:54:51 +0200 From: Marko Leer X-Mailer: The Bat! (v1.61) Organization: Half2.nl X-Priority: 3 (Normal) Message-ID: <057857504.20031015235451@half2.nl> To: FreeBSD Questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: sendmail, DNS and clientqueues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marko Leer List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 21:52:12 -0000 Hi all, I'm running a web/mailserver on a FreeBSD 4.8 box and I combine these two functions with PHP. To increase performance I deliver the emailmessages directly to the sendmail queue. Sendmail these days has two queues in /var/spool. As I understand it sendmail runs two daemons; one that's listening on port 25 for mail to send and another one that is monitoring the queue. If a message arrives for sending, a connection is attempted at port 25 of the localhost. This is a notourious slow operation on my dedicated server [I suppose because there's no named daemon running on the box; this is a sendmail defaultassumption that I don't know how to hack] If this connection fails [or the hostname of the sender cannot be resolved] this message is filed in /var/spool/clientmqueue instead of /var/spool/mqueue. All messages from the webapplications end up in clientmqueue, which is not constantly monitored. The sendmail -q command sends all queued messages in mqueue. Now I've been wondering for some time - if the assumptions above are correct - why this localhost lookup is slow - how to force sendmail to send the messages in clientmqueue - if there's a sendmailusersmailinglist anywhere on the web where this questions probably should be posted. So far I haven't found any information on these specific issues so ANY clues are greatly appreciated. TIA, =:0] Marko