segfault in postfix/smtp when relaying to smtp.gmail.com:587
For some reason, I can't subscribe to the support list. As a result, I can only ask here... I have several Debian, Ubuntu, and Fedora systems which relay local email to smtp.gmail.com:587 via Postfix. However, I can't get the same configuration working on Tumbleweed. The relevant configuration in main.cf is, relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_security_options = smtp_sasl_password_maps = lmdb:/etc/postfix/sasl_passwd smtp_use_tls = yes smtp_enforce_tls = yes smtp_tls_security_level = encrypt smtp_tls_CAfile = /var/lib/ca-certificates/ca-bundle.pem smtp_tls_CApath = /var/lib/ca-certificates/pem Thinking this could be due to a security configuration (e.g., deprication of MD5), I changed the following in main.cf smtp_tls_fingerprint_digest = sha256 smtpd_tls_fingerprint_digest = sha256 TLS is enabled in master.cf, tlsmgr unix - - n 1000? 1 tlsmgr I did NOT change any postfix sysconfig variables using Yast. With the following flags set in main.cf, debug_peer_level=3 debug_peer_list=smtp.gmail.com smtp_tls_loglevel = 2 I can see that name resolution, negotiation, password look-up, etc. work as expected. Then, I see a segfault in postfix/smtp. The journal entries are: Nov 26 19:41:51 ***REDACTED*** postfix/smtp[29834]: starting new SASL client Nov 26 19:41:51 ***REDACTED*** postfix/smtp[29834]: smtp_sasl_authenticate: smtp.gmail.com[142.251.177.109]:587: SASL mechanisms LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH Nov 26 19:41:51 ***REDACTED*** postfix/smtp[29834]: xsasl_cyrus_client_get_user: ***REDACTED*** Nov 26 19:41:51 ***REDACTED*** kernel: smtp[29834]: segfault at 4044 ip 0000559f5bc9dcae sp 00007ffc327dcc70 error 4 in smtp[559f5bc90000+f000] likely on CPU 15 (core 15, socket 0) Nov 26 19:41:51 ***REDACTED*** kernel: Code: ***REDACTED*** Nov 26 19:41:51 ***REDACTED*** systemd[1]: Started Process Core Dump (PID 29854/UID 0). Nov 26 19:41:51 ***REDACTED*** systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling. Nov 26 19:41:51 ***REDACTED*** systemd-coredump[29855]: [🡕] Process 29834 (smtp) of user 51 dumped core. Stack trace of thread 29834: #0 0x0000559f5bc9dcae n/a (smtp + 0x17cae) #1 0x00007f4253129ead _plug_get_simple (libkdexoauth2.so + 0x1ead) #2 0x00007f4253129303 n/a (libkdexoauth2.so + 0x1303) #3 0x00007f425310c49f sasl_client_step (libsasl2.so.3 + 0xd49f) #4 0x00007f425310df26 sasl_client_start (libsasl2.so.3 + 0xef26) #5 0x0000559f5bc9dffc n/a (smtp + 0x17ffc) #6 0x0000559f5bc987db n/a (smtp + 0x127db) #7 0x0000559f5bc98cfa n/a (smtp + 0x12cfa) #8 0x0000559f5bc97f4c n/a (smtp + 0x11f4c) #9 0x0000559f5bc9cd5f n/a (smtp + 0x16d5f) #10 0x0000559f5bc9da30 n/a (smtp + 0x17a30) #11 0x00007f42531fc548 n/a (libpostfix-master.so + 0x6548) #12 0x00007f42531fc6a8 n/a (libpostfix-master.so + 0x66a8) #13 0x00007f425314c496 event_loop (libpostfix-util.so + 0x16496) #14 0x00007f42531fa701 single_server_main (libpostfix-master.so + 0x4701) #15 0x0000559f5bc9db94 n/a (smtp + 0x17b94) #16 0x00007f42528281b0 __libc_start_call_main (libc.so.6 + 0x281b0) #17 0x00007f4252828279 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28279) #18 0x0000559f5bc90f35 n/a (smtp + 0xaf35) ELF object binary architecture: AMD x86-64 Nov 26 19:41:51 ***REDACTED*** postfix/qmgr[29821]: warning: private/smtp socket: malformed response Nov 26 19:41:51 ***REDACTED*** postfix/qmgr[29821]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Nov 26 19:41:51 ***REDACTED*** drkonqi-coredump-processor[29856]: "/usr/lib/postfix/bin/smtp" 29834 "/var/lib/systemd/coredump/***REDACTED***" Nov 26 19:41:51 ***REDACTED*** postfix/master[29819]: warning: process /usr/lib/postfix/bin//smtp pid 29834 killed by signal 11 Nov 26 19:41:51 ***REDACTED*** drkonqi-coredump-processor[29856]: The socket path doesn't exist @ "/run/user/51/drkonqi-coredump-launcher" Nov 26 19:41:51 ***REDACTED*** postfix/master[29819]: warning: /usr/lib/postfix/bin//smtp: bad command startup -- throttling Nov 26 19:41:51 ***REDACTED*** postfix/error[29860]: 771796E7E0: to=<***REDACTED***>, relay=none, delay=2871, delays=2870/0.45/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error) I have around three decades of C/C++ programming experience, so I took a quick look at libkdexoauth2 and didn't see anything obvious. Before I really dig into debigging this, does anyone have a suggestion or solution? BTW, I am new to Tumbleweed, so I may be missing something simple. -- Tony Walker <tony.walker.iu@gmail.com> PGP Key @ https://tonywalker1.github.io/ or https://keys.openpgp.org/ 9F46 D66D FF6C 182D A5AC 11E1 8559 98D1 7543 319C
On 2023-11-29 16:43, Tony Walker wrote:
For some reason, I can't subscribe to the support list. As a result, I can only ask here...
I don't know about your postfix problem, but I know that gmail addresses have problems with these mail lists. Sending is throttled down. Also, myabe you tried recently, when the mail list and several opensuse.org services were down. Perhaps you can try today? Or, maybe you can instead subscribe yourself on the administrative web page, after you sign in: https://lists.opensuse.org/manage/lists/?count=200 -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
On Wed, 2023-11-29 at 10:43 -0500, Tony Walker wrote:
Nov 26 19:41:51 ***REDACTED*** systemd-coredump[29855]: [🡕] Process 29834 (smtp) of user 51 dumped core. Stack trace of thread 29834: #0 0x0000559f5bc9dcae n/a (smtp + 0x17cae) #1 0x00007f4253129ead _plug_get_simple (libkdexoauth2.so + 0x1ead) #2 0x00007f4253129303 n/a (libkdexoauth2.so + 0x1303) #3 0x00007f425310c49f sasl_client_step (libsasl2.so.3 + 0xd49f) #4 0x00007f425310df26 sasl_client_start (libsasl2.so.3 + 0xef26) #5 0x0000559f5bc9dffc n/a (smtp + 0x17ffc) #6 0x0000559f5bc987db n/a (smtp + 0x127db) #7 0x0000559f5bc98cfa n/a (smtp + 0x12cfa) #8 0x0000559f5bc97f4c n/a (smtp + 0x11f4c) #9 0x0000559f5bc9cd5f n/a (smtp + 0x16d5f) #10 0x0000559f5bc9da30 n/a (smtp + 0x17a30) #11 0x00007f42531fc548 n/a (libpostfix-master.so + 0x6548) #12 0x00007f42531fc6a8 n/a (libpostfix-master.so + 0x66a8) #13 0x00007f425314c496 event_loop (libpostfix-util.so + 0x16496) #14 0x00007f42531fa701 single_server_main (libpostfix-master.so + 0x4701) #15 0x0000559f5bc9db94 n/a (smtp + 0x17b94) #16 0x00007f42528281b0 __libc_start_call_main (libc.so.6 + 0x281b0) #17 0x00007f4252828279 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28279) #18 0x0000559f5bc90f35 n/a (smtp + 0xaf35) ELF object binary architecture: AMD x86-64
Perhaps https://bugs.kde.org/show_bug.cgi?id=434234 ? Thanks, Robert
* Tony Walker <tony.walker.iu@gmail.com> [11-29-23 12:09]:
For some reason, I can't subscribe to the support list. As a result, I can only ask here...
I have several Debian, Ubuntu, and Fedora systems which relay local email to smtp.gmail.com:587 via Postfix. However, I can't get the same configuration working on Tumbleweed.
I do the same in Tw
The relevant configuration in main.cf is,
relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_security_options = smtp_sasl_security_options = noanomymous
smtp_sasl_password_maps = lmdb:/etc/postfix/sasl_passwd smtp_use_tls = yes smtp_enforce_tls = yes smtp_tls_security_level = encrypt smtp_tls_CAfile = /var/lib/ca-certificates/ca-bundle.pem smtp_tls_CApath = /var/lib/ca-certificates/pem
Thinking this could be due to a security configuration (e.g., deprication of MD5), I changed the following in main.cf
smtp_tls_fingerprint_digest = sha256 smtpd_tls_fingerprint_digest = sha256
I have neither (smtp[d]_tls_...
TLS is enabled in master.cf,
tlsmgr unix - - n 1000? 1 tlsmgr
same
I did NOT change any postfix sysconfig variables using Yast.
With the following flags set in main.cf,
debug_peer_level=3 = 2
debug_peer_list=smtp.gmail.com
#debug_peer_list = 127.0.0.1 #debug_peer_list = some.domain
smtp_tls_loglevel = 2
#smtp_tls_loglevel = 0
I can see that name resolution, negotiation, password look-up, etc. work as expected. Then, I see a segfault in postfix/smtp. The journal entries are:
Nov 26 19:41:51 ***REDACTED*** postfix/smtp[29834]: starting new SASL client Nov 26 19:41:51 ***REDACTED*** postfix/smtp[29834]: smtp_sasl_authenticate: smtp.gmail.com[142.251.177.109]:587: SASL mechanisms LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH Nov 26 19:41:51 ***REDACTED*** postfix/smtp[29834]: xsasl_cyrus_client_get_user: ***REDACTED*** Nov 26 19:41:51 ***REDACTED*** kernel: smtp[29834]: segfault at 4044 ip 0000559f5bc9dcae sp 00007ffc327dcc70 error 4 in smtp[559f5bc90000+f000] likely on CPU 15 (core 15, socket 0) Nov 26 19:41:51 ***REDACTED*** kernel: Code: ***REDACTED*** Nov 26 19:41:51 ***REDACTED*** systemd[1]: Started Process Core Dump (PID 29854/UID 0). Nov 26 19:41:51 ***REDACTED*** systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling. Nov 26 19:41:51 ***REDACTED*** systemd-coredump[29855]: [🡕] Process 29834 (smtp) of user 51 dumped core. Stack trace of thread 29834: #0 0x0000559f5bc9dcae n/a (smtp + 0x17cae) #1 0x00007f4253129ead _plug_get_simple (libkdexoauth2.so + 0x1ead) #2 0x00007f4253129303 n/a (libkdexoauth2.so + 0x1303) #3 0x00007f425310c49f sasl_client_step (libsasl2.so.3 + 0xd49f) #4 0x00007f425310df26 sasl_client_start (libsasl2.so.3 + 0xef26) #5 0x0000559f5bc9dffc n/a (smtp + 0x17ffc) #6 0x0000559f5bc987db n/a (smtp + 0x127db) #7 0x0000559f5bc98cfa n/a (smtp + 0x12cfa) #8 0x0000559f5bc97f4c n/a (smtp + 0x11f4c) #9 0x0000559f5bc9cd5f n/a (smtp + 0x16d5f) #10 0x0000559f5bc9da30 n/a (smtp + 0x17a30) #11 0x00007f42531fc548 n/a (libpostfix-master.so + 0x6548) #12 0x00007f42531fc6a8 n/a (libpostfix-master.so + 0x66a8) #13 0x00007f425314c496 event_loop (libpostfix-util.so + 0x16496) #14 0x00007f42531fa701 single_server_main (libpostfix-master.so + 0x4701) #15 0x0000559f5bc9db94 n/a (smtp + 0x17b94) #16 0x00007f42528281b0 __libc_start_call_main (libc.so.6 + 0x281b0) #17 0x00007f4252828279 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28279) #18 0x0000559f5bc90f35 n/a (smtp + 0xaf35) ELF object binary architecture: AMD x86-64 Nov 26 19:41:51 ***REDACTED*** postfix/qmgr[29821]: warning: private/smtp socket: malformed response Nov 26 19:41:51 ***REDACTED*** postfix/qmgr[29821]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Nov 26 19:41:51 ***REDACTED*** drkonqi-coredump-processor[29856]: "/usr/lib/postfix/bin/smtp" 29834 "/var/lib/systemd/coredump/***REDACTED***" Nov 26 19:41:51 ***REDACTED*** postfix/master[29819]: warning: process /usr/lib/postfix/bin//smtp pid 29834 killed by signal 11 Nov 26 19:41:51 ***REDACTED*** drkonqi-coredump-processor[29856]: The socket path doesn't exist @ "/run/user/51/drkonqi-coredump-launcher" Nov 26 19:41:51 ***REDACTED*** postfix/master[29819]: warning: /usr/lib/postfix/bin//smtp: bad command startup -- throttling Nov 26 19:41:51 ***REDACTED*** postfix/error[29860]: 771796E7E0: to=<***REDACTED***>, relay=none, delay=2871, delays=2870/0.45/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)
I have no idea about above my mail server is on a leap 42.2 box but I have six other tw boxes which relay thru 10.10.1.X (server) -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
participants (4)
-
Carlos E. R.
-
Patrick Shanahan
-
Robert Munteanu
-
Tony Walker