I have just installed postfix on one of my servers purely in order to get
email output from cron jobs. I have installed postifx previously on other
servers nad had no problems. But on this installation I found that no
messages could be delivered because there was no aliases file. I was seeing
this error in /var/log/maillog:

Sep 25 11:50:23 dmz postfix/local[17294]: fatal: open database
/etc/aliases.db: No such file or directory
Sep 25 11:50:24 dmz postfix/master[17267]: warning: process
/usr/libexec/postfix/local pid 17294 exit status 1
Sep 25 11:50:24 dmz postfix/master[17267]: warning:
/usr/libexec/postfix/local: bad command startup -- throttling

The problem was that there was no aliases file created as part of the
installation. I don't remember having to do this as part of previous
installs, which I think may have been sendmail replacements and perhaps
installing sendmail sets up aliases files so the problem never appeared.

I ended up fixing the problem by running:
# touch /etc/aliases
# newaliases

Shouldn't postfix create a default aliases file? Or at least include a
sample one somewhere as part of the install?

Reply via email to