← Back to team overview

bzr-windows team mailing list archive

Progress and help configuring bzr-email-notifier for Windows

 

Hi.  I apologize for cross-posting; hopefully two lists is not considered
excessive.

I have a small side-project to get bzr-email-notifier (
https://launchpad.net/bzr-email-notifier) working on Windows.  I'll be
honest... I've put only about three hours into this and am asking a question
before I get in too deep.

My short question is, what is the right way to run bzr-email-notifier
against a mail server which does not support SMTP TLS?

Now, here is the long version, which I offer in case the details help anyone
else.

First, I made sure I could get bzr-email-notifier (ben for short) running on
ubuntu with bzr 2.0.0.
It took some tricks (
https://bugs.launchpad.net/bzr-email-notifier/+bug/393037), but it worked,
and Nicholas may have made the patches already.
I used my personal ISP's email server to send the mail -- no problem.

Now, I am trying to get it going on Windows, where I need to use one of our
company email servers.

The first thing to know is that ben uses bzrlib, so if you have used the
stand-alone bzr installer, you will also need to install the python-based
version.
Then I installed Cheetah 2.2.2.  There are a few tips on getting Cheetah
working on Windows at
http://www.devshed.com/c/a/Python/Templating-with-Cheetah/.

Next, I edited the example.conf file (used by ben) to point to my company
email server.  This is where I am stuck right now.  Apparently, our mail
server does not speak TLS.  So when configure.py (which gets run every time
by ben) makes a call to starttls on an SMTP object (in _create_connection in
configure.py), smtp.py (at least for the python 2.6.2 I'm using) throws an
exception and reports "STARTTLS extension not supported by server" and no
email is sent.

I do not know why our mailserver does not support TLS.  It probably should,
but I do not administer it.  So I have to live with it.

I speculate from some posts that this TLS problem may not be present in
earlier versions of python's smtp.py, but I'd really liek to keep using
python 2.6.2 on my windows boxes.  So any suggestions on how to work around
it but keep using python *and* keeping our mailserver setup would be most
welcome.

~M

Follow ups