From owner-freebsd-questions@FreeBSD.ORG Fri Oct 19 19:00:05 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A319116A418 for ; Fri, 19 Oct 2007 19:00:05 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from guam10.hdk5.net (guam10.hdk5.net [66.180.132.235]) by mx1.freebsd.org (Postfix) with ESMTP id 5D2CD13C478 for ; Fri, 19 Oct 2007 19:00:03 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from [192.168.1.29] (unknown [66.180.149.18]) by guam10.hdk5.net (Postfix) with ESMTP id 089CB5C54 for ; Fri, 19 Oct 2007 08:59:52 -1000 (HST) Message-ID: <4718FEA8.7050201@hdk5.net> Date: Fri, 19 Oct 2007 08:59:52 -1000 From: NetOpsCenter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061211 FreeBSD/i386 SeaMonkey/1.0.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20071019054651.GA1256@remdog.net> In-Reply-To: <20071019054651.GA1256@remdog.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Postfix woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noc@hdk5.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 19:00:05 -0000 Rem P Roberti wrote: > I did what you all requested and submitted my Postfix problem to the > Postfix list. The resident guru went over my maillog and sent back his > analysis which, in short, states that the problem has nothing to do with > Postfix, and that I should seek help here to get to the bottom of it > all. That reply is listed below. This is a rather strange business. > > Rem > > > > > > From: Rem P Roberti > To: freebsd-questions@freebsd.org > Cc: > Bcc: > Subject: [Victor.Duchovni@MorganStanley.com: Re: Boot-up weirdness] > Reply-To: > > ----- Forwarded message from Victor Duchovni ----- > > Date: Thu, 18 Oct 2007 21:44:36 -0400 > From: Victor Duchovni > To: postfix-users@postfix.org > Subject: Re: Boot-up weirdness > > On Thu, Oct 18, 2007 at 06:11:42PM -0700, Rem P Roberti wrote: > > >> Oct 18 16:39:20 bsd postfix/postfix-script[3805]: starting the Postfix >> mail system >> Oct 18 16:39:20 bsd postfix/master[3806]: daemon started -- version >> 2.4.5, configuration /usr/local/etc/postfix >> Oct 18 16:39:25 bsd postfix/postfix-script[3811]: refreshing the Postfix >> mail system >> Oct 18 16:39:25 bsd postfix/master[3806]: reload configuration >> /usr/local/etc/postfix >> > > Something runs "postfix reload" five seconds after Postfix starts. It is > not Postfix doing that, so find the start script or cron job responsible. > > >> Oct 18 16:40:40 bsd postfix/postfix-script[3937]: stopping the Postfix >> mail system >> Oct 18 16:40:40 bsd postfix/master[3806]: terminating on signal 15 >> > > Something runs "postfix stop" 85 seconds after that, it is not Postfix > doing that, so find the start script or cron job responsible. > > >> Oct 18 16:40:40 bsd postfix/postfix-script[3958]: fatal: the Postfix >> mail system is not running >> > > The code in question wants to make doubly sure that Postfix is down, > which it is. > > >> Oct 18 16:42:26 bsd postfix/postfix-script[894]: starting the Postfix >> mail system >> Oct 18 16:42:26 bsd postfix/master[895]: daemon started -- version >> 2.4.5, configuration /usr/local/etc/postfix >> > > Postfix is restarted by something on your system 106 seconds later. > > >> from=, size=701, nrcpt=1 (queue active) >> Oct 18 16:42:28 bsd postfix/postfix-script[943]: fatal: the Postfix mail >> system is already running >> Oct 18 16:42:29 bsd postfix/postfix-script[983]: fatal: the Postfix mail >> system is already running >> > > Something is trying to start Postfix again. I am guessing you have two > Postfix start scripts fighting each other... > > >> Oct 18 17:38:44 bsd postfix/postmap[1555]: fatal: open transport.db: >> Permission denied >> > > An hour or so later, something is trying to run "postmap" or "postmap > -q", it is not Postfix doing that. Find the cron job or start script > in question. > > >> Oct 18 17:39:15 bsd postfix/postfix-script[1559]: stopping the Postfix >> mail system >> Oct 18 17:39:15 bsd postfix/master[895]: terminating on signal 15 >> Oct 18 17:39:21 bsd postfix/postfix-script[1609]: starting the Postfix >> mail system >> Oct 18 17:39:21 bsd postfix/master[1610]: daemon started -- version >> 2.4.5, configuration /usr/local/etc/postfix >> > > Postfix is restarted. > > >> Oct 18 17:39:27 bsd postfix/postfix-script[1615]: refreshing the Postfix >> mail system >> > > And reloaded for good measure. > > >> /usr/local/etc/postfix >> Oct 18 17:41:23 bsd postfix/postfix-script[1768]: stopping the Postfix >> mail system >> Oct 18 17:41:23 bsd postfix/master[1610]: terminating on signal 15 >> Oct 18 17:41:23 bsd postfix/postfix-script[1789]: fatal: the Postfix >> mail system is not running >> Oct 18 17:42:52 bsd postfix/postfix-script[894]: starting the Postfix >> mail system >> Oct 18 17:42:52 bsd postfix/master[895]: daemon started -- version >> 2.4.5, configuration /usr/local/etc/postfix >> > > This insanity has nothing to do with Postfix, if you can't find the > cron jobs, start scripts, management agents, ... that are doing this, > go back the FreeBSD list and ask for help to find them. > > Aloha, I run Postfix/Dovecot under FreeBSD 7* since Jan 2007. I had trouble with postfix by itself on FreeBSD when I first set up a mail server. I then had one of the FreeBSD gurus on the list suggest I run Dovecot to make postfix behave nicely on FreeBSD. That solved my problems. If you havent tried this FreeBSD Postfix/Dovecot based install it may work for you. Also if you are running Dovecot remember just start it in /etc/rc.conf you dont need to start postfix in there as well. If you are just running Postfix you have to start it in /etc/rc.conf ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + noc@hdk5.net + + http://internetohana.org - Supporting - FreeBSD 6.* - 7.* + "All that's really worth doing is what we do for others."- Lewis Carrol