openSUSE 11.1 to 11.2 Upgrade: Postfix Errors Solution

Submitted by nigel on Sunday 6th December 2009

Having upgraded from openSUSE 11.1 to 11.2 I noticed that local mail wasn't working on my machine. So a command line mail request like:

# ls | mail root
was disappearing. Further investigation was required, and by inspecting my /var/log/mail
# tail /var/log/mail.err
The output indicated that postfix was issuing warnings and errors
Dec  6 09:24:39 laptop4 postfix/qmgr[4521]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:24:39 laptop4 postfix/cleanup[4520]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:25:40 laptop4 postfix/cleanup[4528]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:25:40 laptop4 postfix/qmgr[4527]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:26:41 laptop4 postfix/qmgr[4542]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:26:41 laptop4 postfix/cleanup[4541]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:27:42 laptop4 postfix/qmgr[4547]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:27:42 laptop4 postfix/cleanup[4548]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:28:43 laptop4 postfix/qmgr[4588]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:28:43 laptop4 postfix/cleanup[4589]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:29:44 laptop4 postfix/qmgr[4606]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:29:44 laptop4 postfix/cleanup[4607]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:30:45 laptop4 postfix/qmgr[4639]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:30:45 laptop4 postfix/cleanup[4640]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:31:46 laptop4 postfix/qmgr[4644]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:31:46 laptop4 postfix/cleanup[4645]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:32:47 laptop4 postfix/cleanup[4653]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:32:47 laptop4 postfix/qmgr[4652]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:33:48 laptop4 postfix/qmgr[4658]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:33:48 laptop4 postfix/cleanup[4657]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:34:49 laptop4 postfix/qmgr[4666]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:34:49 laptop4 postfix/cleanup[4667]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:35:50 laptop4 postfix/qmgr[4672]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:35:50 laptop4 postfix/cleanup[4673]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:36:51 laptop4 postfix/qmgr[4678]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:36:51 laptop4 postfix/cleanup[4679]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:37:52 laptop4 postfix/qmgr[4692]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:37:52 laptop4 postfix/cleanup[4693]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:38:53 laptop4 postfix/cleanup[4701]: fatal: open database /etc/postfix/relay.db: No such file or directory
Dec  6 09:38:53 laptop4 postfix/qmgr[4700]: fatal: open database /etc/postfix/relay.db: No such file or directory
The solution thankfully is very easy. Issue the following:
# postmap /etc/postfix/relay
This command fixes the the Postfix lookup table that is creating the errors.
blog terms
Linux