Notification emails aren't sent

8 views
Skip to first unread message

Jon Drukman

unread,
Nov 23, 2009, 5:56:19 PM11/23/09
to Trac Users
I'm trying to debug why notification mails aren't getting sent.
Here's my configuration:

[notification]
always_notify_owner = true
always_notify_reporter = true
always_notify_updater = true
mime_encoding = base64
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = true
smtp_from = tr...@thismoment.com
smtp_password =
smtp_port = 587
smtp_replyto = tr...@thismoment.com
smtp_server = localhost
smtp_subject_prefix = __default__
smtp_user =
use_public_cc = false
use_short_addr = false
use_tls = false

The mail server is postfix 2.6.3. Whenever trac tries to send a
message, this appears in the maillog:

Nov 23 14:51:48 tm-dev1 postfix/smtpd[5447]: connect from localhost
[127.0.0.1]
Nov 23 14:51:48 tm-dev1 postfix/smtpd[5447]: lost connection after
CONNECT from localhost[127.0.0.1]
Nov 23 14:51:48 tm-dev1 postfix/smtpd[5447]: disconnect from localhost
[127.0.0.1]

How can I debug what's happening in the smtp conversation?

Jon Drukman

unread,
Nov 23, 2009, 6:02:46 PM11/23/09
to Trac Users
I was able to get the trac debug log going. Here's the error:

Trac[web_ui] ERROR: Failure sending notification on change to ticket
#4132: gaierror: (-2, 'Name or service not known')

What's it trying to look up?

On Nov 23, 2:56 pm, Jon Drukman <jdruk...@gmail.com> wrote:
> I'm trying to debug why notification mails aren't getting sent.
> Here's my configuration:
>
> [notification]
> always_notify_owner = true
> always_notify_reporter = true
> always_notify_updater = true
> mime_encoding = base64
> smtp_always_bcc =
> smtp_always_cc =
> smtp_default_domain =
> smtp_enabled = true
> smtp_from = t...@thismoment.com
> smtp_password =
> smtp_port = 587
> smtp_replyto = t...@thismoment.com

Jon Drukman

unread,
Nov 23, 2009, 6:10:43 PM11/23/09
to Trac Users
SOLVED: this happens if your server hostname does not have a reverse
DNS entry. i changed it to the FQDN and it works now.
Reply all
Reply to author
Forward
0 new messages