Simple Python script as SMTP server for outgoing e-mails?

Chris Angelico rosuav at
Mon Jul 22 14:29:42 CEST 2013

On Mon, Jul 22, 2013 at 10:11 PM, Gilles <nospam at> wrote:
> On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie <torriem at>
> wrote:
>>Having spent a long time managing e-mail servers, everything Ivan said
>>in his reply is true as well.  I had forgotten a lot of that since I
>>haven't been running my own mail server (MTA or server part) in a while.
> Indeed, I had forgotten about some MTAs refusing incoming e-mails from
> other ISP's customer hosts. I'll experiment.

One thing to check when you change how you send mail is your SPF
record. I run the mail server for and have set its SPF to:

"v=spf1 ip4: ip4: ip4: -all"

If your SPF is as strict as mine (and if it's not, please make it so,
for the sake of the rest of the world!), you'll want to check it
before you start sending mail directly from your own computer.
Otherwise your mail _will_ be rejected as spam.


More information about the Python-list mailing list