Ticket #2970 (closed enhancement: fixed)
Opened 6 years ago
Last modified 6 years ago
TLS notifications
| Reported by: | anonymous | Owned by: | eblot |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10 |
| Component: | ticket system | Version: | devel |
| Severity: | normal | Keywords: | TLS email notification |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
I had been searching on google for a while, but it's troublesome to try and find anything for Trac, as it will find other projects, so I found a lot of projects adding TLS support, but nothing to do with Trac itself, so here's my question:
Could TLS support for notifications be given as a patch, and hopefully later built into a Trac version, it would be a very useful feature for, using myself as an example, sending E-Mail notifications via a SMTP server using TLS, such as GMail.
Attachments
Change History
comment:1 Changed 6 years ago by anonymous
- Type changed from defect to enhancement
comment:2 Changed 6 years ago by eblot
- Keywords email notification added; GMail Notifications removed
Changed 6 years ago by eblot
- Attachment TLS-support.patch added
Preliminary TLS support for email notifications
comment:3 Changed 6 years ago by eblot
- Owner changed from jonas to eblot
- Status changed from new to assigned
I've added a patch to support TLS/SSL for email notification.
You obviously need SSL support w/ your Python distribution.
I've tested the patch w/ GMail SMTP server. It worked for me.
I recommend to use the "QP" (quoted printable) encoding, as the pure Base64 encoding may be rejected as spam by some server.
To enable the TLS feature, add the following line in your trac.ini file
[notification] ; enable TLS use_tls = true ; optional: use quoted printable mime_encoding = qp
comment:4 Changed 6 years ago by eblot
- Resolution set to fixed
- Status changed from assigned to closed
Should be implemented in [3336].
I ran a batch of tests with GMail and it seems to work fine. I do not have any other TLS-enabled server available, please re-open this ticket if TLS support does not work with other servers.
comment:5 Changed 6 years ago by eblot
- Milestone set to 0.10
- Version changed from none to devel



#3125 marked as a dup.