Finding mail exchangers

Steve Holden sholden at holdenweb.com
Mon May 13 22:57:29 EDT 2002


"ian" <iwaters at btclick.com> wrote in message
news:0eSD8.57422$7R.66720 at NewsReader...
> hi ive almost finished my mail server for a
> programming assignment im doing
>
> what i need to do now is write some code
> to find the mail exchanger for a given domain
>
> for example if i send mail to iwaters at btclick.com
> it gets sent to pop3.btclick.com
>
> how can i get a list of all exchangers for domains?


You need to submit a query to a DNS server and decode the reply.

I have code that does this if you'd like a copy (it uses the dnslib code,
which I can also provide).

regards
 Steve
--
-----------------------------------------------------------------------
Steve Holden                                 http://www.holdenweb.com/
Python Web Programming                http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------








More information about the Python-list mailing list