Port 2465 should have implicit TLS from byte 1

This commit is contained in:
Konstantin Wohlwend 2026-02-11 10:08:57 -08:00
parent 02c67ef532
commit 2288c9c65c

View File

@ -14,8 +14,10 @@ import { Resend } from 'resend';
import { getTenancy } from './tenancies';
export function isSecureEmailPort(port: number | string) {
// "secure" in most SMTP clients means implicit TLS from byte 1 (SMTPS)
// STARTTLS ports (25/587/2587) should return false.
let parsedPort = parseInt(port.toString());
return parsedPort === 465;
return parsedPort === 465 || parsedPort === 2465;
}
export type LowLevelEmailConfig = {