Hallo Wilfried, > To find out which is the smtp server I have to send mail to for a > particular domain I can use the MXPreference[n] property of DnsQuery > component. But in what case there can be multiple results ? (I tryed a > few and get only 1 result 'answer#1 in demo program'). > > What is the MXExchange[n] property for ?
I'm not sure whether the standard DnsQuery component returns multiple MX entries. If memory serves I once used Holger's component in ICS sub directory internet\HLembke for that purpose which works fine: Request ID : 2 ID : 2 ResponseCode : 0 OpCode : 0 Authoritative : 0 Truncation : 0 RecursionAvailable : 1 QDCount : 1 ANCount : 3 NSCount : 0 ARCount : 6 ResponseLen : 193 QuestionName : microsoft.com QuestionType : 15 QuestionClass : 1 MailExchange: maila.microsoft.com MailExchange: mailb.microsoft.com MailExchange: mailc.microsoft.com Item for: microsoft.com MailExchange: maila.microsoft.com 10 Item for: microsoft.com MailExchange: mailb.microsoft.com 10 Item for: microsoft.com MailExchange: mailc.microsoft.com 10 Item for: mailb.microsoft.com DnsQueryA: 131.107.115.215 Item for: mailb.microsoft.com DnsQueryA: 205.248.106.30 Item for: mailc.microsoft.com DnsQueryA: 131.107.115.214 Item for: mailc.microsoft.com DnsQueryA: 205.248.106.32 Item for: maila.microsoft.com DnsQueryA: 205.248.106.64 Item for: maila.microsoft.com DnsQueryA: 131.107.115.212 Response dump (193 bytes): <0><2><129><128><0><1><0><3><0><0><0><6><9>mic rosoft<3>com<0><0><15><0><1><192> <12><0><15><0><1><0><0><1>/<0><10><0><10><5>ma ila<192><12><192><12><0><15><0><1><0><0><1>/<0> <10><0><10><5>mailb<192><12><192><12><0><15><0> <1><0><0><1>/<0><10><0><10><5>mailc<192> <12><192>C<0><1><0><1><0><0><9><237><0><4><131>ks <215><192>C<0><1><0><1><0><0><9><237><0><4><205><248>j <30><192>Y<0><1><0><1><0><0><13>+<0><4><131>ks <214><192>Y<0><1><0><1><0><0><13>+<0><4><205><248>j <192>-<0><1><0><1><0><0><1>/<0><4><205><248>j @<192>-<0><1><0><1><0><0><1>/<0><4><131>ks <212> > > -- > Rgds, Wilfried > http://www.mestdagh.biz -- 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
