SMTP server w/o using Twisted framework

Jeff McNeil jeff at
Thu Jul 5 20:34:24 CEST 2007

If you just want to send mail, you should be able to use the standard
smtplib module ( If
your recipients are on the Internet, you would need to handle MX
resolution yourself.

I know you said you want to avoid a relay server, but it's probably
the best bet unless you control the SMTP infrastructure or are simply
sending messages locally. Otherwise, you'll probably need to also
implement queuing and retry logic (depending on your requirements).
There are also some warning lights that may go off and flag your mail
as spam if you're using a method like that...


On 7/5/07, _spitFIRE <timid.Gentoo at> wrote:
> Is it possible to run a SMTP server that sends mail to recipients
> using standard libraries, without using twisted framework, and also
> without using any relay server?
> --

More information about the Python-list mailing list