Edgewall Software

Opened 18 years ago

Last modified 18 years ago

#2921 closed defect

Failure sending notification — at Initial Version

Reported by: xavi@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm getting the following error when adding a new ticket or changing an existing one. I'm running 0.9.4 an my trac.ini [notification] section looks like:

[notification] always_notify_owner = true smtp_always_cc = xbeumala@… smtp_password = ctvdev05 smtp_enabled = true smtp_replyto = xbeumala@… smtp_port = 25 always_notify_reporter = true always_notify_owner = true smtp_server = mail.communi.tv smtp_from = dev@… smtp_user = dev@…

Here's the error.

21:59:03 Trac[web_ui] ERROR: Failure sending notification on change to ticket #6: (-2, 'Name or service not known') Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 352, in _do_save

tn.notify(ticket, newticket=False, modtime=now)

File "/usr/lib/python2.3/site-packages/trac/Notify.py", line 211, in notify

NotifyEmail.notify(self, ticket.id, subject)

File "/usr/lib/python2.3/site-packages/trac/Notify.py", line 108, in notify

Notify.notify(self, resid)

File "/usr/lib/python2.3/site-packages/trac/Notify.py", line 45, in notify

self.begin_send()

File "/usr/lib/python2.3/site-packages/trac/Notify.py", line 116, in begin_send

self.server = smtplib.SMTP(self.smtp_server, self.smtp_port)

File "/usr/lib/python2.3/smtplib.py", line 254, in init

addr = socket.gethostbyname(socket.gethostname())

gaierror: (-2, 'Name or service not known')

I've been looking into another similar tickets, but doesn't seems to work for me.

Thanks a lot for your great work!

X.

Change History (0)

Note: See TracTickets for help on using tickets.