From owner-freebsd-questions@FreeBSD.ORG  Mon Jun 11 19:04:42 2007
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 1CB2C16A46C
	for <freebsd-questions@freebsd.org>;
	Mon, 11 Jun 2007 19:04:42 +0000 (UTC) (envelope-from cswiger@mac.com)
Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22])
	by mx1.freebsd.org (Postfix) with ESMTP id 0659913C465
	for <freebsd-questions@freebsd.org>;
	Mon, 11 Jun 2007 19:04:41 +0000 (UTC) (envelope-from cswiger@mac.com)
Received: from relay7.apple.com (relay7.apple.com [17.128.113.37])
	by mail-out3.apple.com (Postfix) with ESMTP id 3F2098881F7;
	Mon, 11 Jun 2007 12:03:37 -0700 (PDT)
Received: from relay7.apple.com (unknown [127.0.0.1])
	by relay7.apple.com (Symantec Mail Security) with ESMTP id 975AA30066; 
	Mon, 11 Jun 2007 12:04:41 -0700 (PDT)
X-AuditID: 11807125-9ef62bb000000801-8a-466d9cc9ae2a
Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	by relay7.apple.com (Apple SCV relay) with ESMTP id 8D72F300B2;
	Mon, 11 Jun 2007 12:04:41 -0700 (PDT)
In-Reply-To: <466CB2DF.30808@extracktor.com>
References: <466CB2DF.30808@extracktor.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <9ADFB3BA-F02E-458D-80C1-2F13EAC769EF@mac.com>
Content-Transfer-Encoding: 7bit
From: Chuck Swiger <cswiger@mac.com>
Date: Mon, 11 Jun 2007 12:04:40 -0700
To: Foo JH <jhfoo-ml@extracktor.com>
X-Mailer: Apple Mail (2.752.2)
X-Brightmail-Tracker: AAAAAA==
Cc: freebsd-questions@freebsd.org
Subject: Re: Shorten delay in sending mail to SMTP
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2007 19:04:42 -0000

Hi--

On Jun 10, 2007, at 7:26 PM, Foo JH wrote:
> I'm using inetd + qmail to implement a mail server. The combo  
> works, but usually sending a mail takes some 5-10 seconds.

> I suspect it's largely because inetd or qmail is trying to do some  
> dns lookup or something, before letting it through. Is there any  
> way to shorten this process - if possible eliminate it altogether?
>
> Some time back, there was an advice to avoid inetd. It's probably a  
> good idea, but I hope to deal with this first before moving forward  
> on the setup.

It's certainly possible to disable DNS lookups entirely, and that  
might help reduce the delay you see, but in that case you'll have to  
configure qmail to relay all mail to the equivalent of a sendmail  
SMART_HOST (ie, to your ISP's SMTP relay), which performs MX lookups  
and so forth instead of your local qmail doing so.

It is only recommended to use an MTA spawned from inetd if your  
traffic volume is very low-- probably well under 1000 messages/day.   
If your traffic level is higher, you should run your MTA as a daemon  
and not through inetd.

-- 
-Chuck