I have an error trying to set the mailer in my Plone v5.0.6.
The settings are provided by my service provider OVH (vastly used in France).
The error message is :
Connection unexpectedly closed: timed out.
in the instance.log, I have a bit more information:
------
2017-06-25T17:12:03 ERROR Plone Unable to send test e-mail.
Traceback (most recent call last):
File "/opt/Plone/buildout-cache/eggs/Products.CMFPlone-5.0.6-py2.7.egg/Products/CMFPlone/controlpanel/browser/mail.py", line 82, in handle_test_action
immediate=True)
File "/opt/Plone/buildout-cache/eggs/Products.MailHost-2.13.2-py2.7.egg/Products/MailHost/MailHost.py", line 237, in send
self._send(mfrom, mto, messageText, immediate)
File "/opt/Plone/buildout-cache/eggs/Products.MailHost-2.13.2-py2.7.egg/Products/MailHost/MailHost.py", line 337, in _send
self._makeMailer().send(mfrom, mto, messageText)
File "/opt/Plone/buildout-cache/eggs/Products.CMFPlone-5.0.6-py2.7.egg/Products/CMFPlone/patches/sendmail.py", line 17, in _catch
return func(*args, **kwargs)
File "/opt/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 "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
(code, msg) = self.getreply()
File "/usr/lib/python2.7/smtplib.py", line 365, in getreply
+ str(e))
SMTPServerDisconnected: Connection unexpectedly closed: timed out
I'm sure the settings are correct, and I managed to contact the SMTP server with telnet from my Plone server:
# telnet ssl0.ovh.net 587
Trying 213.186.33.20...
Connected to ssl0.ovh.net.
Escape character is '^]'.
220-ssl0.ovh.net player770
So this leads me to some problem coming from the Plone stack
Any Idea ?
Thanks,
Jonathan