Bugzilla – Bug 555693
postfix-2.6.1-13.3 installs new files in /etc/postfix and does not generate <file>.db
Last modified: 2011-04-25 08:46:39 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
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 ....
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.
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.
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
today's update postfix-2.6.1-18.2.x86_64 did not perform postmap against new files: relay header_checks generic
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.
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!
I'm reopening this case as the same problem happened after updating to 2.7.1-2.4.1 yesterday.
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.