From owner-freebsd-questions@FreeBSD.ORG Tue May 15 16:29:27 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 83E8716A400 for ; Tue, 15 May 2007 16:29:27 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id 6C52213C45B for ; Tue, 15 May 2007 16:29:27 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay8.apple.com (a17-128-113-38.apple.com [17.128.113.38]) by mail-out4.apple.com (Postfix) with ESMTP id 3B8EF145A80; Tue, 15 May 2007 09:29:27 -0700 (PDT) Received: from relay8.apple.com (unknown [127.0.0.1]) by relay8.apple.com (Symantec Mail Security) with ESMTP id 12BA04055B; Tue, 15 May 2007 09:29:27 -0700 (PDT) X-AuditID: 11807126-a3c30bb000004313-cd-4649dfe73791 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 relay8.apple.com (Apple SCV relay) with ESMTP id 08190404FD; Tue, 15 May 2007 09:29:27 -0700 (PDT) In-Reply-To: <000201c7970a$ef8d4af0$2101a8c0@asinusaureus> References: <000201c7970a$ef8d4af0$2101a8c0@asinusaureus> Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7C73E4FC-C59B-45DA-858F-6CBB52A7E168@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 15 May 2007 09:29:26 -0700 To: Ernest Sales X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org, 'Jeffrey Goldberg' Subject: Re: sendmail init error: Can't assign requested address 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: Tue, 15 May 2007 16:29:27 -0000 On May 15, 2007, at 9:06 AM, Ernest Sales wrote: [ ... ] > Honestly, I don't understand what each of this four daemons is > supposed > to do. I just want the minimal working sendmail config in a NATed > host, > the /etc/defaults/rc.conf reads as your sample, and init says > sendmail_outbound_enable is set to NO, which seems odd but dunno the > consequences. There are only two daemons, actually: the MTA, and the client mqueue runner. The separation was made because sendmail used to run as a single, setuid-root executable, and has had a rather infamous security history as a consequence. If you want sendmail to be running and listening on port 25 as a MTA, you need to set the sendmail_enable/ sendmail_outbound_enable to YES. [ ... ] >>> Is there any standard, anything like the CIDR blocks reserved for >>> private networks? >> >> The zeroconf/rendezvous stuff likes to use ".local" as the domain >> unless other info is available. > > Cool. Tried .local and works too. Looks like sendmail is happy with > finding 'dot anything' after the hostname. So far, my problem is > fixed. > But the init behavior for unqualified hostnames is less than optimal: > having to wait one minute until sendmail agrees --and it finally > agrees-- is annoying; and this happens for every sendmail daemon > launch. > As more end-users using PCs without FQDN jump to FreeBSD this could be > more heard of. Wonder if filing a PR; comments welcome. The standard period for a DNS timeout is anywhere up to about two minutes, depending on how many resolvers are configured in /etc/ resolv.conf. It's possible to tell sendmail not to use DNS, and avoid this timeout, but normally people run mailservers only on machines with working DNS and a sensible hostname. This isn't a bug, it's just an assumption that sendmail makes which is typically appropriate, but not for the case of a random client machine without working DNS.... -- -Chuck