top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

0 votes
1,057 views

Every once in a while, my ISP's SMTP server refuses to send perfectly legit e-mails because it considers them as SPAM.

So I'd like to install a dead-simple SMTP server on my XP computer just to act as SMTP backup server. All I'd need is to change the SMTP address in my e-mail client, and off they go. No need for anything else like user authentication or SPAM control.

Is there a no-brainer, ready-to-use solution in Python that I could use for this?

posted Jul 21, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Many ISPs now block "pass through" SMTP -- especially original port 25 SMTP; only "their" server is permitted to connect to outside hosts.

If all your destinations are using TLS with alternate ports, you might be okay, but if the mail is being sent over port 25, it won't go anywhere.

WinXP Pro supposedly contains an SMTP server as part of the "Internet Information Services" (IIS6) suite (optional component activated via control panel). Win7 Pro seems to have removed that (SMTP) component from IIS7.

answer Jul 21, 2013 by anonymous
–1 vote

Rather than write something from scratch, I'd look at deploying something out-of-the-box - Postfix, for instance - which you will be able to configure much faster than writing your own. And then you could have it either send via your ISP or send directly to the receiving MTA, without much extra effort.

answer Jul 21, 2013 by anonymous
Similar Questions
0 votes

I have to write a small SMTP-Relay script (+ some statistic infos) and I'm wondering, if this can be done in python (in terms of performance, of course not in terms of possibility ;) ).

It has to handle around 2000 mails per hour for at least 8hours a day (which does not mean, that it is allowed not to respond the rest of the day.

Can this be done? or should I better use some other programming language? My second choice would be erlang.

+9 votes

Explain the following terms: DNS, SMTP, HTTP, FTP, Hub, Switch, Firewall, BOOTP, DHCP, SNMP?
Please mention the standard port numbers for these terms.

0 votes

I am having Bugzilla 4.0.2 i want to specify SMTP port address But in Bugzilla there is no option for Port Address Please Let me know how to enter Port address for SMTP

SMTP port addrress is 587

0 votes

I'm trying to write a python script that writes some content to a file root through sudo, but it's not working at all. I am using:

 channel = 'stable'
 config_file = '/opt/ldg/etc/channel.conf'
 command = ['echo', '-n', channel, '|', 'sudo', 'tee', config_file]
 p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 out, _ = p.communicate()

But it seems as if this isn't doing anything.

I just want to write the contents of the variable channel to the file /opt/ldg/etc/channel.conf. But whatever I try just doesn't work. Can anyone offer any pointers?

...