From owner-freebsd-questions@FreeBSD.ORG Mon May 31 19:08:05 2010 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 2DCE01065674 for ; Mon, 31 May 2010 19:08:05 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id D163A8FC1D for ; Mon, 31 May 2010 19:08:04 +0000 (UTC) Received: by gyh20 with SMTP id 20so3809766gyh.13 for ; Mon, 31 May 2010 12:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=CxeXI4amCY7lPXKK+bT/bjHBGJv+xbpieBG1NaDmrlE=; b=oLpoRH7r0QFnc1iAMfPs7KW1dKdVVMlk4tn6zZ1wprreKj+NAFBsWYGaJvxufN+MpH gC4alJQ/wT2c4mYTEfb4F8zSupiju8DaeB87abWHKT7aRGGREDwp6jVGeI6cgL5kVvFy CT3uy9WAq7OuQUFhskQu72RuEpMSgrbvfnNjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CudDnJqpxkNdTV8bXbP5PCK8Uh8h3Y3FFlRsLH0hAd1/2+5HiFeio8yTt9FpXhNjnr CD4jMwHfA8XZEj5ljwZ6xKOuoO+z4QJ1Oohf38dLtWzNuoUdbo8OrxTXFzLOxUU15TEQ qkacUcyWWQhSCP0ogQykfd90yaGYOnelDP9j4= MIME-Version: 1.0 Received: by 10.42.5.206 with SMTP id 14mr4823436icx.17.1275332877941; Mon, 31 May 2010 12:07:57 -0700 (PDT) Received: by 10.231.141.215 with HTTP; Mon, 31 May 2010 12:07:57 -0700 (PDT) In-Reply-To: <4C03FD20.1080401@netscape.net> References: <4C03FD20.1080401@netscape.net> Date: Mon, 31 May 2010 13:07:57 -0600 Message-ID: From: Tim Judd To: Kaya Saman Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions Subject: Re: Postfix bad command startup?? 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: Mon, 31 May 2010 19:08:05 -0000 On 5/31/10, Kaya Saman wrote: > Hi, > > similar like I wrote before, to do with my migration from Solaris 9 to > FreeBSD 8.0 x64 RELEASE. > > Postfix is being run in a BSD Jail and so far I have disabled as much as > I could of sendmail which I did this to rc.conf within the jail: > > postfix_enable="YES" > sendmail_enable="NONE" > sendmail_submit_enable="NO" > sendmail_outbound_enable="NO" > sendmail_msp_queue_enable="NO" > > > However upon startup Postfix gives me this problem: > > May 31 18:03:18 relay postfix/master[4280]: warning: > /usr/local/libexec/postfix/smtpd: bad command startup -- throttling > May 31 18:04:18 relay postfix/smtpd[4606]: fatal: open database > /etc/aliases.db: No such file or directory > May 31 18:04:19 relay postfix/master[4280]: warning: process > /usr/local/libexec/postfix/smtpd pid 4606 exit status 1 > May 31 18:04:19 relay postfix/master[4280]: warning: > /usr/local/libexec/postfix/smtpd: bad command startup -- throttling > May 31 18:05:19 relay postfix/smtpd[4629]: fatal: open database > /etc/aliases.db: No such file or directory > May 31 18:05:20 relay postfix/master[4280]: warning: process > /usr/local/libexec/postfix/smtpd pid 4629 exit status 1 > May 31 18:05:20 relay postfix/master[4280]: warning: > /usr/local/libexec/postfix/smtpd: bad command startup -- throttling > > > I can tell that it's listening as netstat -ap tcp reveals this: > > netstat: kvm not available: /dev/mem: No such file or directory > Active Internet connections (including servers) > Proto Recv-Q Send-Q Local Address Foreign Address (state) > tcp4 0 0 relay.smtp 110.52.7.217.2140 > ESTABLISHED > tcp4 0 0 relay.smtp web112111.mail.g.33920 > ESTABLISHED > tcp4 0 0 relay.smtp 110.52.6.29.4643 > ESTABLISHED > tcp4 0 0 relay.smtp 78-61-12-207.sta.28507 CLOSED > tcp4 0 0 relay.smtp 78-61-12-207.sta.27646 CLOSE_WAIT > tcp4 0 0 relay.smtp 78-61-12-207.sta.26479 CLOSE_WAIT > tcp4 0 0 relay.smtp 110.52.6.35.2109 > ESTABLISHED > tcp4 0 0 relay.smtp 78-61-12-207.sta.23305 CLOSED > tcp4 0 0 relay.smtp 78-61-12-207.sta.22314 CLOSE_WAIT > tcp4 0 0 relay.smtp 78-61-12-207.sta.21323 CLOSE_WAIT > tcp4 0 0 relay.ssh *.* LISTEN > tcp4 0 0 relay.smtp *.* LISTEN > > > /var/log/messages gives me this: > > May 31 18:10:24 relay postfix/smtpd[4662]: fatal: open database > /etc/aliases.db: No such file or directory > > however I did run the command newaliases which did create the aliases > file under /etc/mail/aliases with the aliases.db file being under there > as well as under /etc. > > Currently no mail is being relayed throughout the domain so I can tell > that it's not working as even the /var/log/maillog file is telling me > that messages are queued but not sent if I use: > > mail -s test email@address.com > > test > > ^D > > Can someone please help me work out what is causing Postfix to fail as > I've managed to migrate my config from Linux to Solaris with not as many > issues and problems as this so it really beats me.......???? > > Many thanks, > > > Kaya Kaya, You may need to edit the following alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases and run BOTH 'newaliases' and 'postalias /etc/aliases' depending on your setup. restart postfix for good measure if you telnet to your postfix IP and get the 220 banner, postfix is happy with the config and should work as config'd. if after establishing a telnet session, you don't get any banner, postfix is still having problems with something. start looking at logs again.