Viktor Dukhovni via Postfix-users:
> On Tue, Oct 31, 2023 at 01:38:13PM -0400, Michael W. Lucas via Postfix-users 
> wrote:
> 
> > That's what I would have thought. I can run postmap -s and postmap -q
> > on the usual db files in /etc/postfix just fine, but when I try it on
> > /var/db/postfix/postscreen_cache.db it just hangs:
> 
> That's expected.  The "postmap -s" command takes a read lock, the
> "postscreen" service holds a write lock.  For snapshot reads, you
> need LMDB not Berkeley DB.
> 
> Otherwise, you can read the database after stopping "postscreen".

Or copy the file with a dumb program, and use postmnap to dump that
copy. Caution: the file contains holes and may grow when copied,
as holes are filled in with nulls.

Or use LMDB, which does not need a postscreen write lock.

Postfix commands are not optimized to provide 'manual' access to
an 'internal' interface.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to