Package: postfix
Version: 3.11.0-3
Severity: important

When upgrading from 3.10.6-4 to 3.10.8-1 the upgrade succeeded, but 
nbdb_reindex segfaulted and Postfix was left in a non-working state:

Mar  9 04:17:34 bongo postfix/smtpd[4831]: fatal: open dictionary: expecting 
"type:name" form instead of ":/etc/aliases"
Mar  9 04:17:35 bongo postfix/master[3718]: warning: process 
/usr/lib/postfix/sbin/smtpd pid 4831 exit status 1
Mar  9 04:17:35 bongo postfix/master[3718]: warning: 
/usr/lib/postfix/sbin/smtpd: bad command startup -- throttling


The issue can be more easily seen just with newaliases:

root@bongo:~# LANG=C comm -23 <(postconf -n) <(postconf -d)
alias_maps = $alias_database
biff = no
compatibility_level = 3.11
cyrus_sasl_config_path = /etc/postfix/sasl
default_transport = uucp
inet_interfaces = 127.0.0.1 ::1
mailbox_size_limit = $message_size_limit
message_size_limit = 1000000000
mydestination = $myhostname localhost (elided)
recipient_delimiter = +
relayhost = bofh
respectful_logging = no
sender_canonical_maps = texthash:/etc/postfix/sender_canonical
smtp_dns_support_level = disabled
virtual_alias_maps = texthash:/etc/postfix/virtual
root@bongo:~# newaliases 
postalias: warning: unsupported dictionary type: . Is the postfix- package 
installed?
postalias: fatal: unsupported map type:
[Exit 1]
root@bongo:~# postconf alias_database
alias_database = $default_database_type:/etc/aliases
root@bongo:~# postconf default_database_type
default_database_type = cdb
root@bongo:~#

The solution for me has been to EXPLICITLY set $default_database_type:
after setting it to its default the diff does not change, but now 
everything works again.

root@bongo:~# LANG=C comm -12 <(postconf -n) <(postconf -d)
default_database_type = cdb
myhostname = bongo.bofh.it
root@bongo:~# postconf default_database_type
default_database_type = cdb
root@bongo:~# newaliases 
root@bongo:~#

#0  vbuf_print (bp=bp@entry=0x55879f3484e0, 
    format=0x55876f981016 "the %s service is disabled", 
    ap=ap@entry=0x7ffd2c554d70)
    at /build/reproducible-path/postfix-3.11.0/src/util/vbuf_print.c:280
#1  0x00007f22d8ff2fad in vstring_vsprintf (vp=0x55879f3484e0, 
    format=<optimized out>, ap=ap@entry=0x7ffd2c554d70)
    at /build/reproducible-path/postfix-3.11.0/src/util/vstring.c:639
#2  0x00007f22d8ff3058 in vstring_sprintf (vp=vp@entry=0x55879f3484e0, 
    format=format@entry=0x55876f981016 "the %s service is disabled")
    at /build/reproducible-path/postfix-3.11.0/src/util/vstring.c:629
#3  0x000055876f97f97d in nbdb_process (leg_type=0x55879f347f40 "hash", 
    source_path=source_path@entry=0x55879f347f45 "/etc/aliases", 
    why=0x55879f3484e0) at ./src/nbdb_reindexd/nbdb_process.c:102
#4  0x000055876f98009a in nbdb_service (
    stream=stream@entry=0x7f22d90122c0 <vstream_fstd>, 
    service=<optimized out>, argv=0x7ffd2c555448)
    at ./src/nbdb_reindexd/nbdb_reindexd.c:224
#5  0x00007f22d90695be in single_server_main (argc=<optimized out>, 
    argv=<optimized out>, service=service@entry=0x55876f97fe50 <nbdb_service>)
    at /build/reproducible-path/postfix-3.11.0/src/master/single_server.c:782
#6  0x000055876f97f3a0 in main (argc=<optimized out>, argv=<optimized out>)
    at ./src/nbdb_reindexd/nbdb_reindexd.c:305


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.18.12+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages postfix depends on:
ii  adduser                3.154
ii  debconf [debconf-2.0]  1.5.92
ii  init-system-helpers    1.69
ii  libc6                  2.42-13
ii  libdb5.3t64            5.3.28+dfsg2-11
ii  libicu78               78.2-2
ii  libnsl2                1.3.0-3+b4
ii  libsasl2-2             2.1.28+dfsg1-10
ii  libssl3t64             3.5.5-1
ii  libtlsrpt0             0.5.0.-1
ii  netbase                6.5
ii  postfix-cdb            3.11.0-3
ii  postfix-lmdb           3.11.0-3

Versions of packages postfix recommends:
ii  ca-certificates  20260223
ii  python3          3.13.9-3
ii  ssl-cert         1.1.3

Versions of packages postfix suggests:
ii  bsd-mailx [mail-reader]        8.1.2-0.20220412cvs-1.1
ii  dovecot-core [dovecot-common]  1:2.4.2+dfsg1-4
ii  libsasl2-modules               2.1.28+dfsg1-10
ii  mutt [mail-reader]             2.2.13-1+b1
ii  postfix-doc                    3.11.0-3
pn  postfix-ldap                   <none>
pn  postfix-mongodb                <none>
pn  postfix-mta-sts-resolver       <none>
pn  postfix-mysql                  <none>
pn  postfix-pcre                   <none>
pn  postfix-pgsql                  <none>
pn  postfix-sqlite                 <none>
ii  procmail                       3.24+really3.22-5
pn  resolvconf                     <none>
pn  ufw                            <none>

-- debconf information excluded

-- 
ciao,
Marco

Attachment: signature.asc
Description: PGP signature

Reply via email to