[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#826120: sendmail queue runner dies due to an assertion violation in libldap



Package: sendmail
Version: 8.14.4-8
Severity: grave
Justification: causes non-serious data loss

Dear Maintainer,

running the sendmail-queue leads reproducibly to crashes with error message
error.c:255: ldap_parse_result: Assertion `r != ((void *)0)' failed.

This happens on connections to external smtp-servers which are slowly or not at all responding.
As a result, unsent messages pile up in the queue, including those which do not show the error themselves.

The same bug has been reported and fixed on RedHat-Linux with package sendmail-8.14.4-9.el6, see https://access.redhat.com/solutions/1979993
Could it be possible to implement this fix also on debian?

Thanks alot and best regards,
Andreas


-- Package-specific info:
Output of /usr/share/bug/sendmail/script:

ls -alR /etc/mail:
/etc/mail:
total 316
drwxr-sr-x 1 smmta smmsp   896 Jun  1 11:29 .
drwxr-xr-x 1 root  root   3016 Jun  2 13:24 ..
-rwxr-xr-- 1 root  smmsp 13786 May 25 15:09 Makefile
-rw------- 1 root  root  14236 May 30 13:33 access
-rw-r----- 1 smmta smmsp 24576 May 30 13:33 access.db
-rw-r--r-- 1 root  root    281 Oct  2  2014 address.resolve
lrwxrwxrwx 1 root  smmsp    10 May 25 13:59 aliases -> ../aliases
-rw-r----- 1 smmta smmsp 12288 May 25 15:09 aliases.db
-rw-r--r-- 1 root  root   3985 May 25 15:09 databases
-rw-r----- 1 smmta smmsp    58 May 25 13:59 default-auth-info
-rw-r--r-- 1 root  smmsp     0 May 25 13:59 generics-domains
-rw-r----- 1 root  smmsp     0 May 25 13:59 genericstable
-rw-r----- 1 root  smmsp 12288 May 25 15:09 genericstable.db
-rw-r--r-- 1 root  root   5657 Oct  2  2014 helpfile
-r-------- 1 root  smmsp     9 May 25 14:03 ldap-pass
-rw-r--r-- 1 smmta smmsp   705 May 30 16:31 ldap-route-domains
-rw-r--r-- 1 root  smmsp    37 May 25 13:59 local-host-names
drwxr-sr-x 1 smmta smmsp    40 May 25 13:59 m4
-rw-r----- 1 root  smmsp   205 May 25 14:03 mailertable
-rw-r----- 1 root  smmsp 12288 May 25 15:09 mailertable.db
-rw-r----- 1 smmta smmsp  4689 May 25 15:05 milter-limit.cf
-rw-r----- 1 smmta smmsp  3503 May 25 15:05 milter-limit.mc
-rw-r----- 1 smmta smmsp    53 May 25 14:00 milter-null.cf
-rw-r----- 1 smmta smmsp  2613 May 25 14:00 milter-null.mc
drwxr-xr-x 1 root  root     16 May 25 13:59 peers
-rw-r--r-- 1 smmta smmsp     0 May 30 16:45 relay-domains
drwxr-xr-x 1 smmta smmsp    44 May 25 13:59 sasl
-rw-r--r-- 1 root  smmsp 74393 May 25 15:09 sendmail.cf
-rw-r--r-- 1 root  root  12302 Jun  1 20:14 sendmail.conf
-rw-r--r-- 1 root  smmsp  5968 May 25 15:09 sendmail.mc
-rw-r--r-- 1 root  root    149 Oct  2  2014 service.switch
-rw-r--r-- 1 root  root    180 Oct  2  2014 service.switch-nodns
drwxr-sr-x 1 smmta smmsp    36 May 25 14:51 smrsh
lrwxrwxrwx 1 root  root     15 Jan 31  2015 spamassassin -> ../spamassassin
-rw-r--r-- 1 root  smmsp 44007 May 25 15:09 submit.cf
-rw-r--r-- 1 root  smmsp  2374 May 25 15:09 submit.mc
drwxr-xr-x 1 smmta smmsp   584 Jun  1 07:45 tls
-rw-r--r-- 1 root  smmsp     0 May 25 13:59 trusted-users
-rw-r----- 1 root  smmsp     0 May 25 14:03 virtuserdomains
-rw-r----- 1 root  smmsp     0 May 25 13:59 virtusertable
-rw-r----- 1 root  smmsp 12288 May 25 15:09 virtusertable.db

/etc/mail/m4:
total 0
drwxr-sr-x 1 smmta smmsp  40 May 25 13:59 .
drwxr-sr-x 1 smmta smmsp 896 Jun  1 11:29 ..
-rw-r----- 1 root  smmsp   0 May 25 13:59 dialup.m4
-rw-r----- 1 root  smmsp   0 May 25 13:59 provider.m4

/etc/mail/peers:
total 4
drwxr-xr-x 1 root  root   16 May 25 13:59 .
drwxr-sr-x 1 smmta smmsp 896 Jun  1 11:29 ..
-rw-r--r-- 1 root  root  328 Oct  2  2014 provider

/etc/mail/sasl:
total 8
drwxr-xr-x 1 smmta smmsp   44 May 25 13:59 .
drwxr-sr-x 1 smmta smmsp  896 Jun  1 11:29 ..
-rw-r----- 1 smmta smmsp  909 May 25 13:59 Sendmail.conf.2
-rwxr--r-- 1 root  root  3674 May 25 15:09 sasl.m4

/etc/mail/smrsh:
total 8
drwxr-sr-x 1 smmta smmsp  36 May 25 14:51 .
drwxr-sr-x 1 smmta smmsp 896 Jun  1 11:29 ..
lrwxrwxrwx 1 root  smmsp  26 May 25 13:59 mail.local -> /usr/lib/sm.bin/mail.local
lrwxrwxrwx 1 root  smmsp  17 May 25 14:51 procmail -> /usr/bin/procmail

/etc/mail/tls:
total 56
drwxr-xr-x 1 smmta smmsp  584 Jun  1 07:45 .
drwxr-sr-x 1 smmta smmsp  896 Jun  1 11:29 ..
-rw-r--r-- 1 root  root     7 May 25 13:59 no_prompt
-rw------- 1 root  root  1191 May 25 13:59 sendmail-client.cfg
lrwxrwxrwx 1 root  root    44 Jun  1 07:45 sendmail-client.crt -> /etc/mail/tls/vhrz492.HRZ.Uni-Marburg.DE.pem
-rw------- 1 root  root  1041 May 25 13:59 sendmail-client.csr
lrwxrwxrwx 1 root  root    44 Jun  1 07:45 sendmail-common.key -> /etc/mail/tls/vhrz492.HRZ.Uni-Marburg.DE.key
-rw-r----- 1 root  smmsp 1598 May 25 13:59 sendmail-common.prm
-rw------- 1 root  root  1191 May 25 13:59 sendmail-server.cfg
lrwxrwxrwx 1 root  root    44 Jun  1 07:45 sendmail-server.crt -> /etc/mail/tls/vhrz492.HRZ.Uni-Marburg.DE.pem
-rw------- 1 root  root  1041 May 25 13:59 sendmail-server.csr
-rwxr--r-- 1 root  root  3249 May 25 15:09 starttls.m4
-r-------- 1 root  smmsp 1678 May 27 11:25 vhrz167.HRZ.Uni-Marburg.DE.key
-rw-r--r-- 1 root  smmsp 2207 May 27 11:25 vhrz167.HRZ.Uni-Marburg.DE.pem
-r-------- 1 root  smmsp 1678 Jun  1 07:45 vhrz492.HRZ.Uni-Marburg.DE.key
-rw-r--r-- 1 root  smmsp 2207 Jun  1 07:45 vhrz492.HRZ.Uni-Marburg.DE.pem

sendmail.conf:
DAEMON_NETMODE="Static";
DAEMON_NETIF="eth0";
DAEMON_MODE="Daemon";
DAEMON_PARMS="-O deliverymode=queueonly -O queuedirectory=/var/spool/mqueue/in";
DAEMON_HOSTSTATS="Yes";
DAEMON_MAILSTATS="Yes";
QUEUE_MODE="${DAEMON_MODE}";
QUEUE_INTERVAL="10m";
QUEUE_PARMS="";
MSP_MODE="Cron";
MSP_INTERVAL="20m";
MSP_PARMS="";
MSP_MAILSTATS="${DAEMON_MAILSTATS}";
MISC_PARMS="";
CRON_MAILTO="root";
CRON_PARMS="";
LOG_CMDS="No";
HANDS_OFF="No";
AGE_DATA="";
DAEMON_RUNASUSER="No";
DAEMON_STATS="${DAEMON_MAILSTATS}";
MSP_STATS="${MSP_MAILSTATS}";


sendmail.mc:
divert(-1)dnl
divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.14.3-9.4 2010-09-21 11:05:34 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
FEATURE(`no_default_msa')dnl
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl
define(`confBAD_RCPT_THROTTLE',`3')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
define(`confMAX_HOP',`100')dnl
DAEMON_OPTIONS(`Port=587, Addr=0.0.0.0, Name=TLSMSA, Modify=Ea')dnl
DAEMON_OPTIONS(`Port=smtps, Addr=0.0.0.0, Name=SSLMSA, Modify=Eas')dnl
include(`/etc/mail/sasl/sasl.m4')dnl
define(`confAUTH_OPTIONS', `py')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
FEATURE(`genericstable')dnl
FEATURE(`mailertable')dnl
FEATURE(`virtusertable')dnl
VIRTUSER_DOMAIN_FILE(`-o /etc/mail/virtuserdomains')dnl
FEATURE(blacklist_recipients)dnl
FEATURE(no_default_msa)dnl
FEATURE(`ldap_routing',`ldap -1 -T<TMPF> -v mailHost -k (&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))',`ldap -1 -T<TMPF> -v mailRoutingAddress -k (&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))',`bounce')dnl
DAEMON_OPTIONS(`Port=smtp, Addr=0.0.0.0, Name=MSA')dnl
MAILER_DEFINITIONS
MAILER(local)dnl
MAILER(smtp)dnl
LOCAL_CONFIG
include(`/etc/mail/tls/starttls.m4')dnl
define(`confTO_QUEUEWARN',`1d')dnl
define(`SMTP_MAILER_MAX', `100000000')dnl
define(`LOCAL_MAILER_MAX', `100000000')dnl
define(`confMAX_MESSAGE_SIZE', `100000000')dnl
define(`QUEUE_DIR', `/var/spool/mqueue/out')dnl
define(`confHOST_STATUS_DIRECTORY', `')dnl
define(`confTO_IDENT', `0')dnl
LDAPROUTE_DOMAIN_FILE(`/etc/mail/ldap-route-domains')dnl
define(`confLDAP_DEFAULT_SPEC', `-h "localhost:3890" -b"ou=MailRouting,o=Universitaet Marburg,c=DE" -d "uid=mailrouter,ou=Proxy,o=Universitaet Marburg,c=DE" -Msimple -P"/etc/mail/ldap-pass" -ssub -w3')dnl
include(`/etc/mail/milter-null.mc')dnl
include(`/etc/mail/milter-limit.mc')dnl

submit.mc...
divert(-1)dnl
divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: submit.mc, v 8.14.4-4 2013-02-11 11:12:33 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-msp')dnl
FEATURE(`msp', `[127.0.0.1]', `25')dnl


-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages sendmail depends on:
ii  sendmail-base  8.14.4-8
ii  sendmail-bin   8.14.4-8
ii  sendmail-cf    8.14.4-8
ii  sensible-mda   8.14.4-8

sendmail recommends no packages.

Versions of packages sendmail suggests:
pn  rmail         <none>
pn  sendmail-doc  <none>

Versions of packages sensible-mda depends on:
ii  libc6                                2.19-18+deb8u4
ii  procmail                             3.22-24
ii  sendmail-bin [mail-transport-agent]  8.14.4-8

Versions of packages libmilter1.0.1 depends on:
ii  libc6              2.19-18+deb8u4
ii  multiarch-support  2.19-18+deb8u4

Versions of packages sendmail-bin depends on:
ii  debconf        1.5.56
ii  libc6          2.19-18+deb8u4
ii  libdb5.3       5.3.28-9
ii  libldap-2.4-2  2.4.40+dfsg-1+deb8u2
ii  liblockfile1   1.09-6
ii  libsasl2-2     2.1.26.dfsg1-13+deb8u1
ii  libssl1.0.0    1.0.1k-3+deb8u5
ii  libwrap0       7.6.q-25
ii  procps         2:3.3.9-9
ii  sendmail-base  8.14.4-8
ii  sendmail-cf    8.14.4-8

Versions of packages sendmail-bin suggests:
ii  libsasl2-modules  2.1.26.dfsg1-13+deb8u1
ii  openssl           1.0.1k-3+deb8u5
ii  sasl2-bin         2.1.26.dfsg1-13+deb8u1
pn  sendmail-doc      <none>

-- no debconf information


Reply to: