Plone vagrant mailer问题

时间:2015-11-02 13:58:21

标签: plone

我在流浪汉下运行Plone 5.0。由于某种原因,邮件被阻止并返回ErrNo 111.我已经在两台不同的机器上进行了测试,我可以在两台机器上进行复制。流浪的安装程序应该为无头ubuntu提供一个smtp并设置正确的端口。

错误:

File "/home/vagrant/Plone/buildout-cache/eggs/Products.CMFPlone-5.0-py2.7.egg/Products/CMFPlone/controlpanel/browser/mail.py", line 83, in handle_test_action
    immediate=True)
  File "/home/vagrant/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 "/home/vagrant/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 "/home/vagrant/Plone/buildout-cache/eggs/Products.CMFPlone-5.0-py2.7.egg/Products/CMFPlone/patches/sendmail.py", line 17, in _catch
    return func(*args, **kwargs)
  File "/home/vagrant/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 316, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 291, in _get_socket
    return socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

话虽如此,我该如何设置呢?

0 个答案:

没有答案