Bug 700782

Summary: Postfix issues warnings about db files being older than the base file
Product: [openSUSE] openSUSE 11.4 Reporter: Freek de Kruijf <freek>
Component: YaST2Assignee: Peter Varkoly <varkoly>
Status: VERIFIED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Freek de Kruijf 2011-06-18 09:37:03 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

In the file /var/log/mail I often find messages like the one below.

postfix/qmgr[6222]: warning: database /etc/postfix/relay.db is older than source file /etc/postfix/relay

and indeed this is true. However I did not change the base file, so I suspect that YaST, when updating the software, touches this base file without updating the db file. Maybe this a SuSEconfig issue.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Arvin Schnell 2011-06-20 07:55:28 UTC
Do you use YaST to configure postfix? Do you use YaST or zypper to update
postfix? Please describe detailed after what actions the warning appears.
Comment 2 Freek de Kruijf 2011-06-20 12:48:25 UTC
I did not use YaST to configure postfix.
I do use zypper to update my software most of the time, however also YaST.
Most of the db files have a date Apr 27, where the base files have a date May 10. Looking in the file /var/log/zypper.log-20110513.bz2 I found the following entries with postfix in it.

# bunzip2 -c /var/log/zypper.log-20110513.bz2 | grep postfix
2011-05-13 12:59:20 <1> eik114(4185) [zypper++] Summary.cc(readPool):133 <install>   U_Ts_(1514)postfix-2.7.2-13.16.1.x86_64(Bijwerken-van-openSUSE-11.4-11.4-0)
2011-05-13 12:59:20 <1> eik114(4185) [zypper++] Summary.cc(readPool):133 <uninstall> I_TsU(48024)postfix-2.7.2-13.14.1.x86_64(@System)
2011-05-13 12:59:51 <1> eik114(4185) [zypp::GetResolvablesToInsDel++] GetResolvablesToInsDel.cc(GetResolvablesToInsDel):96 Ignore auto_delete (should be upgraded): I_TsU(48024)postfix-2.7.2-13.14.1.x86_64(@System)
#

I hope this is the requested information.
Comment 3 Arvin Schnell 2011-06-20 14:02:49 UTC
AFAIK zypper does not run SuSEconfig so the user has to do so manually.

Please check whether running SuSEconfig resolves the issue?
Comment 4 Freek de Kruijf 2011-06-20 21:09:15 UTC
When I run SuSEconfig I get the following:

Executing /sbin/conf.d/SuSEconfig.postfix...
        *** WARNING ***
Found /etc/postfix/master.cf.SuSEconfig, exiting...                    
        *** WARNING ***
Comment 5 Arvin Schnell 2011-06-21 08:13:24 UTC
Could be a postfix problem after all.
Comment 6 Peter Varkoly 2011-09-08 11:43:10 UTC
Execute "postmap relay" solves the problem. "relay" is a new map which was introduced by the update.
Comment 7 Freek de Kruijf 2011-09-08 12:13:59 UTC
I know what to do, however will this be done by zypper or SuSEconfig? If not, it would be better to add to the warning what should be done: run "postmap xxx".