Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#828 closed enhancement (fixed)

Use SMTP authentication for notifications

Reported by: imontes@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.9
Component: ticket system Version: devel
Severity: normal Keywords: smtp auth login
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The SMTP server I'm using requires to login before using it.
However I couldn't find any options for the trac.ini file to allow the use of an username and password for the smtp server.

Attachments (1)

smtp_login.diff (886 bytes ) - added by Christopher Lenz 19 years ago.
Adds SMTP login to Notify.py

Download all attachments as: .zip

Change History (6)

comment:1 by imontes@…, 20 years ago

oops! I forgot to say that currently when there is an error sending the mail Trac reports it on the page. I think it'll be better to just issue an error/warning in the Log file.

ciao, Ivan

by Christopher Lenz, 19 years ago

Attachment: smtp_login.diff added

Adds SMTP login to Notify.py

comment:2 by Christopher Lenz, 19 years ago

The patch smtp_login.diff adds SMTP login. This is untested code, but should demonstrate how the approach. To use SMTP authentication after applying these changes, you'll need to add the following to your config:

[notification]
...
smtp_user = yourloginname
smtp_password = yourpassword

Note that this stores the password in cleartext in the configuration file. Of course [wiki:TracIni trac.ini}}} should be protected using file system permissions anyway.

comment:3 by anonymous, 19 years ago

It works like a charm

comment:4 by Christopher Lenz, 19 years ago

Component: generalticket system
Milestone: 1.00.9
Resolution: fixed
Status: newclosed

Fixed in [1185].

(Note that the original patch contained a typo… smptp → smtp)

comment:5 by anonymous, 19 years ago

actually the patch should read "smtp_user", not "smptp_user" (same for password)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.