Hi braintrust, I'd appreciate any comments from people more familiar with current M365 email infrastructure behaviour. I have a strange issue occasionally affecting a subset of users on one of my systems.
Some users occasionally report that sending emails results in an error, and the outbound emails sits unsent in their outbox. This seems to coincide with when their sessions are being proxied through M365 infrastructure, despite the account being originally configured as a direct IMAP account and the user running the legacy interface client. They are almost all on Mac. Sometimes the same affected users subsequently receive errors when trying to check their inbox. This occurs in legacy or 'new' Outlook, affecting accounts configured through the 'new' wizard interface, or IMAP accounts manually configured in legacy Outlook. Cranking up my logging, I saw entries like these sporadically appearing in Dovecot and Postfix logs: Apr 20 09:45:45 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<r4sSU+BPOGYmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:45:45 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<KGMaU+BPetcmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:45:46 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<WHIlU+BPJwkmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:46:02 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<cIAcVOBPvhYmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:46:18 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<EgcNVeBPiUwmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:46:34 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<s7IGVuBPpLomAxAmDBEMIgAAAAAAAAAF> Apr 20 09:46:50 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<EpP0VuBPxCsmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:47:06 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<8GXsV+BPpMsmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:47:22 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<ljTgWOBP20omAxAmDBEMIgAAAAAAAAAF> Apr 20 09:47:38 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<Q+PVWeBPG50mAxAmDBEMIgAAAAAAAAAF> Apr 20 09:47:54 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<vb/JWuBPQQQmAxAmDBEMIgAAAAAAAAAF> Apr 20 09:45:45 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:45:45 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:45:46 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:46:02 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:46:18 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:46:34 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:46:50 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:47:06 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] Apr 20 09:47:22 imap-login: Warning: SSL alert: where=0x4004, ret=557: fatal certificate expired [2603:1026:c11:c22::5] [...] Apr 20 17:15:56 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=2603:1026:c11:c22::5, lip=2a00:1098:84:1d7::1, TLS: SSL_read() failed: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired: SSL alert number 45, session=<nIMXneZPe+MmAxAmDBEMIgAAAAAAAAAF> For the affected users, logins to check inboxes and read emails work ok, but attempts to send emails (Outlook client > presumably proxied via MS M365 infra > my mailserver) fail during the affected period. In this case, the mail server I look after currently has a LE cert signed by their R12 intermediate, in turn signed by their "ISRG Root X1" root. My server is confirmed functioning fine, valid chain of trust valid, inbound and outbound tests all 100% OK, and other clients (Thunderbird, IMAP clients etc) all consistently working with no errors via either SSL or STARTTLS. Subsequently this afternoon, I did notice successful connects from a different MS IP (2603:1026:c11:c22::5), which happened to immediately follow more logged errors for the problematic MS IP (2603:1026:c11:c22::5): Apr 20 17:51:14 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=2603:1026:c11:102d::5, lip=<redacted>, mpid=11709, TLS, session=<VwBLG+dPfNImAxAmDBEQLQAAAAAAAAAF> [...] Apr 20 17:52:14 l03 postfix/smtps/smtpd[11808]: connect from unknown[2603:1026:c11:c22::5] Apr 20 17:52:14 l03 postfix/smtps/smtpd[11808]: setting up TLS connection from unknown[2603:1026:c11:c22::5] Apr 20 17:52:14 l03 postfix/smtps/smtpd[11808]: unknown[2603:1026:c11:c22::5]: TLS cipher list "EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES:!CBC3-SHA:!MD5:!aDSS:!kECDH:!kDH:!SEED:!IDEA:!DES:!ADH:!RC2:!RC4:!RC5:!PSD:!SRP:!3DES:!eNULL:!aNULL" Apr 20 17:52:14 l03 postfix/smtps/smtpd[11808]: Anonymous TLS connection established from unknown[2603:1026:c11:c22::5]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits) Apr 20 17:52:14 l03 postfix/smtps/smtpd[11808]: disconnect from unknown[2603:1026:c11:c22::5] Is this a possible issue with some M365 nodes not having up to date CA stores or missing some intermediates (like LE's R12/13 intermediates), or are parts of the M365 infrastructure known to sometimes cache old/expired certs for too long? The mailserver cert did recently undergo its scheduled cert rotation, other clients and software working as normal. It's a comparatively low-intensity business email server for ~50 accounts across a few domains. Cheers Chris
_______________________________________________ mailop mailing list [email protected] https://list.mailop.org/listinfo/mailop
