Package: courier-mta
Version: 1.0.6-1
Severity: critical
Justification: causes serious data loss

Dear Maintainer,

   * What led up to the situation?

   I have made dist-upgrade from 9 to Debian 10
   
   * What exactly did you do (or not do) that was effective (or
     ineffective)?

   Just upgraded the system. Courier MTA apparently randomly stops and cannot 
be restarted.
   
This includes courier-imap-ssl

If I use web administrationa and click SAVE on IMAP or incoming ESMTP, and 
install new configuration, services start working.

If I just use service courier-imap-ssl start this does not work, even if 
service is enabled.

Example for courier-imap-ssl

I have restarted from web administration, so this works:

Executing /usr/sbin/imapd-ssl stop ; . /etc/courier/imapd-ssl ; test 
"$IMAPDSSLSTART" != YES || /usr/sbin/imapd-ssl start...
Executing /usr/sbin/imapd stop ; . /etc/courier/imapd ; test "$IMAPDSTART" != 
YES || /usr/sbin/imapd start...


root@stw1:/tmp# service courier-imap-ssl status
● courier-imap-ssl.service - LSB: Courier IMAP server (TLS)
   Loaded: loaded (/etc/init.d/courier-imap-ssl; generated)
   Active: active (exited) since Sun 2019-08-04 11:28:14 MST; 17h ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 2379)
   Memory: 0B
   CGroup: /system.slice/courier-imap-ssl.service

Warning: Journal has been rotated since unit was started. Log output is 
incomplete or unavailable.
root@stw1:/tmp# lsof -i :993
COMMAND     PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
couriertc 31390    root    3u  IPv6 332900      0t0  TCP *:imaps (LISTEN)


Now if I do following:


root@stw1:/tmp# service courier-imap-ssl stop
root@stw1:/tmp# service courier-imap-ssl start
root@stw1:/tmp# lsof -i :993
root@stw1:/tmp#

This does not work.

root@stw1:/tmp# service courier-imap-ssl status
● courier-imap-ssl.service - LSB: Courier IMAP server (TLS)
   Loaded: loaded (/etc/init.d/courier-imap-ssl; generated)
   Active: active (exited) since Mon 2019-08-05 05:28:47 MST; 16s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31976 ExecStart=/etc/init.d/courier-imap-ssl start (code=exited, 
status=0/SUCCESS)

Aug 05 05:28:47 stw1.rcdrun.com systemd[1]: Starting LSB: Courier IMAP serve…...
Aug 05 05:28:47 stw1.rcdrun.com systemd[1]: Started LSB: Courier IMAP server…S).
Hint: Some lines were ellipsized, use -l to show in full.


So if I do simple:

/usr/sbin/imapd-ssl start

This works.

It broke my email system and I need to install third party supervision to make 
sure that services are running.


-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable'), (90, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages courier-mta depends on:
ii  courier-authlib        0.69.0-2
ii  courier-base           1.0.6-1
ii  debconf [debconf-2.0]  1.5.71
ii  libc6                  2.28-10
ii  libcourier-unicode4    2.1-3
ii  libgcc1                1:8.3.0-6
ii  libgdbm6               1.18.1-4
ii  libidn11               1.33-2.2
ii  libnet-cidr-perl       0.19-1
ii  libperl5.28            5.28.1-6
ii  libstdc++6             8.3.0-6
ii  sysvinit-utils         2.93-8

courier-mta recommends no packages.

Versions of packages courier-mta suggests:
ii  bsd-mailx [mail-reader]  8.1.2-0.20180807cvs-1
pn  courier-doc              <none>
pn  courier-filter-perl      <none>
pn  couriergrey              <none>
ii  emacs-nox [mail-reader]  1:26.1+1-3.2
ii  mailutils [mail-reader]  1:3.5-3
ii  mutt [mail-reader]       1.10.1-2.1

-- Configuration Files:
/etc/courier/aliases/system changed:
root: postmaster
mailer-daemon: postmaster
MAILER-DAEMON: postmaster
uucp: postmaster
www-data: postmaster
postmaster: admin

/etc/courier/courierd changed:
prefix="/usr"
exec_prefix="/usr"
. /etc/environment
PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin
SHELL=/bin/sh
DSNTOAUTHADDR=0
DYNAMICDELIVERIES=1
DEFAULTDELIVERY="|| /usr/bin/dotforward
./Maildir"
MAILDROPDEFAULT=./Maildir
ESMTP_CORK=1
ESMTP_BLOCKBACKSCATTER=smtp/dsn
UUXFLAGS="-j -g C"
ESMTP_USE_STARTTLS=1
COURIERTLS=/usr/bin/couriertls
ESMTP_TLS_VERIFY_DOMAIN=0
ESMTP_PREFER_IPV6_MX=1
TLS_TRUSTCERTS=/etc/ssl/cert.pem
TLS_VERIFYPEER=NONE

/etc/courier/enablefiltering changed:
esmtp local

/etc/courier/esmtpauthclient [Errno 13] Permission denied: 
'/etc/courier/esmtpauthclient'
/etc/courier/esmtpd changed:
PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin
SHELL=/bin/sh
ULIMIT=32768
BOFHCHECKDNS="1"
BOFHNOEXPN=1
BOFHNOVRFY=1
TARPIT=1
NOADDMSGID="1"
NOADDDATE="1"
NOADDRREWRITE=0
ESMTP_LOG_DIALOG=0
AUTH_REQUIRED="0"
COURIERTLS=/usr/bin/couriertls
TLS_CERTFILE=/etc/courier/esmtpd.pem
TLS_DHPARAMS=/etc/courier/dhparams.pem
TLS_TRUSTCERTS=/etc/ssl/cert.pem
TLS_VERIFYPEER=NONE
MAILUSER=courier
MAILGROUP=courier
PORT=smtp
BLACKLISTS="-block=zen.spamhaus.org,BLOCK"
ACCESSFILE=${sysconfdir}/smtpaccess
MAXDAEMONS="40"
MAXPERC="5"
MAXPERIP="5"
PIDFILE=/run/courier/esmtpd.pid
TCPDOPTS="-stderrlogger=/usr/sbin/courierlogger"
ESMTPAUTH=""
ESMTPAUTH_WEBADMIN="LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
ESMTPAUTH_TLS="PLAIN"
ESMTPAUTH_TLS_WEBADMIN="PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
ESMTPDSTART="YES"

/etc/courier/esmtpd-msa changed:
BOFHCHECKDNS="0"
NOADDMSGID="0"
NOADDDATE="0"
NOADDRREWRITE=0
ESMTP_LOG_DIALOG=0
AUTH_REQUIRED="1"
BLACKLISTS=""
ADDRESS=0
PORT=587
PIDFILE=/run/courier/esmtpd-msa.pid
ACCESSFILE=${sysconfdir}/smtpaccess
ESMTPDSTART="YES"
MAXDAEMONS="40"
MAXPERC="5"
MAXPERIP="5"
TCPDOPTS="-nodnslookup -noidentlookup"
/etc/courier/esmtpd-ssl changed:
prefix=/usr
exec_prefix=/usr
BOFHCHECKDNS="1"
BOFHNOEXPN=0
BOFHNOVRFY=0
TARPIT=1
NOADDMSGID="1"
NOADDDATE="1"
NOADDRREWRITE=0
ESMTP_LOG_DIALOG=0
AUTH_REQUIRED="0"
SSLPORT=465
SSLADDRESS=0
SSLPIDFILE=/run/courier/esmtpd-ssl.pid
ESMTPDSSLSTART="YES"
COURIERTLS=/usr/bin/couriertls
TLS_CERTFILE=/etc/courier/esmtpd.pem
TLS_DHPARAMS=/etc/courier/dhparams.pem
TLS_TRUSTCERTS=/etc/ssl/cert.pem
TLS_VERIFYPEER=NONE
MAXDAEMONS="40"
MAXPERC="5"
MAXPERIP="5"

/etc/courier/esmtpd.cnf [Errno 13] Permission denied: '/etc/courier/esmtpd.cnf'

-- debconf information excluded

Reply via email to