propertytSmtpSmarthostAgent.TLSServer
property TLSServer: TsmSimpleTLSInternalServer read fTLSServer write fTLSServer;
THE TRUST CONFIGURATION FOR THE OUTBOUND LEG, SHARED ACROSS DELIVERIES.
Outbound is its own trust domain and it is not the listener's: what the onward leg has to trust is whoever answers at the far end. A NAMED SMARTHOST is knowable - one host, one operator, one issuer - so anchor on that issuer alone. The public CA bundle is for the other case, an arbitrary internet MX, whose peer arrives with the message and whose authority therefore cannot be settled any earlier. That set must never be loaded onto an engine that terminates a listening port, because an engine's RootCerts is simultaneously its PEER ANCHOR SET, and public CAs there turn every certificate on the internet into a client credential. One engine per trust domain is the only separation this library has; this property is the outbound one.
IT IS A REFERENCE, NOT AN OWNED OBJECT - assign one long-lived TsmSimpleTLSInternalServer and every delivery reuses its stores. That is the point: a public bundle is on the order of 150 certificates, and the agent creates a client PER MESSAGE, so loading anchors in OnConfigure instead means parsing the whole bundle again for every message in the queue. The engine must outlive the spool.
LEFT nil, the client falls back to the process-wide GlobalServer, which is the same rule TsmAdvancedTLSClient and StreamSec.Http.Client follow. WITH NEITHER, the client trusts nothing and Open fails - which is the right way round for a delivery agent, and the posture this agent had before the property existed.