Bug 555693 - postfix-2.6.1-13.3 installs new files in /etc/postfix and does not generate <file>.db
Summary: postfix-2.6.1-13.3 installs new files in /etc/postfix and does not generate <...
Status: VERIFIED WONTFIX
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Network (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.3
: P5 - None : Normal with 1 vote (vote)
Target Milestone: ---
Assignee: Peter Varkoly
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-16 02:06 UTC by patrick shanahan
Modified: 2011-04-25 08:46 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description patrick shanahan 2009-11-16 02:06:59 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2b2) Gecko/20091109 SUSE/3.6b2-2.2 Firefox/3.6b2

postfix-2.6.1-13.3 update installs new /etc/postfix/relay and does not generate a matching relay.db file.

Reproducible: Always

Steps to Reproduce:
1.update to postfix-2.6.1-13.3
2.
3.
Actual Results:  
/var/log/mail err msgs
Nov 15 20:59:48 localhost postfix/trivial-rewrite[30377]: warning: database /etc/postfix/relay.db is older than source file /etc/postfix/relay


Expected Results:  
no err
Comment 1 patrick shanahan 2009-11-21 22:33:16 UTC
postfix-2.6.1-15.1.x86_64
from server_mail, 
http://download.opensuse.org/repositories/server:/mail/openSUSE_Factory/

also does not run postmap on updated postfix modules under /etc/postfix
generating errors in log files and ....
Comment 2 Peter Varkoly 2009-11-23 11:04:45 UTC
I not really can understand the problem. The log file say that there is already a newer relay.db. In this case the script will not generate this db again. And this is correct.

Execute "touch /etc/postfix/relay" and run SuSEconfig after them.
Comment 3 patrick shanahan 2009-11-23 16:16:12 UTC
here is the list immediately after zypper dup upgrading postfix this morning:

-rw-r--r--   1 root root 18849 Nov 23 05:46 access
-rw-r--r--   1 root root 12288 Nov 21 17:20 access.db
-rw-r--r--   1 root root 11681 Nov 23 05:46 canonical
-rw-r--r--   1 root root 12288 Nov 21 17:20 canonical.db
-rw-r--r--   1 root root  9904 Nov 23 05:46 generic
-rw-r--r--   1 root root 12288 Nov 21 17:20 generic.db
-rw-r--r--   1 root root 18287 Nov 23 05:46 header_checks
-rw-r--r--   1 root root 12288 Nov 21 17:20 header_checks.db
-rw-r--r--   1 root root   219 Sep 19 20:53 helo_access
-rw-r--r--   1 root root 12288 Sep 20 00:50 helo_access.db
-rw-r--r--   1 root root    98 May 29  2007 recipients_internal_only
-rw-r--r--   1 root root 12288 Jul  1 19:22 recipients_internal_only.db
-rw-r--r--   1 root root    37 Nov 23 05:47 relay
-rw-r--r--   1 root root 12288 Nov 21 17:22 relay.db
-rw-r--r--   1 root root  6816 Nov 23 05:46 relocated
-rw-r--r--   1 root root 12288 Nov 21 17:22 relocated.db
-rw-r--r--   1 root root   413 Jun 26 02:44 sender_canonical
-rw-r--r--   1 root root 12288 Jun 26 06:14 sender_canonical.db
-rw-r--r--   1 root root 12500 Nov 23 05:46 transport
-rw-r--r--   1 root root 12288 Nov 21 17:22 transport.db
-rw-r--r--   1 root root 12495 Jun 26 02:44 virtual
-rw-r--r--   1 root root 12288 Jun 26 06:14 virtual.db


here is "ls -la relay*" after "touch relay" and SuSEconfig

-rw-r--r-- 1 root root    37 Nov 23 11:13 relay
-rw-r--r-- 1 root root 12288 Nov 23 09:42 relay.db
-rw-r--r-- 1 root root   199 Nov 23 05:47 relay_ccerts
-rw-r--r-- 1 root root 12288 Nov 23 11:13 relay_ccerts.db

now, postmap relay

-rw-r--r-- 1 root root    37 Nov 23 11:13 relay
-rw-r--r-- 1 root root 12288 Nov 23 11:14 relay.db
-rw-r--r-- 1 root root   199 Nov 23 05:47 relay_ccerts
-rw-r--r-- 1 root root 12288 Nov 23 11:13 relay_ccerts.db

SuSEconfig on *my* x86_64 Factory system does *not* perform postmap and the install/update scripts as of late (I have reported two recently) do not either.  I noticed this be reading my log files.
Comment 4 patrick shanahan 2009-11-26 02:07:11 UTC
the latest update to postfix, 
postfix-2.6.1-18.1.x86_64

did not perform postmap against new files:
  generic 
  header_checks 
  relay 
  virtual

note:  it did against:
  transport
  access
  canonical
  relocated
  sasl_passwd
  relay_ccerts
Comment 5 patrick shanahan 2009-11-26 17:18:17 UTC
today's update 
postfix-2.6.1-18.2.x86_64

did not perform postmap against new files:
  relay
  header_checks
  generic
Comment 6 patrick shanahan 2009-11-27 17:31:58 UTC
note: work-a-round

I have manually edited /etc/sysconfig/postfix POSTFIX_MAP_LIST to include relay, header_checks, generic and virtual.


the update should have performed this action.

I will not comment further on update failures to perform postmap.
Comment 7 Peter Varkoly 2009-12-28 16:34:36 UTC
Now we have find the problem. This was a bad order of the scripts in %post.
Next update fixes the problem. Thank you for your help!
Comment 8 Martin Schröder 2011-04-24 21:34:04 UTC
I'm reopening this case as the same problem happened after updating to 2.7.1-2.4.1 yesterday.
Comment 9 Peter Varkoly 2011-04-25 08:46:39 UTC
Because of a lot of trouble by updating postfix we have decided never more to call SuSEconfig in the %post section. This must be manually.