Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2010 19:17:04 +0100
From:      Kaya Saman <SamanKaya@netscape.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Postfix bad command startup??
Message-ID:  <4C03FD20.1080401@netscape.net>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C03FD20.1080401>