servers in python

M

Max

I am writing a Hashcash program in python. Rather than create an email
client plugin, I have done this thru a proxy server which adds the
Hashcash before forwarding.

What I want to know is whether this is safe. I currently use this code:

class HashcashServer (smtpd.PureProxy):
def process_message (self, peer, mailfrom, rcpttos, data):
if peer[0] in trusted_peers:
# add Hashcash and forward
else:
pass

where trusted_peers is a list of peers that are allowed to use the
service (it is currently just ["localhost"]).

Is there risk of any hacking, or of this becoming an open relay?

--Max
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top