2

当我将传出电子邮件的正确配置添加到我的 openerp 服务器时,我总是遇到连接超时问题:

2013-10-10 08:22:35,119 20541 INFO MyCompany werkzeug: 192.168.1.50 - - [10/Oct/2013 08:22:35] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2013-10-10 08:22:35,191 20541 INFO MyCompany werkzeug: 192.168.1.50 - - [10/Oct/2013 08:22:35] "POST /web/menu/load_needaction HTTP/1.1" 200 -
2013-10-10 08:22:35,395 20541 INFO MyCompany werkzeug: 192.168.1.50 - - [10/Oct/2013 08:22:35] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2013-10-10 08:22:35,405 20541 INFO ? werkzeug: 192.168.1.50 - - [10/Oct/2013 08:22:35] "GET /web/static/src/img/form_sheetbg.png HTTP/1.1" 304 -
2013-10-10 08:22:35,626 20541 INFO ? werkzeug: 192.168.1.50 - - [10/Oct/2013 08:22:35] "GET /web/static/src/img/icons/gtk-network.png HTTP/1.1" 304 -
2013-10-10 08:22:35,631 20541 INFO MyCompany werkzeug: 192.168.1.50 - - [10/Oct/2013 08:22:35] "POST /web/dataset/search_read HTTP/1.1" 200 -
2013-10-10 08:22:38,117 20541 ERROR MyCompany openerp.netsvc: Connection Test Failed!
Hier sehen Sie, was wir an Stelle dessen bekommen haben:
 110
Die Wartezeit für die Verbindung ist abgelaufen
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_mail_server.py", line 215, in test_smtp_connection
    raise osv.except_osv(_("Connection Test Failed!"), _("Here is what we got instead:\n %s") % tools.ustr(e))
except_osv: (u'Connection Test Failed!', u'Hier sehen Sie, was wir an Stelle dessen bekommen haben:\n 110\nDie Wartezeit f\xfcr die Verbindung ist abgelaufen')

也许我的路由仍然有问题,但 POP 服务器工作正常。有谁知道有什么问题?

我也用googlemail尝试过,但没有成功:/谢谢

4

3 回答 3

1

如果您在代理下。你可能应该使用这样的东西

在此处输入图像描述

首先不要提供用户名和密码,以检查 smtp 服务器名称是否正确且处于活动状态。如果成功,请提供用户名和密码并再次检查。

实用程序:要找出域名的 ip,我发现这很有用http://www.hcidata.info/host2ip.cgi

干杯!!

于 2013-10-11T08:52:01.290 回答
0

我认为你得到的错误是因为错误的凭证,请确保它是正确的。请看屏幕截图,希望它会有所帮助。

在此处输入图像描述

于 2013-10-11T08:27:08.527 回答
0

我弄清楚为什么会出现问题。由于某种原因,当 linux 上的主机名设置不正确时,电子邮件的传递不起作用。更改 /etc/hosts 和 /etc/hostname 后,电子邮件的发送工作了!

感谢你的帮助!

于 2013-10-16T18:12:48.650 回答