Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

SmtpAddressIsCertIdentity

function SmtpAddressIsCertIdentity(const aAddress: string; const aIdentities: TArray<string>): Boolean;
Whether an envelope address IS one of those identities. CASE-INSENSITIVE, INCLUDING THE LOCAL PART, which is deliberate and is the opposite of what tSmtpEnvelope.AddRecipient does. The difference is whose mailbox it is: a RECIPIENT lives on a foreign host, and RFC 5321 sec.2.4 reserves the judgement about local-part case to that host, so this server must not fold it. A certificate identity is one WE issued for a mailbox WE host, so we are the authority on its case, and folding it prevents a provisioning mismatch ('Alice@' in the certificate, 'alice@' on the wire) from silently refusing a legitimate sender.