Opened 12 years ago

Last modified 11 years ago

#10484 closed defect

SMTPServerDisconnetion while using SMTPS/SSL — at Initial Version

Reported by: Stefano Cailotto Owned by: Michael Renzmann
Priority: high Component: AnnouncerPlugin
Severity: normal Keywords: TracNotification smtps SMTP_SSL SMTPServerDisconnetion
Cc: Trac Release: 0.12

Description

Hello, I'm using the Italian ISP Aruba smtps server to send ticket notifications. I get the following error (email address is obfuscated):

2012-10-15 10:55:50,420 Trac[notification] INFO: Sending notification through SMTP at smtps.aruba.it:465 to [u'xxxxxxxxx@xxxxxxxx']

2012-10-15 11:00:51,398 Trac[web_ui] ERROR: Failure sending notification on creation of ticket #1: SMTPServerDisconnected: Connection unexpectedly closed

After investigating a bit, I discovered that stmps.aruba.it is not compatible with the starttls option, but requires anyway an encrypted connection. For this purpose, smtp server from smtplib must be an instance of SMTP_SSL without setting use_tls in the config page.

Please find the modified version in attachment.

Regards, Stefano

Change History (1)

Changed 12 years ago by Stefano Cailotto

Attachment: notification.py added

Modified version of notification.py

Note: See TracTickets for help on using tickets.