Monthly Archive for May, 2008

Simple SMTP Relayer Built

With the help of two third-party modules (one, two), I was able to build a really simple SMTP relay.  As a server, it listens for email from one of my email accounts.  Then, it determines which SMTP server to connect to based on the account (stored in an INI file) and sends the email.

The SMTP server module that I found doesn’t support ESMTP (and therefore doesn’t support SMTP-AUTH), so I’m going to have to modify it.  Also, there’s no error handling (the server just crashes if something goes wrong), so I need to implement a proper logging system.  I’m guessing that I’ll also need to write a script that continuously restarts the service when it dies.

Baby Steps… Python SMTP Relay Server

Step 1. Find a module that supports SMTP over SSL. Done.

>>> import ssmtplib as s
>>> c = s.SMTP_SSL('outgoing.mit.edu')
>>> c.login('###','###')
(235, '2.0.0 OK Authenticated')
>>> c.ehlo()
(250, 'outgoing.mit.edu Hello ##### [###], pleased to meet you
ENHANCEDSTATUSCODES
PIPELINING
8BITMIME
SIZE 41943040
ETRN
AUTH GSSAPI LOGIN
DELIVERBY
HELP')
>>> c.sendmail('###', '###', "From: ###\r\nTo: ###\r\n \\
Subject: Testing...\r\n\r\nBlah blah blah blah blah...")
{}

Well, that’s only one SMTP server, but yeah. So far so good…

Summer Project List

I think that I should start making a list of tech projects that I need to work on over the summer.

Continue reading ‘Summer Project List’

One Step Closer…

So, I got the NBM from MIT yesterday (proof)!  I spent a few hours reading it this afternoon, trying to keep track of all the stuff that I have to do by the various deadlines.  I signed up for my MIT account, too (jwc@mit.edu was taken, so I just used my last name).

The last material that I need to review is the i3 DVD.  :)

Senior Slump? I wish…

Just a few weeks until school is over!

But it’s not like my life is slowing down right now. I have AP exams for the next two weeks, finals shortly afterwards, and a ton of odds-and-ends to tie up before I say goodbye to high school.

Continue reading ‘Senior Slump? I wish…’