2491: Error sending e-mail notification (111, 'Connection refused')

jsa****@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 17, 2012
What version are you running?
Review board 1.6.3

What's the URL of the page containing the problem?


What steps will reproduce the problem?
1. Enable the Email Notification by Admin
2. Create a draft of review request by a normal user.
2. Add summary and some description info, and the reviewers.
3. Publish it.

What is the expected output? What do you see instead?
The review request was published successfully. But the reviewers didn't receive the Email.

What operating system are you using? What browser?
CentOS release 5.6, Firefox 10.0

Please provide any additional information below:
In one Review board server, the email notification is OK.
But in this one, it can't work.
I enabled the log in Review board. The error info is as below.

2012-02-16 22:28:17,105 - ERROR - Error sending e-mail notification with subject 'Review Request: test for newServerTest.' on behalf of 'xxx@nnhnh.com' to 'yyy@nnhnh.com': (111, 'Connection refused')
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.6.3-py2.4.egg/reviewboard/notifications/email.py", line 236, in send_review_mail
    message.send()
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/core/mail/message.py", line 251, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/core/mail/backends/smtp.py", line 79, in send_messages
    new_conn_created = self.open()
  File "/usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/core/mail/backends/smtp.py", line 42, in open
    local_hostname=DNS_NAME.get_fqdn())
  File "/usr/lib/python2.4/smtplib.py", line 244, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.4/smtplib.py", line 306, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

Please give your advices. Thank you!
chipx86
#1 chipx86
Sounds like a mail server configuration error. Make sure you have the settings you expect and that that RB server is allowed to send mail through that mail server.
david
#2 david
  • +SetupIssue