Clean install problem with GPL version

I followed the instructions for a clean install on CentOS Linux 5.4.

That seems to have gone very well except for one thing. Postfix was hanging because it expected unix db "hash". But this was not present on this CentOS image. After figuring out the problem , I changed Postfix "default database type" to "btree" and it worked.

Status: 
Active

Comments

That's surprising - the hash map type is the Postfix default, and should always be available.

What does the postconf -m command output on your system?

Mmm... Now I'm puzzled.

Yesterday I ran that and I'm sure hash was missing. Postfix wasn't working and I had errors in the log. I then changed over to btree and also ran "newaliases". Post fix was now OK. And now.. I have this for postconf -m!

btree cidr environ hash ldap nis pcre proxy regexp static unix

Now I'm wondering whether all that was wrong was that I hadn't run "newaliases".

;-)

That's certainly odd, I've never seen the hash type go missing like that before.

What was the exact error message from Postfix?

The log was:

Apr 11 04:03:09 postfix/local[11480]: fatal: open database /etc/aliases.db: No such file or directory Apr 11 04:03:10 postfix/master[6319]: warning: process /usr/libexec/postfix/local pid 11480 exit status 1 Apr 11 04:03:10 postfix/master[6319]: warning: /usr/libexec/postfix/local: bad command startup -- throttling

Ok, looks like the issue was that aliases.db didn't exist yet, and newaliases hadn't been run.

I will add that to our install script.