Trying to submit a bug through my Exim server configured with TLS and
AUTH I still get this error:

  SMTP send failure: SMTP AUTH extension not supported by server.

which is not true unless TLS has not been started by the client. In the
server log I can see:

  2006-09-28 09:58:05 SMTP protocol error in "STARTTLS"
H=pad82.poznan.sdi.tpnet.pl [212.160.27.82] STARTTLS command used when
not advertised

that means the client have tried to issue STARTTLS before any EHLO.

In my patch, this problem was corrected by adding another conn.ehlo()
b_e_f_o_r_e conn.starttls(), and that was not included in any package
version up to now.

I enclose a new patch made against version 3.29.5.

If you think this problem should be resolved in smtplib rather than
reportbug itself, please reassign the bug to the python2.4 package.

Janusz
--- reportbug-3.29.5/reportbug_submit.py.starttls	2006-08-22 18:50:17.000000000 +0200
+++ reportbug-3.29.5/reportbug_submit.py	2006-09-28 14:06:47.000000000 +0200
@@ -357,6 +357,7 @@ def send_report(body, attachments, mua, 
             try:
                 conn = smtplib.SMTP(smtphost)
                 if smtptls:
+                    conn.ehlo()
                     conn.starttls()
                     conn.ehlo()
                 if smtpuser:

Reply via email to