#828 closed enhancement (fixed)
Use SMTP authentication for notifications
Reported by: | 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)
Change History (6)
comment:1 by , 20 years ago
comment:2 by , 20 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:4 by , 20 years ago
Component: | general → ticket system |
---|---|
Milestone: | 1.0 → 0.9 |
Resolution: | → fixed |
Status: | new → closed |
Fixed in [1185].
(Note that the original patch contained a typo… smptp → smtp)
comment:5 by , 20 years ago
actually the patch should read "smtp_user", not "smptp_user" (same for password)
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