SMTP Connection unexpectedly closed

classic Classic list List threaded Threaded
2 messages Options
jblaney jblaney
Reply | Threaded
Open this post in threaded view
|

SMTP Connection unexpectedly closed

Sorry if this has been answered before, I've really been looking for a solution for this for a while now. I'm trying to set up Plone to send email through my gmail smtp. I've configured it on gmail and I've made sure that python was compiled with ssl, but when I type in the information it says that it keeps unexpectedly timing out. I'm attaching the traceback. any help would be GREATLY appreciated.

2014-06-26 11:21:29 ERROR Plone Unable to send test e-mail.
Traceback (most recent call last):
  File "/Applications/Plone/buildout-cache/eggs/plone.app.controlpanel-2.3.8-py2.7.egg/plone/app/controlpanel/mail.py", line 207, in handle_test_action
    immediate=True)
  File "/Applications/Plone/buildout-cache/eggs/Products.MailHost-2.13.1-py2.7.egg/Products/MailHost/MailHost.py", line 237, in send
    self._send(mfrom, mto, messageText, immediate)
  File "/Applications/Plone/buildout-cache/eggs/Products.MailHost-2.13.1-py2.7.egg/Products/MailHost/MailHost.py", line 337, in _send
    self._makeMailer().send(mfrom, mto, messageText)
  File "/Applications/Plone/buildout-cache/eggs/Products.CMFPlone-4.3.3-py2.7.egg/Products/CMFPlone/patches/sendmail.py", line 12, in _catch
    return func(*args, **kwargs)
  File "/Applications/Plone/buildout-cache/eggs/zope.sendmail-3.7.5-py2.7.egg/zope/sendmail/mailer.py", line 46, in send
    connection = self.smtp(self.hostname, str(self.port))
  File "/Applications/Plone/Python-2.7/lib/python2.7/smtplib.py", line 251, in __init__
    (code, msg) = self.connect(host, port)
  File "/Applications/Plone/Python-2.7/lib/python2.7/smtplib.py", line 312, in connect
    (code, msg) = self.getreply()
  File "/Applications/Plone/Python-2.7/lib/python2.7/smtplib.py", line 360, in getreply
    + str(e))
SMTPServerDisconnected: Connection unexpectedly closed: timed out
Mikko Ohtamaa Mikko Ohtamaa
Reply | Threaded
Open this post in threaded view
|

Re: SMTP Connection unexpectedly closed

Hi,

As a workaround I suggest don't use Gmail, but try Mandrill instead (free too).

Here are almost bullet-proof instructions I have used for many sites with success:

http://opensourcehacker.com/2013/03/26/using-postfix-and-free-mandrill-email-service-for-smtp-on-ubuntu-linux-server/

Cheers,
Mikko


On 26 June 2014 21:34, jblaney <[hidden email]> wrote:
Sorry if this has been answered before, I've really been looking for a
solution for this for a while now. I'm trying to set up Plone to send email
through my gmail smtp. I've configured it on gmail and I've made sure that
python was compiled with ssl, but when I type in the information it says
that it keeps unexpectedly timing out. I'm attaching the traceback. any help
would be GREATLY appreciated.

2014-06-26 11:21:29 ERROR Plone Unable to send test e-mail.
Traceback (most recent call last):
  File
"/Applications/Plone/buildout-cache/eggs/plone.app.controlpanel-2.3.8-py2.7.egg/plone/app/controlpanel/mail.py",
line 207, in handle_test_action
    immediate=True)
  File
"/Applications/Plone/buildout-cache/eggs/Products.MailHost-2.13.1-py2.7.egg/Products/MailHost/MailHost.py",
line 237, in send
    self._send(mfrom, mto, messageText, immediate)
  File
"/Applications/Plone/buildout-cache/eggs/Products.MailHost-2.13.1-py2.7.egg/Products/MailHost/MailHost.py",
line 337, in _send
    self._makeMailer().send(mfrom, mto, messageText)
  File
"/Applications/Plone/buildout-cache/eggs/Products.CMFPlone-4.3.3-py2.7.egg/Products/CMFPlone/patches/sendmail.py",
line 12, in _catch
    return func(*args, **kwargs)
  File
"/Applications/Plone/buildout-cache/eggs/zope.sendmail-3.7.5-py2.7.egg/zope/sendmail/mailer.py",
line 46, in send
    connection = self.smtp(self.hostname, str(self.port))
  File "/Applications/Plone/Python-2.7/lib/python2.7/smtplib.py", line 251,
in __init__
    (code, msg) = self.connect(host, port)
  File "/Applications/Plone/Python-2.7/lib/python2.7/smtplib.py", line 312,
in connect
    (code, msg) = self.getreply()
  File "/Applications/Plone/Python-2.7/lib/python2.7/smtplib.py", line 360,
in getreply
    + str(e))
SMTPServerDisconnected: Connection unexpectedly closed: timed out




--
View this message in context: http://plone.293351.n2.nabble.com/SMTP-Connection-unexpectedly-closed-tp7571809.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-setup



--
Mikko Ohtamaa
http://opensourcehacker.com
http://twitter.com/moo9000

_______________________________________________
Setup mailing list
[hidden email]
https://lists.plone.org/mailman/listinfo/plone-setup