From owner-freebsd-questions Thu Jul 25 16:32:21 2002 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 909F937B400 for ; Thu, 25 Jul 2002 16:32:17 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7505243E77 for ; Thu, 25 Jul 2002 16:32:16 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g6PNWDXZ022374; Fri, 26 Jul 2002 00:32:13 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g6PNW3Wi022369; Fri, 26 Jul 2002 00:32:03 +0100 (BST) Date: Fri, 26 Jul 2002 00:32:03 +0100 From: Matthew Seaman To: robert at castley dot com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sendmail hangs on start in 4.6 Message-ID: <20020725233203.GE20670@happy-idiot-talk.infracaninophi> References: <001101c23428$e9fccbf0$1601a8c0@charlie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101c23428$e9fccbf0$1601a8c0@charlie> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 25, 2002 at 11:16:24PM +0100, robert at castley dot com wrote: > Doing a minimal install of 4.6 when I reboot sendmail hangs for a while. > When looking at the sendmail maillog it reports something to do with > IPV6 !!! Do I need to configure my NIC with IPV6 on the install because > currently I say no and just configure a normal IP address. That could well be the msp sendmail trying to do DNS lookups for the ::1 address, which is the IPv6 version of 127.0.0.1. As /usr/share/sendmail/cf/README says: Note: if localhost doesn't resolve to the IP address of your local system (127.0.0.1 or ::1 for IPv6), then you either need to fix your hostname resolution (localhost and localhost.YOUR.DOMAIN should resolve to that address by convention) or you need to specify the IP address as argument, e.g., FEATURE(`msp', `[127.0.0.1]') So there's two ways of fixing that. Either set up DNS so that it can resolve ::1 to localhost and localhost.dom.ain (and vice versa), or tell sendmail not to use IPv6. The latter is easier. Simply copy /etc/mail/freebsd.submit.mc to yourhostname.submit.mc and edit it to read: divert(-1) # # Copyright (c) 2001, 2002 Sendmail, Inc. and its suppliers. # All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # # # This is the prototype file for a set-group-ID sm-msp sendmail that # acts as a initial mail submission program. # divert(0)dnl VERSIONID(`$Id: submit.mc,v 8.6 2002/03/26 03:30:58 ca Exp $') define(`confCF_VERSION', `Submit')dnl define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet define(`confTIME_ZONE', `USE_TZ')dnl FEATURE(`msp', `[127.0.0.1]')dnl Now append a line: SENDMAIL_SUBMIT_MC=/etc/mail/yourhostname.submit.mc to /etc/make.conf, then cd /etc/mail and type: make make install make restart-mspq Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message