The smtp server does not work with the tryton version 5.2


After make a tick on send email on Level field when i try to create a dunning,there was an error shown below ,otherwise i have configured my smtp server on trytond.conf , my tryton version is 5.2.

Is the version have a relation about that !?because when i have tested that on my own version 6.0 it works normally!

this is the error:

Traceback (most recent call last):
File “/trytond/”, line 104, in dispatch_request
return endpoint(request, **request.view_args)
File “/trytond/protocols/”, line 47, in rpc
return methods.get(request.rpc_method, _dispatch)(
File “/trytond/”, line 72, in auth_required
return wrapped(*args, **kwargs)
File “/trytond/protocols/”, line 131, in wrapper
return func(request, pool, *args, **kwargs)
File “/trytond/protocols/”, line 209, in _dispatch
File “/trytond/”, line 221, in commit
File “/trytond/”, line 101, in tpc_vote
self._server = get_smtp_server(self.uri)
File “/trytond/”, line 59, in get_smtp_server
server = connector(uri.hostname, uri.port, **extra)
File “/”, line 255, in init
(code, msg) = self.connect(host, port)
File “/”, line 339, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/”, line 310, in _get_socket
return socket.create_connection((host, port), timeout,
File “/”, line 808, in create_connection
raise err
File “/”, line 796, in create_connection
OSError: [Errno 101] Network is unreachable

thanks in advance.

Your SMTP server configured is not reachable. It is a configuration or network issue.

I strongly suggest you to use only supported tryton series.

my network is fine and about the configuration of trytond.conf i have copy just the workful statements that i already used for my tryton 6.0 and work normally.

this is my own configuration (settings smtp) on trytond.conf

uri = smtp+tls://
from =

is there other settings i should made !

The error says it’s a network issue. Please try to telnet the Gmail service from your server before any further validation.


what do you mean by telnet the Gmail service from the server

If you’re in a linux server:
$telnet 587