Does smtplib lookup MX records?

Martin von Loewis loewis at informatik.hu-berlin.de
Sat Nov 17 06:06:49 EST 2001


Just van Rossum <just at letterror.com> writes:

> But isn't the point that you shouldn't *have to* look up mx records?

Indeed. There are many problems with trying to send mail directly to
the remote MTA; finding the MX record is just one of them.  For
example, the remote mail exchanger may be down, or refuse to accept
mail unless reverse name lookup succeeds, etc.

So as a MUA, you always send mail to your local MTA.

Regards,
Martin



More information about the Python-list mailing list