Skip to content

fix(platform): align imap-smtp TLS mode with well-known ports - #2896

Merged
Israeltheminer merged 1 commit into
mainfrom
fix/platform-imap-smtp-tls-port-mismatch
Aug 3, 2026
Merged

Israeltheminer merged 1 commit into
mainfrom
fix/platform-imap-smtp-tls-port-mismatch

Conversation

@Israeltheminer

Copy link
Copy Markdown
Contributor

Summary

  • Fixes live imap-smtp.send failing with OpenSSL wrong version number when the connector defaults paired smtpPort: 587 (STARTTLS) with security: tls (implicit TLS).
  • Well-known ports now own the TLS mode (465/993 → implicit TLS; 587/143 → STARTTLS), so Gmail-style mixed setups and already-saved mismatched credentials work without a migration.
  • Aligns catalog defaults to smtpPort: 465 + security: tls and locks the pair with a catalog regression test.

Test plan

  • bun run --filter @tale/platform test -- lib/connectors/natives/imap-smtp.test.ts lib/shared/schemas/shipped-connectors.test.ts
  • Re-test live imap-smtp.send against Gmail (smtp.gmail.com:465 or :587) with a previously failing credential
  • Confirm a fresh IMAP/SMTP credential form still saves with coherent defaults

Default smtpPort 587 with security tls started an implicit TLS handshake
on a STARTTLS greeting (OpenSSL wrong version number). Let 465/993 and
587/143 own the mode, and keep the catalog defaults coherent.
@Israeltheminer
Israeltheminer merged commit 3ba192a into main Aug 3, 2026
51 checks passed
@Israeltheminer
Israeltheminer deleted the fix/platform-imap-smtp-tls-port-mismatch branch August 3, 2026 14:14
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.

1 participant