Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsmCustomSMTPServer.SmarthostTLSServer

property SmarthostTLSServer: TsmSimpleTLSInternalServer read GetSmarthostTLSServer write SetSmarthostTLSServer;
THE TRUST CONFIGURATION FOR THE ONWARD LEG, AND IT IS NOT TLSServer.

TLSServer above is what a peer connecting to THIS host is answered with, and its RootCerts is simultaneously the set of anchors this server will accept a CLIENT CERTIFICATE under. What the onward leg needs is the opposite direction - whoever answers at the far end. For a NAMED smarthost that is one issuer the operator can name, so anchor on that one and nothing else; the public CA bundle is for a destination the deployment cannot name in advance. Loading that bundle onto the listening engine instead would make every certificate on the internet a relay credential; see RelayForClientCertificate.

So: a SECOND, client-role TsmSimpleTLSInternalServer, assigned here, shared by every delivery. Left nil the clients fall back to the process-wide GlobalServer, and with neither they trust nothing and deliveries fail closed. Anchors belong here rather than in OnConfigureDelivery, which fires once per message.