I've configured and setup my trac to send notifications via gmail's
smtp server but it simply doesn't work. In the log file I see that it
chokes upon authentication:
2007-03-06 01:09:38,612 Trac[web_ui] ERROR: Failure sending
notification on creation of ticket #2: SMTP AUTH extension not
supported by server.
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/ticket/web_ui.py",
line 196, in _do_create
tn.notify(ticket, newticket=True)
File "/usr/local/lib/python2.4/site-packages/trac/ticket/
notification.py", line 129, in notify
NotifyEmail.notify(self, ticket.id, subject)
File "/usr/local/lib/python2.4/site-packages/trac/notification.py",
line 216, in notify
Notify.notify(self, resid)
File "/usr/local/lib/python2.4/site-packages/trac/notification.py",
line 114, in notify
self.begin_send()
File "/usr/local/lib/python2.4/site-packages/trac/notification.py",
line 287, in begin_send
self.server.login(self.user_name, self.password)
File "/usr/local/lib/python2.4/smtplib.py", line 550, in login
raise SMTPException("SMTP AUTH extension not supported by
server.")
SMTPException: SMTP AUTH extension not supported by server.
The relevant section of my trac.ini says (sensitive info put in angle
brackets):
[notification]
always_notify_owner = true
always_notify_reporter = true
always_notify_updater = true
mime_encoding = qp
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain = <my domain>
smtp_enabled = true
smtp_from = trac_notifier@<my server>
smtp_password = <my gmail password>
smtp_port = 25
smtp_replyto = noreply@<my server>
smtp_server = smtp.google.com
smtp_subject_prefix = __default__
smtp_user = <my gmail username>
use_public_cc = true
use_short_addr = true
use_tls = true
Username and password are definitely correct as I use the identical
account for system mail via msmtp, also, if you take the relevant
python code (lines 277-287) and execute it in isolation from the
python shell everything works (???):
import smtplib
s = smtplib.SMTP('smtp.gmail.com')
s.ehlo()
s.starttls()
s.ehlo()
s.login('<my gmail username>', '<my gmail password>')
What could be wrong? I'm close to giving up :-(
I'm on python 2.4.3 by the way with trac 0.10.3.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---