Package: postfix Version: 3.3.0-1+b1 Severity: normal For some time, the smtp is unable to relay my mails to gmail. I tracked the problem down to the libsasl2-2 and libsasl2-modules: - downgrading them to the 2.1.27~101-g0780600+dfsg-3.1 version, recompiled from debian sources, solves the problem, - recompiling postfix without downgrading the sasl does not help (also segfaults), - same behavior on custom kernel and Debian's 4.18.0-2-amd64.
I'm not sure if it's cyrus-sasl bug or postfix bug or just incompatibility of these two. postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250-smtp.gmail.com at your service, [X.X.X.X] postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250-SIZE 35882577 postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250-8BITMIME postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250-ENHANCEDSTATUSCODES postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250-PIPELINING postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250-CHUNKING postfix/smtp[2660]: < smtp.gmail.com[64.233.163.109]:587: 250 SMTPUTF8 postfix/smtp[2660]: server features: 0x20102f size 35882577 postfix/smtp[2660]: Using ESMTP PIPELINING, TCP send buffer size is 46080, PIPELINING buffer size is 4096 postfix/smtp[2660]: maps_find: smtp_sasl_password_maps: smtp.gmail.com: not found postfix/smtp[2660]: maps_find: smtp_sasl_password_maps: hash:/etc/postfix/sasl_passwd(0,lock|fold_fix|utf8_request): [smtp.gmail.com]:587 = edi...@gmail.com:edited postfix/smtp[2660]: smtp_sasl_passwd_lookup: host `smtp.gmail.com' user `edi...@gmail.com' pass `edited' postfix/smtp[2660]: starting new SASL client postfix/smtp[2660]: name_mask: noanonymous postfix/smtp[2660]: smtp_sasl_authenticate: smtp.gmail.com[64.233.163.109]:587: SASL mechanisms LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH postfix/smtp[2660]: xsasl_cyrus_client_get_user: edi...@gmail.com postfix/qmgr[3041]: warning: private/smtp socket: malformed response kernel: [84034.480237] smtp[2660]: segfault at 4044 ip 0000564ba59e7070 sp 00007ffdf91f9f60 error 4 in smtp[564ba59d2000+1c000] kernel: [84034.480245] Code: 59 8d 53 01 48 8d 78 08 4c 89 28 48 89 ee 48 63 d2 e8 44 31 ff ff 31 c0 48 83 c4 08 5b 5d 41 5c 41 5d c3 0f 1f 80 00 00 00 00 <48> 8b 56 40 postfix/master[3025]: warning: process /usr/lib/postfix/sbin/smtp pid 2660 killed by signal 11 postfix/qmgr[3041]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description For what is worth, it probably not affects all the users, as on my other machine same postfix-sasl tandem works flawlessly and authenticates to the Exchange server just fine. Any ideas on this one? -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (10, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.18.12-finwe (SMP w/4 CPU cores; PREEMPT) Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages postfix depends on: ii adduser 3.118 ii cpio 2.12+dfsg-6 ii debconf [debconf-2.0] 1.5.69 ii dpkg 1.19.2 ii e2fsprogs 1.44.4-2 ii libc6 2.27-6 ii libdb5.3 5.3.28+dfsg1-0.2 ii libicu60 60.2-6 ii libsasl2-2 2.1.27~rc8-1 ii libssl1.1 1.1.1-1 ii lsb-base 9.20170808 ii netbase 5.4 ii ssl-cert 1.0.39 Versions of packages postfix recommends: ii python3 3.6.6-1 Versions of packages postfix suggests: ii bsd-mailx [mail-reader] 8.1.2-0.20180807cvs-1 pn dovecot-common <none> ii evolution [mail-reader] 3.28.5-1 ii kmail [mail-reader] 4:17.12.3-1 ii libsasl2-modules 2.1.27~rc8-1 ii mutt [mail-reader] 1.10.1-2 pn postfix-cdb <none> pn postfix-doc <none> pn postfix-ldap <none> pn postfix-lmdb <none> pn postfix-mysql <none> pn postfix-pcre <none> pn postfix-pgsql <none> pn postfix-sqlite <none> ii procmail 3.22-26 pn resolvconf <none> ii s-nail [mail-reader] 14.9.11-1 pn sasl2-bin <none> pn ufw <none> -- debconf information: * postfix/recipient_delim: + * postfix/destinations: finwe.finwe.eu, localhost.finwe.eu, finwe.eu, finwe.giga.katowice.pl, localhost, finwe, finwe.eu.org, finwe.no-ip.info * postfix/mailbox_limit: 0 postfix/lmtp_retired_warning: true * postfix/dynamicmaps_conversion_warning: true * postfix/mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 postfix/newaliases: false * postfix/mailname: finwe.finwe.eu * postfix/relayhost: [smtp.gmail.com]:587 postfix/bad_recipient_delimiter: postfix/tlsmgr_upgrade_warning: * postfix/root_address: jfk postfix/sqlite_warning: postfix/retry_upgrade_warning: postfix/kernel_version_warning: postfix/relay_restrictions_warning: * postfix/protocols: ipv4 * postfix/chattr: false * postfix/main_mailer_type: Internet with smarthost postfix/main_cf_conversion_warning: true * postfix/procmail: true postfix/rfc1035_violation: false postfix/not_configured: postfix/mydomain_warning: * postfix/compat_conversion_warning: true