When I try to use a CDB table for authorized_submit_users with Postfix
3.1.6, the sendmail command exits with error "unsupported dictionary
type: cdb".

To reproduce:

----
# postconf mail_version
mail_version = 3.1.6

# postconf -n
authorized_submit_users = cdb:/etc/postfix/authorized_users

# cat /etc/postfix/authorized_users
testuser OK

# postmap cdb:/etc/postfix/authorized_users
# ls -l /etc/postfix/authorized_users*
-rw-r--r-- 1 root root   12 Oct 23 14:34 /etc/postfix/authorized_users
-rw-r--r-- 1 root root 2082 Oct 23 14:54 /etc/postfix/authorized_users.cdb
 
# postconf -m | grep cdb
cdb

# sendmail
sendmail: fatal: unsupported dictionary type: cdb
----

Other parts of Postfix seem to be fine with CDB, e.g. postmap in query
mode:

----
# postmap -q testuser cdb:/etc/postfix/authorized_users
OK
----

Note that I am using Debian 9 (stretch), so the problem may be with the
Debian packages and not Postfix in general. I do believe that I have all
the necessary packages installed:

# dpkg -l "postfix*" | grep ^ii
ii  postfix        3.1.6-0+deb9u1 amd64        High-performance mail transport 
agent
ii  postfix-cdb    3.1.6-0+deb9u1 amd64        CDB map support for Postfix
ii  postfix-sqlite 3.1.6-0+deb9u1 amd64        SQLite map support for Postfix

What am I doing wrong?

I have worked around this by using an inline table instead (the table is
only a few entries long anyways), so this question is mere curiousity.

Ulrich

Reply via email to