Package: cyrus-common
Version: 3.2.0-2
Severity: normal
Tags: upstream

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Today at 17:30-ish, my MTA (exim4) decided to generate a whole bunch of
 "Mail delivery notifications" seemingly out of nowhere from mails that
have been delivered just fine. The smoking gun was found in the logs:

May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: SQL backend defaulting to
engine 'pgsql'
May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: executed
May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: accepted connection
May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: connection from [unix socket]
preauth'd as postman
May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: fetching user_deny.db entry for
'chuck'
May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: sieve_rebuild:
/var/spool/sieve/c/chuck/current.bc is up to date
May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: dupelim: eliminated duplicate
message to 7fd93d5b49ad8704 id <1732507.0PFkBQmMn2@debian64> date Wed, 13 May
2020 22:07:15 +0200 (delivery)
May 13 22:14:14 debian64 cyrus/lmtpunix[19567]: USAGE chuck user: 0.006897 sys:
0.017243
May 13 22:14:14 debian64 cyrus/master[19518]: process type:SERVICE
name:lmtpunix path:/usr/lib/cyrus/bin/lmtpd age:0.050s pid:19567 signaled to
death by signal 6 (Aborted)
May 13 22:14:14 debian64 cyrus/master[19518]: service lmtpunix/unix pid 19567
in BUSY state: terminated abnormally

So, lmtp aborted on delivery. But somehow it managed to abort just after the
mails got delivered. This was very weird.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Well I was looking around. I got a error message: "*** invalid %N$ use detected
***" in the dumps
that gave me the right track and I hit "jackpot" and found this issue on github
of the main project:

<https://github.com/cyrusimap/cyrus-imapd/issues/1981>
(I copied the title from it!)

The issue explained it all. And I can confirm that after replacing the
SESSIONID=<%2$s> with SESSIONID=<%s>

---
--- imap/lmtp_err.et    2020-05-13 23:17:22.230378471 +0200
+++ imap/lmtp_err.et.orig       2020-05-13 23:16:57.583674949 +0200
@@ -45,7 +45,7 @@ error_table lmtp
 # Enhanced Mail System Status Codes (RFC 3463)

 ec LMTP_OK,
-   "250 2.1.5 Ok SESSIONID=<%2$s>"
+   "250 2.1.5 Ok SESSIONID=<%s>"

 ec LMTP_MAILBOX_ERROR,
    "451 4.2.0 %s"
---

LMTP worked as intented (well, apart from that SESSIONID being a bit wrong...).

So, what to do? It seems the -DFORTIFY_SOURCE=2 is set by the build-system or
is there another way?



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

Kernel: Linux 5.7.0-rc2-wt+ (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_DE.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set 
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE=en_US:en (charmap=locale: Cannot set LC_MESSAGES to default 
locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages cyrus-common depends on:
ii  adduser                                    3.118
ii  db-upgrade-util                            5.3.1+nmu1
ii  db-util                                    5.3.1+nmu1
ii  debconf [debconf-2.0]                      1.5.74
ii  e2fsprogs                                  1.45.6-1
ii  exim4-daemon-light [mail-transport-agent]  4.93-16
ii  gawk                                       1:5.0.1+dfsg-1
ii  init-system-helpers                        1.57
ii  libc6                                      2.30-8
ii  libcap2                                    1:2.34-1
ii  libclamav9                                 0.102.2+dfsg-2
ii  libcom-err2                                1.45.6-1
ii  libgcc-s1                                  10.1.0-1
ii  libical3                                   3.0.8-1
ii  libicu63                                   63.2-3
ii  libjansson4                                2.12-1
ii  libkrb5-3                                  1.17-7
ii  libldap-2.4-2                              2.4.50+dfsg-1
ii  libpcre3                                   2:8.39-12+b1
ii  libpq5                                     12.2-4
ii  libsasl2-2                                 2.1.27+dfsg-2
ii  libsasl2-modules                           2.1.27+dfsg-2
ii  libsnmp35                                  5.8+dfsg-2
ii  libsqlite3-0                               3.31.1-5
ii  libssl1.1                                  1.1.1g-1
ii  libstdc++6                                 10.1.0-1
ii  libuuid1                                   2.35.1-5
ii  libwrap0                                   7.6.q-30
ii  libxapian30                                1.4.15-1
ii  libxml2                                    2.9.10+dfsg-5
ii  libzephyr4                                 3.1.2-1+b3
ii  lsb-base                                   11.1.0
ii  netbase                                    6.1
ii  perl                                       5.30.0-10
ii  zlib1g                                     1:1.2.11.dfsg-2

Versions of packages cyrus-common recommends:
ii  cyrus-caldav  3.2.0-2
ii  cyrus-imapd   3.2.0-2
ii  cyrus-murder  3.2.0-2
ii  cyrus-pop3d   3.2.0-2

Versions of packages cyrus-common suggests:
ii  apt-listchanges    3.22
pn  cyrus-admin        <none>
ii  cyrus-caldav       3.2.0-2
ii  cyrus-clients      3.2.0-2
pn  cyrus-doc          <none>
ii  cyrus-imapd        3.2.0-2
ii  cyrus-murder       3.2.0-2
pn  cyrus-nntpd        <none>
ii  cyrus-pop3d        3.2.0-2
ii  cyrus-replication  3.2.0-2
ii  sasl2-bin          2.1.27+dfsg-2

-- Configuration Files:
/etc/cyrus.conf changed [not included]
/etc/imapd.conf changed [not included]
/etc/init.d/cyrus-imapd changed [not included]
/etc/logcheck/ignore.d.server/cyrus-imapd [Errno 13] Permission denied: 
'/etc/logcheck/ignore.d.server/cyrus-imapd'
/etc/logcheck/violations.ignore.d/cyrus-common [Errno 13] Permission denied: 
'/etc/logcheck/violations.ignore.d/cyrus-common'
/etc/logcheck/violations.ignore.d/cyrus-imapd [Errno 13] Permission denied: 
'/etc/logcheck/violations.ignore.d/cyrus-imapd'

-- debconf information excluded

-- debsums errors found:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_CTYPE = "C.UTF-8",
        LANG = "en_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Reply via email to