方法一(推荐): 修改代码/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_mail_server.py #425 line: #mail_server_ids = self.search(cr, SUPERUSER_ID, [], order='sequence', limit=1) mail_server_ids = self.search(cr, SUPERUSER_ID, [('smtp_user','=',smtp_from)…