From owner-freebsd-questions@FreeBSD.ORG Fri Oct 7 00:00:38 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 A12ED16A41F for ; Fri, 7 Oct 2005 00:00:38 +0000 (GMT) (envelope-from andrsn@andrsn.stanford.edu) Received: from smtp1.Stanford.EDU (smtp1.Stanford.EDU [171.67.16.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2316643D46 for ; Fri, 7 Oct 2005 00:00:38 +0000 (GMT) (envelope-from andrsn@andrsn.stanford.edu) Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by smtp1.Stanford.EDU (8.12.11/8.12.11) with ESMTP id j9700UAd009698; Thu, 6 Oct 2005 17:00:30 -0700 Received: from localhost (nobody@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.13.4/8.13.4) with ESMTP id j96Nu7qO007503; Thu, 6 Oct 2005 16:56:07 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Date: Thu, 6 Oct 2005 16:56:07 -0700 (PDT) From: Annelise Anderson To: Chuck Swiger In-Reply-To: <4344C2EF.9070905@mac.com> Message-ID: <20051006165310.S7485@andrsn.stanford.edu> References: <20051004161847.Y538@andrsn.stanford.edu> <4344C2EF.9070905@mac.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: sendmail not starting at boot 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, 07 Oct 2005 00:00:38 -0000 On Thu, 6 Oct 2005, Chuck Swiger wrote: > Annelise Anderson wrote: >> On 5.4-STABLE as of October 1, sendmail doesn't start on reboot. >> I have to either do it by hand or run sh rc.sendmail (which does >> start it). There's no sendmail.sh in /usr/local/etc/rc.d. > > Sendmail is part of the FreeBSD base system by default, and not something in > /usr/local. You should have a /etc/rc.d/sendmail RC script... Interesting, it was blank except for the first line. My failure to do anything but mergemaster -p. > >> The rc.conf has sendmail_enable="YES" and I even changed this >> in /etc/defaults/rc.conf. > > Don't change /etc/defaults/rc.conf. Change /etc/rc.conf only. > >> I supposed I could clip some of rc.sendmail and put in in a >> sendmail.sh file for /usr/local/etc/rc.d, but perhaps something >> more obvious is wrong. I want sendmail to be not only a >> local mta but to be the incoming and outgoing server. > > OK. Setting: > > sendmail_enable="YES" > > ...ought to do the trick, so something else is going on. > > > Have you checked /var/log/messages and /var/log/maillog? > Is your hostname set to a valid FQDN? > Is local DNS working properly on that machine? > > Have you copied /etc/mail/freebsd.mc to /etc/mail/host.example.com.mc, > editting that file if and as needed, and doing a "make all" in /etc/mail? > See /etc/mail/README. Thank you for this and my apologies for a second copy of this message, which also went to the list after I added a smart relay host (nothing was going out beyond the stanford.edu domain, which I guess is something Stanford imposes). Annelise