Re: MacPorts updates (mail-server install) apparently messing with installed configuration dates
I see the same thing. The Berkeley database .db binary files are derived from the non-.db text files, so the .db files should be younger, not older. There must be some postmap or newaliases command to regenerate everything, but that won’t get at the underlying issue of why these files are being “updated” with a MacPorts update. These database files are not and should not be part of the mail-server or postfix ports: > port contents mail-server | grep aliases > port contents postfix | grep aliases I don’t see why they’d have new time stamps on them. > ls -l /opt/local/etc/postfix/aliases* > -rw-r--r-- 1 root admin 11150 Feb 14 16:32 /opt/local/etc/postfix/aliases > -rw-r--r-- 1 root admin 16384 May 23 2019 > /opt/local/etc/postfix/aliases.db > On Mar 23, 2020, at 06:03, Gerben Wierda wrote: > > I did an update of postfix, dovecot etc. on Feb 22. This worked fine and > everything has been running smoothly since. > > However, I just noticed these messages in my postfix log: > > Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database > /opt/local/etc/postfix/aliases.db is older than source file > /opt/local/etc/postfix/aliases > Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database > /opt/local/etc/postfix/rna_sender_canonical.db is older than source file > /opt/local/etc/postfix/rna_sender_canonical > Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database > /opt/local/etc/postfix/rna_recipient_overrides.db is older than source file > /opt/local/etc/postfix/rna_recipient_overrides > Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database > /opt/local/etc/postfix/rna_virtual_users.db is older than source file > /opt/local/etc/postfix/rna_virtual_users > Mar 23 10:43:05 mail postfix/trivial-rewrite[70715]: warning: database > /opt/local/etc/postfix/rna_virtual_domains.db is older than source file > /opt/local/etc/postfix/rna_virtual_domains > Mar 23 10:43:05 mail postfix/trivial-rewrite[70715]: warning: database > /opt/local/etc/postfix/transport.db is older than source file > /opt/local/etc/postfix/transport > Mar 23 10:43:05 mail postfix/cleanup[70716]: warning: database > /opt/local/etc/postfix/rna_sender_canonical.db is older than source file > /opt/local/etc/postfix/rna_sender_canonical > Mar 23 10:43:05 mail postfix/cleanup[70716]: warning: database > /opt/local/etc/postfix/rna_recipient_overrides.db is older than source file > /opt/local/etc/postfix/rna_recipient_overrides > Mar 23 10:43:05 mail postfix/cleanup[70716]: warning: database > /opt/local/etc/postfix/rna_virtual_users.db is older than source file > /opt/local/etc/postfix/rna_virtual_users > > And what seems to have happened is that the MacPorts maintenance has touched > the dates on these files (without actually changing them): > > -rw-r--r-- 1 root admin 12144 Feb 22 13:37 aliases > -rw-r--r-- 1 root admin 16384 Oct 4 15:53 aliases.db > -rw-r--r-- 1 root wheel 10519 Feb 22 13:37 aliases.sample > > Hmm, that is not nice. It should leave those files such as my aliases file > alone. Probably a fix/check for ownership? > > Is this something that is fixable in the port or is this something inherent > in the way MacPorts work when installing? > > (Same happened with dovecot. I have been using the mail-server port as an > umbrella, so it might have been that one) > > G smime.p7s Description: S/MIME cryptographic signature
Re: MacPorts updates (mail-server install) apparently messing with installed configuration dates
On 23 Mar 2020, at 6:03, Gerben Wierda via macports-users wrote: Hmm, that is not nice. It should leave those files such as my aliases file alone. Probably a fix/check for ownership? I have no idea what it is doing, but it is NOT done by the postfix port itself. Note that I updated postfix using the port last week: # ls -lrt /opt/local/etc/postfix/aliases* -rw-r--r-- 1 root wheel 7419 Jun 26 2012 /opt/local/etc/postfix/aliases -rw-r--r-- 1 root admin 16384 Oct 6 2018 /opt/local/etc/postfix/aliases.db -rw-r--r-- 1 root wheel 10519 Mar 18 23:11 /opt/local/etc/postfix/aliases.sample Is this something that is fixable in the port or is this something inherent in the way MacPorts work when installing? It is not done by the postfix port or by MacPorts inherently. (Same happened with dovecot. I have been using the mail-server port as an umbrella, so it might have been that one) That seems most likely. I also updated the dovecot port last week and it did not touch any config files. I've never had a need for the 'mail-server' meta-port, so I don't use it. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not For Hire (currently)
MacPorts updates (mail-server install) apparently messing with installed configuration dates
I did an update of postfix, dovecot etc. on Feb 22. This worked fine and everything has been running smoothly since. However, I just noticed these messages in my postfix log: Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database /opt/local/etc/postfix/aliases.db is older than source file /opt/local/etc/postfix/aliases Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database /opt/local/etc/postfix/rna_sender_canonical.db is older than source file /opt/local/etc/postfix/rna_sender_canonical Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database /opt/local/etc/postfix/rna_recipient_overrides.db is older than source file /opt/local/etc/postfix/rna_recipient_overrides Mar 23 10:43:04 mail smtp/smtpd[70713]: warning: database /opt/local/etc/postfix/rna_virtual_users.db is older than source file /opt/local/etc/postfix/rna_virtual_users Mar 23 10:43:05 mail postfix/trivial-rewrite[70715]: warning: database /opt/local/etc/postfix/rna_virtual_domains.db is older than source file /opt/local/etc/postfix/rna_virtual_domains Mar 23 10:43:05 mail postfix/trivial-rewrite[70715]: warning: database /opt/local/etc/postfix/transport.db is older than source file /opt/local/etc/postfix/transport Mar 23 10:43:05 mail postfix/cleanup[70716]: warning: database /opt/local/etc/postfix/rna_sender_canonical.db is older than source file /opt/local/etc/postfix/rna_sender_canonical Mar 23 10:43:05 mail postfix/cleanup[70716]: warning: database /opt/local/etc/postfix/rna_recipient_overrides.db is older than source file /opt/local/etc/postfix/rna_recipient_overrides Mar 23 10:43:05 mail postfix/cleanup[70716]: warning: database /opt/local/etc/postfix/rna_virtual_users.db is older than source file /opt/local/etc/postfix/rna_virtual_users And what seems to have happened is that the MacPorts maintenance has touched the dates on these files (without actually changing them): -rw-r--r-- 1 root admin 12144 Feb 22 13:37 aliases -rw-r--r-- 1 root admin 16384 Oct 4 15:53 aliases.db -rw-r--r-- 1 root wheel 10519 Feb 22 13:37 aliases.sample Hmm, that is not nice. It should leave those files such as my aliases file alone. Probably a fix/check for ownership? Is this something that is fixable in the port or is this something inherent in the way MacPorts work when installing? (Same happened with dovecot. I have been using the mail-server port as an umbrella, so it might have been that one) G