Opened 12 years ago

Last modified 11 years ago

#10484 closed defect

SMTPServerDisconnetion while using SMTPS/SSL — at Version 1

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

Description (last modified by Ryan J Ollos)

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 (2)

Changed 12 years ago by Stefano Cailotto

Attachment: notification.py added

Modified version of notification.py

comment:1 Changed 12 years ago by Ryan J Ollos

Component: TracHacksAnnouncerPlugin
Description: modified (diff)
Owner: changed from Michael Renzmann to Robert Corsaro
Note: See TracTickets for help on using tickets.