Skip to content

COR-186 - Ensure checking SSL Certificate in IMAP StartTLS. - #106

Merged
dbezverkhnii merged 1 commit into
spark2from
feature/COR-186-cherry-pick-imap-starttls-certificate-check
Sep 4, 2026
Merged

COR-186 - Ensure checking SSL Certificate in IMAP StartTLS.#106
dbezverkhnii merged 1 commit into
spark2from
feature/COR-186-cherry-pick-imap-starttls-certificate-check

Conversation

@dbezverkhnii

@dbezverkhnii dbezverkhnii commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

(cherry picked from commit fad23d7)


Note

High Risk
Changes TLS trust behavior on the IMAP StartTLS connect path; invalid or mismatched certificates will now fail login instead of being accepted.

Overview
StartTLS IMAP connects now run the same certificate check as direct TLS, closing a gap where a successful STARTTLS upgrade could continue without validating the server cert.

After mailimap_socket_starttls succeeds, connect calls checkCertificate() (honoring isCheckCertificateEnabled()). Failure sets ErrorCertificate and tears down the session, matching the existing ConnectionTypeTLS branch. Log lines for the TLS connect path are prefixed with "TLS" for easier distinction from StartTLS cert errors.

Reviewed by Cursor Bugbot for commit 271b9c1. Bugbot is set up for automated code reviews on this repo. Configure here.

@dbezverkhnii
dbezverkhnii merged commit 9b4b1c0 into spark2 Sep 4, 2026
6 checks passed
@dbezverkhnii
dbezverkhnii deleted the feature/COR-186-cherry-pick-imap-starttls-certificate-check branch September 4, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants