SMTP server class ??
Barry A. Warsaw
barry at digicool.com
Wed Jul 11 01:42:27 EDT 2001
>>>>> "SK" == Sheila King <sheila at spamcop.net> writes:
SK> I looked at the current 2.1 Module docs online here
SK> http://www.python.org/doc/current/modindex.html
SK> and see no mention of it?
Sadly, I've never had the time to write up documentation for it.
SK> I've taken a cursory glance from the code I downloaded off of
SK> your site last night. It seems to be heavy on the
SK> Unix-isms. Does it run on win32 platforms?
Dunno. Never tried it. I'm pretty sure that asyncore/asynchat works
on Windows, but it's possible that some of the socket machinery is too
Unix specific. I don't know what it would take to port it though.
SK> Heh...I'm not expecting something extremely standards
SK> compliant.
Actually, RFC 821 specifies a "minimal compliant server" and that's
what smtpd.py implements. It /only/ accepts the minimal commands (I
forget what they are), and hasn't been updated to RFC 2821.
SK> Actually, all I really want, is something to act
SK> as smtp.localhost so that I can set my mail client up to send
SK> mail to 127.0.0.1, and have the raw messages written to a
SK> file.
That should be easy to do. Of course, it'd also be easy to configure
a classic MTA to do something like this.
SK> Then I will take a script to pipe them to this smtp server I'm
SK> having to use temporarily (I want to set the From on the SMTP
SK> envelope, so that I can use my usual "from" address...ISPs can
SK> be so restrictive...been without my usual DSL for over 60
SK> hours now, and using temporary dialup with port 25 blocked. :(
Ug.
SK> If I have time this afternoon, I might try a hand at writing
SK> myself something simple. I'm just being cautious, as I've not
SK> done any sockets programming up to this point.
Gotcha. I think the framework in smtpd.py should be fairly easy to
customize, if you're familiar enough with the asyncore/asynchat
modules.
-Barry
More information about the Python-list
mailing list