top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Python performance with SMTP-Relay script

0 votes
80 views

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.

posted Aug 2, 2013 by Deepak Dasgupta

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

I suspect it depends on a lot of factors:

  • will your network connection support that much traffic? (And an ISP that will grant you permission to spew that volume of email?)

  • are these simple text emails, or are they large with lots of attachments, inline images, PDFs, or whatever?

  • are the statistics that you're gathering simple, or do they require complex analysis of the documents passing through?

  • is the load 8hr straight of spewing email, or is it bursty? If it's bursty, you can internally queue them up when load gets high, delivering them from that queue when load diminishes. Given the store-and-forward nature of email, there's no guarantee that if you spewed them at ~33/minute (that/s a little faster than one
    every two seconds), they'd arrive at their destination any faster than if you'd queued them up and sent them at a more steady rate.

That said, sending ~33 text emails per minute doesn't seem impossible, it just depends on your configuration (network, DNS, and receiving SMTP server(s) throttling/setup)

answer Aug 2, 2013 by Majula Joshi
Similar Questions
0 votes

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?

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

+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.

+1 vote

I have a python script (web service with query postgresql/postgis). Up to now, i did several test on my local laptop station (windows).

Now i want to execute this python script on our remote server (Web server : Apache;OS : Linux).

How to write a CGI template please? Can someone help me?


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...