I still can't get Plone setup to send emails. I have done this before with previous setups using local host.
Is anyone else facing this challenge setting up smtp?
I learned from @davisagli that plone6 installed via docker does not have smtp code included. Might that be the issue and would installing smtp solve my issues? (see below for details). I realize the localhost is different from external smtp server; however, the error below doesn't seem to differentiate from localhost or external host
if installing would solve, how would i do that?
any help would be appreciated. I'm dead in the water with my site until I get this fixed.
I've tied:
- Local Host
- Google smtp
- two emails servers setup on different accounts and different domains.
error messages i've gotten:
- Error: Unable to send test e-mail [Errno 101] Network is unreachable. (when 'localhost' is used)
- Error: Unable to send test e-mail Connection unexpectedly closed: timed out. (Note: this is the error in
the log below
I have tried many setups - Configuring Plone email SMTP when ssl is required - #4 by davisagli
More Details
Error from log
2023-04-14 00:00:29 ERROR [Plone:89][waitress-0] Unable to send test e-mail.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/smtplib.py", line 398, in getreply
line = self.file.readline(_MAXLINE + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 706, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/Products/CMFPlone/controlpanel/browser/mail.py", line 80, in handle_test_action
mailhost.send(message,
File "/app/lib/python3.11/site-packages/Products/MailHost/MailHost.py", line 215, in send
self._send(mfrom, mto, msg, immediate)
File "/app/lib/python3.11/site-packages/Products/MailHost/MailHost.py", line 322, in _send
self._makeMailer().send(mfrom, mto, messageText)
File "/app/lib/python3.11/site-packages/zope/sendmail/mailer.py", line 89, in send
self.vote(fromaddr, toaddrs, message)
File "/app/lib/python3.11/site-packages/zope/sendmail/mailer.py", line 62, in vote
self.connection = self.smtp(self.hostname, str(self.port))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/smtplib.py", line 343, in connect
(code, msg) = self.getreply()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/smtplib.py", line 401, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed: "
smtplib.SMTPServerDisconnected: Connection unexpectedly closed: timed out