> At this time I see this way:
> 
> 1. Use TDNSQuery.MXLookup to resolve MX, then TDNSQuery.ALookup to 
> resolve MX's IP. Then supply resolved MX IP to TSmtpCli to avoid 
> GetHostByName.
> 
> 2. Cache both MX and A results in my own DNS cache.

Seems sensible, just make sure you time out the cached entries. 

Most of the client components are designed for that use, not to be used in 
servers.

 
> But maybe you can suggest more efficient way ? Maybe some tuning or 
> secret option in ICS ? 

No secret options.

I have been planning a relaying demo combining the SMTP server I wrote a couple 
of
years ago and Magenta Mail Queue which queues sending, but not got around to 
adding
MX checking to the latter. 

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to