pop-before-smtp DB format

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

pop-before-smtp DB format

@lbutlr
I recently updated a few things, including postfix (2.4.6) and pop-
before-smtp (1.42) and am now getting:

May 30 08:36:41 mail postfix/smtpd[5406]: fatal: open database /usr/
local/etc/postfix/pop-before-smtp.db: Inappropriate file type or format
May 30 08:36:42 mail postfix/master[988]: warning: process /usr/local/
libexec/postfix/smtpd pid 5406 exit status 1
May 30 08:36:42 mail postfix/master[988]: warning: /usr/local/libexec/
postfix/smtpd: bad command startup -- throttling

  $ file pop-before-smtp.db
pop-before-smtp.db: Berkeley DB (Hash, version 8, native byte-order)

So I'm wondering what the right file type or format might be?


--
...I started playing Myst at 4:30 in the afternoon and looked up
        suddenly and realized it was February.

Reply | Threaded
Open this post in threaded view
|

Re: pop-before-smtp DB format

Wietse Venema
LuKreme:

> I recently updated a few things, including postfix (2.4.6) and pop-
> before-smtp (1.42) and am now getting:
>
> May 30 08:36:41 mail postfix/smtpd[5406]: fatal: open database /usr/
> local/etc/postfix/pop-before-smtp.db: Inappropriate file type or format
> May 30 08:36:42 mail postfix/master[988]: warning: process /usr/local/
> libexec/postfix/smtpd pid 5406 exit status 1
> May 30 08:36:42 mail postfix/master[988]: warning: /usr/local/libexec/
> postfix/smtpd: bad command startup -- throttling
>
>   $ file pop-before-smtp.db
> pop-before-smtp.db: Berkeley DB (Hash, version 8, native byte-order)
>
> So I'm wondering what the right file type or format might be?

All programs MUST use the same Berkeley DB version.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: pop-before-smtp DB format

@lbutlr
On 30-May-2008, at 09:03, Wietse Venema wrote:
>>  $ file pop-before-smtp.db
>> pop-before-smtp.db: Berkeley DB (Hash, version 8, native byte-order)
>>
>> So I'm wondering what the right file type or format might be?
>
> All programs MUST use the same Berkeley DB version.

Right... but what format is postfix 2.41 expecting?

--
Support bacteria - they're the only culture some people have.

Reply | Threaded
Open this post in threaded view
|

Re: pop-before-smtp DB format

/dev/rob0
On Fri May 30 2008 21:52:22 LuKreme wrote:

> On 30-May-2008, at 09:03, Wietse Venema wrote:
> >>  $ file pop-before-smtp.db
> >> pop-before-smtp.db: Berkeley DB (Hash, version 8, native
> >> byte-order)
> >>
> >> So I'm wondering what the right file type or format might be?
> >
> > All programs MUST use the same Berkeley DB version.
>
> Right... but what format is postfix 2.41 expecting?

Whichever version it was linked against:
$ ldd /usr/local/libexec/postfix/smtpd | grep libdb
--
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header
Reply | Threaded
Open this post in threaded view
|

Re: pop-before-smtp DB format

@lbutlr
On 30-May-2008, at 21:05, /dev/rob0 wrote:

> On Fri May 30 2008 21:52:22 LuKreme wrote:
>> On 30-May-2008, at 09:03, Wietse Venema wrote:
>>>> $ file pop-before-smtp.db
>>>> pop-before-smtp.db: Berkeley DB (Hash, version 8, native
>>>> byte-order)
>>>>
>>>> So I'm wondering what the right file type or format might be?
>>>
>>> All programs MUST use the same Berkeley DB version.
>>
>> Right... but what format is postfix 2.41 expecting?
>
> Whichever version it was linked against:
> $ ldd /usr/local/libexec/postfix/smtpd | grep libdb

It turns out that unless you specifically set WITH_BDB_VER or  
WITH_BDB_HIGHEST the postfix port install chooses the first instance  
of BDB that it finds, so it was linking against 4.1 instead of 4.4.

Thanks.

--
Hey kids, shake it loose together the spotlight's hitting something
        That's been known to change the weather we'll kill the fatted
        calf tonight So stick around you're gonna hear electric music:
        Solid walls of sound