Hi All,
I had config Odoo v10 on Ubuntu 14.04 but aliases mail can't receive new incoming e-mail log always said:
ERROR vmb odoo.http: Routing mail with Message-Id <CAED=Uy9irZHshb7hfN-y4EmQCh3gtqh1PLCuEGGbSBHMMGP2xg@mail.gmail.com>: route (u'res.users', 0, {}, 1, mail.alias(11,)): model res.users does not accept document creationTraceback (most recent call last): File "/opt/vmb/vmb-server/odoo/http.py", line 118, in dispatch_rpc result = dispatch(method, params) File "/opt/vmb/vmb-server/odoo/service/model.py", line 38, in dispatch res = fn(db, uid, *params) File "/opt/vmb/vmb-server/odoo/service/model.py", line 119, in wrapper return f(dbname, *args, **kwargs) File "/opt/vmb/vmb-server/odoo/service/model.py", line 182, in execute res = execute_cr(cr, uid, obj, method, *args, **kw) File "/opt/vmb/vmb-server/odoo/service/model.py", line 171, in execute_cr return odoo.api.call_kw(recs, method, args, kw) File "/opt/vmb/vmb-server/odoo/api.py", line 679, in call_kw return call_kw_model(method, model, args, kwargs) File "/opt/vmb/vmb-server/odoo/api.py", line 664, in call_kw_model result = method(recs, *args, **kwargs) File "/opt/vmb/vmb-server/addons/mail/models/mail_thread.py", line 1279, in message_process routes = self.message_route(msg_txt, msg, model, thread_id, custom_values) File "/opt/vmb/vmb-server/addons/mass_mailing/models/mail_thread.py", line 31, in message_route return super(MailThread, self).message_route(message, message_dict, model, thread_id, custom_values) File "/opt/vmb/vmb-server/addons/mail/models/mail_thread.py", line 1154, in message_route update_author=True, assert_model=True, create_fallback=True) File "/opt/vmb/vmb-server/addons/hr/models/mail_thread.py", line 26, in message_route_verify drop_alias=drop_alias) File "/opt/vmb/vmb-server/addons/mail/models/mail_thread.py", line 943, in message_route_verify self._routing_warn(_('model %s does not accept document creation') % model, _('skipping'), message_id, route, assert_model) File "/opt/vmb/vmb-server/addons/mail/models/mail_thread.py", line 836, in _routing_warn raise ValueError(full_message)ValueError: Routing mail with Message-Id <CAED=Uy9irZHshb7hfN-y4EmQCh3gtqh1PLCuEGGbSBHMMGP2xg@mail.gmail.com>: route (u'res.users', 0, {}, 1, mail.alias(11,)): model res.users does not accept document creation2016-12-05 05:32:58,520 30537 INFO vmb werkzeug: 127.0.0.1 - - [05/Dec/2016 05:32:58] "POST /xmlrpc/object HTTP/1.1" 200 -2016-12-05 05:32:58,527 30537 ERROR None odoo.http: need more than 0 values to unpackTraceback (most recent call last): File "/opt/vmb/vmb-server/odoo/http.py", line 118, in dispatch_rpc result = dispatch(method, params) File "/opt/vmb/vmb-server/odoo/service/model.py", line 24, in dispatch (db, uid, passwd ) = params[0:3]ValueError: need more than 0 values to unpack
Then it fall to error@xxx.xxx:
parameters========== traceback========= Python 2.7.6: /usr/bin/pythonMon Dec 5 12:32:58 2016 A problem occurred in a Python script. Here is the sequence offunction calls leading up to the error, in the order they occurred. /opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py in main() 158 159 try: 160 email_parser.parse(msg_txt, custom_values, options.save_original or False) 161 except Exception: 162 msg = '\n'.join([email_parser = email_parser.parse = >msg_txt = 'From lamev.inc@gmail.com Mon Dec 5 12:32:58 20...ules\n\n--001a11474ba4e6af3a0542e29d0c--\n'custom_values = {}options = options.save_original = FalsebuiltinFalse = False /opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py in parse(self=, message='From lamev.inc@gmail.com Mon Dec 5 12:32:58 20...ules\n\n--001a11474ba4e6af3a0542e29d0c--\n', custom_values={}, save_original=False) 96 xmlrpclib.Binary(message), 97 custom_values or {}, 98 save_original or False) 99 100 def configure_parser(): save_original = FalsebuiltinFalse = False /opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py in __call__(self=, *request=('mail.thread', 'message_process', 'crm.lead', , {}, False), **kwargs={}) 73 74 def __call__(self, *request, **kwargs): 75 return self.rpc.execute(self.dbname, self.user_id, self.passwd, *request, **kwargs) 76 77 class EmailParser(object): self = self.rpc = self.rpc.execute = self.dbname = 'vmb'self.user_id = 1self.passwd = 'xxxxx'request = ('mail.thread', 'message_process', 'crm.lead', , {}, False)kwargs = {} /usr/lib/python2.7/xmlrpclib.py in __call__(self=, *args=('vmb', 1, 'xxxxxx', 'mail.thread', 'message_process', 'crm.lead', , {}, False)) 1231 return _Method(self.__send, "%s.%s" % (self.__name, name)) 1232 def __call__(self, *args): 1233 return self.__send(self.__name, args) 1234 1235 ##self = self.__send = self.__name = args = ('vmb', 1, 'xxxxxx', 'mail.thread', 'message_process', 'crm.lead', , {}, False) /usr/lib/python2.7/xmlrpclib.py in __request(self=, methodname='execute', params=('vmb', 1, 'xxxxxx', 'mail.thread', 'message_process', 'crm.lead', , {}, False)) 1585 self.__handler, 1586 request, 1587 verbose=self.__verbose 1588 ) 1589 verbose undefinedself = self.__verbose = /usr/lib/python2.7/xmlrpclib.py in request(self=, host='localhost:8068', handler='/xmlrpc/object', request_body="\n\ne...oolean>\n\n\n\n", verbose=0) 1271 for i in (0, 1): 1272 try: 1273 return self.single_request(host, handler, request_body, verbose) 1274 except socket.error, e: 1275 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE): self = self.single_request = >host = 'localhost:8068'handler = '/xmlrpc/object'request_body = "\n\ne...oolean>\n\n\n\n"verbose = 0 /usr/lib/python2.7/xmlrpclib.py in single_request(self=, host='localhost:8068', handler='/xmlrpc/object', request_body="\n\ne...oolean>\n\n\n\n", verbose=0) 1304 if response.status == 200: 1305 self.verbose = verbose 1306 return self.parse_response(response) 1307 except Fault: 1308 raiseself = self.parse_response = >response = /usr/lib/python2.7/xmlrpclib.py in parse_response(self=, response=) 1480 p.close() 1481 1482 return u.close() 1483 1484 ##u = u.close = > /usr/lib/python2.7/xmlrpclib.py in close(self=) 792 raise ResponseError() 793 if self._type == "fault": 794 raise Fault(**self._stack[0]) 795 return tuple(self._stack) 796 global Fault = self = self._stack = [{'faultCode': 'Routing mail with Message-Id : __class__ = __delattr__ = __dict__ = {'faultCode': 'Routing mail with Message-Id __getattribute__ = __getitem__ = __getslice__ = __hash__ = __init__ = > __module__ = 'xmlrpclib' __new__ = __reduce__ = __reduce_ex__ = __repr__ = > __setattr__ = __setstate__ = __sizeof__ = __str__ = > __subclasshook__ = __unicode__ = __weakref__ = None args = () faultCode = 'Routing mail with Message-Id
Any help will be greatly appreciated
Post the user and alias config details.
Hi Taher Giyori,
Thanks for you reply. I used localhost postfix MTA send to command delivery "openerp_mailgate: "|/path/to/openerp-mailgate.py --host=localhost -u 1 -p PASSWORD -d xyy", then add alias for administrator account, when testing email from outside send to alias mail address can't received, this is mail postmaster send to the sender:
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<vmb_mailgate@localhost>: Command died with status 1:
"/opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py
--host=localhost --port=8068 -u 1 -p xxxxxxx -d xxx". Command output:
Traceback (most recent call last): File
"/opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py", line
180, in <module> main() File
"/opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py", line
175, in main subject, msg, files=[('message.txt', msg_txt)] File
"/opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py", line
59, in send_mail smtp = smtplib.SMTP(server, port=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 553, in create_connection for res
in getaddrinfo(host, port, 0, SOCK_STREAM): socket.gaierror: [Errno -2]
Name or service not known
Final-Recipient: rfc822; vmb_mailgate@localhost
Original-Recipient: rfc822;lam.nh@xxxx.vn
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix; Traceback (most recent call last): File
"/opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py", line
180, in <module> main() File
"/opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py", line
175, in main subject, msg, files=[('message.txt', msg_txt)] File
"/opt/vmb/vmb-server/addons/mail/static/scripts/openerp_mailgate.py", line
59, in send_mail smtp = smtplib.SMTP(server, port=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 553, in create_connection for res
in getaddrinfo(host, port, 0, SOCK_STREAM): socket.gaierror: [Errno -2]
Name or service not known
Thanks for you support.
If I change default config in oepenerp-mailgate.py, new email to alias email address will fall to error@domain.com, then error mail go to info@domain.com.
Don't know why but in v8 it's work smoothly.
Can you send/receive using other mail clients? I need to verify if the server settings is correct.
Hi,
Thanks you. Yes I have to tryout the outlook too, the same way.
I mean outlook.com. Thanks
Sorry :), the same way with trial online Odoo SAAS, postmaster said the address is unavailable. Thanks you.