Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jun 2009 13:37:32 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Alexander Leidinger <netchild@FreeBSD.org>
Cc:        Ion-Mihai Tetcu <itetcu@FreeBSD.org>, sahil@tandon.net, freebsd-ports@FreeBSD.org
Subject:   Re: has Postfix new location of aliases.db?
Message-ID:  <4A27B1FC.6030904@quip.cz>
In-Reply-To: <20090604130638.17461dkh10lqyhgk@webmail.leidinger.net>
References:  <4A279C92.4020305@quip.cz> <20090604135318.0178eb66@it.buh.tecnik93.com> <20090604130638.17461dkh10lqyhgk@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Leidinger wrote:
> Quoting Ion-Mihai Tetcu <itetcu@FreeBSD.org> (from Thu, 4 Jun 2009  
> 13:53:18 +0300):
> 
>> Content-Type: text/plain; charset=US-ASCII
>> Content-Transfer-Encoding: quoted-printable
>>
>> On Thu, 04 Jun 2009 12:06:10 +0200
>> Miroslav Lachman <000.fbsd@quip.cz> wrote:
>>
>>> Was something changed in Postfix defaults?
>>> After upgrade from postfix-2.5.6,1 to postfix-2.6.1,1 and restart of
>>> postfix, I got following error in /var/log/maillog
>>>
>>> fatal: open database /etc/mail/aliases.db: No such file or directory
>>>
>>> All previous versions were using /etc/aliases.db, new version expect
>>> /etc/mail/aliases.db
>>>
>>> newaliases command re-generate aliases.db in the new location.
>>>
>>>
>>> root@fido ~/# ls -al /etc/aliases*
>>> lrwxr-xr-x  1 root  wheel    12B Feb 24  2008 /etc/aliases@ ->
>>> mail/aliases -rw-r--r--  1 root  wheel    12K Jan 20
>>> 11:30 /etc/aliases.db
>>>
>>> root@fido ~/# ls -al /etc/mail/aliases*
>>> -rw-r--r--  1 root  wheel   1.7K Oct 22  2008 /etc/mail/aliases
>>>
>>> root@fido ~/# newaliases
>>>
>>> root@fido ~/# ls -al /etc/mail/aliases*
>>> -rw-r--r--  1 root  wheel   1.7K Oct 22  2008 /etc/mail/aliases
>>> -rw-r--r--  1 root  wheel    12K Jun  4 11:39 /etc/mail/aliases.db
>>>
>>> If this is expected behavior, this should be mentioned in UPDATING.
>>>
>>> machine details:
>>> FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009
>>> root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>>>
>>> fresh ports tree updated by `portsnap fetch update`, postfix upgraded
>>> by `portmaster postfix-2.5.6,1`
>>
>>
>> I got bitten by  this also, but I though it was only my lack of
>> attention.
> 
> 
> It seems it is creating the .db in the directory where the symlink is  
> pointing to, instead in the directory where the symlink is (I assume  
> the original poster used his previous config without changing the  alias 
> stuff). I haven't found something related in the postfix  changelog. 
> Concerned people should maybe ask on the postfix ML if this  is intended 
> or not.

I have dozen of servers with Postfix, so I tried it on another server 
with older Postfix version.
This is the result after `newaliases` command

root@roxy ~/# ls -al /etc/aliases*
lrwxrwxrwx  1 root  wheel     12 Feb  9  2008 /etc/aliases -> mail/aliases
-rw-r--r--  1 root  wheel  12288 Jun  4 13:25 /etc/aliases.db

root@roxy ~/# ls -al /etc/mail/aliases*
-rw-r--r--  1 root  wheel  1952 Jun  4 13:25 /etc/mail/aliases

As you can see, file /etc/mail/aliases was modified (target of symlink) 
and then aliases.db was generated by `newaliases` command as /etc/aliases.db

Above is with postfix-2.5.6,1 on FreeBSD 7.2-RELEASE #0: Fri May  1 
08:49:13 UTC 2009    GENERIC  i386

This is with new postfix-2.6.1,1:
# postconf -d | grep aliases
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
newaliases_path = /usr/local/bin/newaliases

And this is with older postfix-2.5.6,1:
# postconf -d | grep aliases
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
newaliases_path = /usr/bin/newaliases

There is definitely incompatible change in defaults :o(

Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A27B1FC.6030904>