Does smtplib lookup MX records?

Martin von Loewis loewis at
Sat Nov 17 12:06:49 CET 2001

Just van Rossum <just at> 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.


More information about the Python-list mailing list