SMTP Fails

16 views
Skip to first unread message

Philippe Langevin

unread,
Jun 14, 2019, 2:54:20 PM6/14/19
to Review Board Community
Hi there !

I'm currently testing Review Board and I cant make the whole email thing to work at all.

I've setup three other tools without problems but they are all on Windows (I run ReviewBoard (w PowerPack) on the bitnami image for tests).

The Mail Server we have is only an SMTP relay without the need to have a username password.

When I try to send the test EMail (In the E-Mail Settings page) or a "Review Created" Email, I have the following log:

2019-06-14 22:38:47,059 - ERROR -  - root - Failed to send test e-mail.
Traceback (most recent call last):
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/reviewboard/admin/forms.py", line 736, in save
    fail_silently=False)
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/venv/lib/python2.7/site-packages/django/core/mail/__init__.py", line 50, in send_mail
    connection=connection).send()
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/venv/lib/python2.7/site-packages/django/core/mail/message.py", line 276, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 87, in send_messages
    new_conn_created = self.open()
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 48, in open
    local_hostname=DNS_NAME.get_fqdn())
  File "/opt/bitnami/python/lib/python2.7/smtplib.py", line 256, in __init__
    (code, msg) = self.connect(host, port)
  File "/opt/bitnami/python/lib/python2.7/smtplib.py", line 318, in connect
    (code, msg) = self.getreply()
  File "/opt/bitnami/python/lib/python2.7/smtplib.py", line 369, in getreply
    raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
2019-06-14 22:38:47,070 - INFO -  - root - Reloading logging settings
2019-06-14 22:38:47,142 - INFO -  - root - Reloading logging settings
2019-06-14 22:42:08,882 - INFO -  - root - Reloading logging settings
2019-06-14 22:42:08,983 - INFO -  - root - Reloading logging settings
2019-06-14 22:42:13,360 - DEBUG -  - root - DiffParser.parse: Beginning parse of diff, size = 1860496
2019-06-14 22:42:13,907 - DEBUG -  - root - DiffParser.parse: Finished parsing diff.
2019-06-14 22:43:35,261 - WARNING -  - root - Unable to store all filenames in the X-ReviewBoard-Diff-For headers when sending e-mail for review request 7: The header size exceeds the limit of 8192. Remaining headers have been omitted.
2019-06-14 22:43:35,265 - ERROR -  - root - Could not send e-mail message with subject "Review Request 7: Test branches" from
nor...@sender.com to "[u'', u'PHILIPPE LANGEVIN <fake.em...@address.com>', u'Administrator Langevin <fake....@address.com>']"
Traceback (most recent call last):
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/reviewboard/notifications/email/utils.py", line 295, in send_email
    message.send()
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/venv/lib/python2.7/site-packages/django/core/mail/message.py", line 276, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 87, in send_messages
    new_conn_created = self.open()
  File "/opt/bitnami/apps/reviewboardpowerpack/htdocs/venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 48, in open
    local_hostname=DNS_NAME.get_fqdn())
  File "/opt/bitnami/python/lib/python2.7/smtplib.py", line 256, in __init__
    (code, msg) = self.connect(host, port)
  File "/opt/bitnami/python/lib/python2.7/smtplib.py", line 318, in connect
    (code, msg) = self.getreply()
  File "/opt/bitnami/python/lib/python2.7/smtplib.py", line 369, in getreply
    raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed


What show I check next ?


Thank you

Danila Ladner

unread,
Jun 14, 2019, 3:00:03 PM6/14/19
to revie...@googlegroups.com
It's not reviewboard issue. It seem that remote SMTP relay closed the connection. From that server where RB is installed try to send an email from shell using same relay with mailx or whatever.
in smtplib you can also set debug level to 1 to see actual smtp dialogue set_debuglevel(1) is the method.

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/6f021706-2332-4ca3-ba21-2412c0414c26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages