2781: Email Notification Not being sent

arjun.******@gmai***** (Google Code) (Is this you? Claim this profile.)
Oct. 24, 2012
What version are you running?
1.6

What's the URL of the page containing the problem?
Email Notification not being sent

What steps will reproduce the problem?
1. Configured the Email Setting in the EMail tab with Admin access
2. And checked the box for MailNotification for new user registration
3. Register a new user and notification is not got

What is the expected output? What do you see instead?
Email Notification should be got when a new user is created and even when the new Review request is created.

What operating system are you using? What browser?
RHEL 6 and Browser : IE

Please provide any additional information below.

Apache Logs :
[Tue Oct 23 07:39:42 2012] [error] ERROR:root:Error sending e-mail notification with subject 'New Review Board user registration for df' on behalf of '"df c" <arjun.nagaraj@emc.com>' to admin: STARTTLS extension not supported by server.
[Tue Oct 23 07:39:42 2012] [error] Traceback (most recent call last):
[Tue Oct 23 07:39:42 2012] [error]   File "/opt/reviewBoard/apps/reviewboard/lib/ReviewBoard-1.6.11-py2.7.egg/reviewboard/notifications/email.py", line 380, in mail_new_user
[Tue Oct 23 07:39:42 2012] [error]     message.send()
[Tue Oct 23 07:39:42 2012] [error]   File "/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/message.py", line 251, in send
[Tue Oct 23 07:39:42 2012] [error]     return self.get_connection(fail_silently).send_messages([self])
[Tue Oct 23 07:39:42 2012] [error]   File "/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 79, in send_messages
[Tue Oct 23 07:39:42 2012] [error]     new_conn_created = self.open()
[Tue Oct 23 07:39:42 2012] [error]   File "/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 45, in open
[Tue Oct 23 07:39:42 2012] [error]     self.connection.starttls()
[Tue Oct 23 07:39:42 2012] [error]   File "/opt/reviewBoard/python/lib/python2.7/smtplib.py", line 635, in starttls
[Tue Oct 23 07:39:42 2012] [error]     raise SMTPException("STARTTLS extension not supported by server.")
[Tue Oct 23 07:39:42 2012] [error] SMTPException: STARTTLS extension not supported by server.
david
#1 david
It looks like you've selected "Use TLS for authentication" in the settings but your SMTP server doesn't support TLS. Try turning it off.
  • +SetupIssue
#2 arjun.******@gmai***** (Google Code) (Is this you? Claim this profile.)
Hi , 

  I disabled the TLS authentication and tried , but it did not work . The logs show the problem : I am attaching the logs please check it.

[Thu Oct 25 02:05:17 2012] [error] ERROR:root:Error sending e-mail notification with subject 'New Review Board user registration for liu' on behalf of '"LI U" <arjun.nagaraj@emc.com>' to admin: (535, '5.7.0 authentication failed')
[Thu Oct 25 02:05:17 2012] [error] Traceback (most recent call last):
[Thu Oct 25 02:05:17 2012] [error]   File "/opt/reviewBoard/apps/reviewboard/lib/ReviewBoard-1.6.11-py2.7.egg/reviewboard/notifications/email.py", line 380, in mail_new_user
[Thu Oct 25 02:05:17 2012] [error]     message.send()
[Thu Oct 25 02:05:17 2012] [error]   File "/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/message.py", line 251, in send
[Thu Oct 25 02:05:17 2012] [error]     return self.get_connection(fail_silently).send_messages([self])
[Thu Oct 25 02:05:17 2012] [error]   File "/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 79, in send_messages
[Thu Oct 25 02:05:17 2012] [error]     new_conn_created = self.open()
[Thu Oct 25 02:05:17 2012] [error]   File "/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 48, in open
[Thu Oct 25 02:05:17 2012] [error]     self.connection.login(self.username, self.password)
[Thu Oct 25 02:05:17 2012] [error]   File "/opt/reviewBoard/python/lib/python2.7/smtplib.py", line 613, in login
[Thu Oct 25 02:05:17 2012] [error]     raise SMTPAuthenticationError(code, resp)
[Thu Oct 25 02:05:17 2012] [error] SMTPAuthenticationError: (535, '5.7.0 authentication failed')
#3 arjun.******@gmai***** (Google Code) (Is this you? Claim this profile.)
Hi,

   After turning off TLS authentication i faced the similar issue , so i am
pasting the logs for reference.

[Thu Oct 25 02:05:17 2012] [error] ERROR:root:Error sending e-mail
notification with subject 'New Review Board user registration for liu' on
behalf of '"LI U" <arjun.nagaraj@emc.com>' to admin: (535, '5.7.0
authentication failed')
[Thu Oct 25 02:05:17 2012] [error] Traceback (most recent call last):
[Thu Oct 25 02:05:17 2012] [error]   File
"/opt/reviewBoard/apps/reviewboard/lib/ReviewBoard-1.6.11-py2.7.egg/reviewboard/notifications/email.py",
line 380, in mail_new_user
[Thu Oct 25 02:05:17 2012] [error]     message.send()
[Thu Oct 25 02:05:17 2012] [error]   File
"/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/message.py",
line 251, in send
[Thu Oct 25 02:05:17 2012] [error]     return
self.get_connection(fail_silently).send_messages([self])
[Thu Oct 25 02:05:17 2012] [error]   File
"/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/backends/smtp.py",
line 79, in send_messages
[Thu Oct 25 02:05:17 2012] [error]     new_conn_created = self.open()
[Thu Oct 25 02:05:17 2012] [error]   File
"/opt/reviewBoard/apps/django/lib/python2.7/site-packages/django/core/mail/backends/smtp.py",
line 48, in open
[Thu Oct 25 02:05:17 2012] [error]     self.connection.login(self.username,
self.password)
[Thu Oct 25 02:05:17 2012] [error]   File
"/opt/reviewBoard/python/lib/python2.7/smtplib.py", line 613, in login
[Thu Oct 25 02:05:17 2012] [error]     raise SMTPAuthenticationError(code,
resp)
[Thu Oct 25 02:05:17 2012] [error] SMTPAuthenticationError: (535, '5.7.0
authentication failed')
david
#4 david
"authentication failed" means your username and password aren't valid for your mail server.
#5 arjun.******@gmai***** (Google Code) (Is this you? Claim this profile.)
Hi,

 Thanks for the support. I am not able to send the mail. 
Now when i receive the mail, the hyperlink in the mails are pointing to http://localhost/reviewboard/r/4/ . I want this to point to the IP address of the machine where reviewboard is installed. 

Please let me know where i need to modify to make the hyperlink point to correct IP address
david
#6 david
Set the "server URL" in the general settings: http://www.reviewboard.org/docs/manual/1.6/admin/configuration/general-settings/