Thursday, August 20, 2009

Postfix Logwatch error

SkyHi @ Thursday, August 20, 2009
Error:
Database files are not up-to-date (probably rehash is needed):
/etc/postfix/virtual : 9 Time(s)

Solution:
First off, make sure Postfix is looking for the alias files where you THINK they are looking. Use the 'postconf' command to make sure it's looking in the right place. For example:

[root (at) mail1 root]# postconf alias_maps
alias_maps = hash:/etc/postfix/aliases
[root (at) mail1 root]# postconf alias_database
alias_database = hash:/etc/postfix/aliases


If both of these aren't pointing to your aliases file in /etc, you can change them to do so using postconf:


postconf -e "alias_maps = hash:/etc/aliases"
postconf -e "alias_database = hash:/etc/aliases"


Then run 'newaliases' to rebuild the aliases.db file from the text file.