Tryton does not have any email server it uses an external SMTP server to delivery email.
To do so you should configure the server and credentials to be used as already suggested on the thread.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/trytond/sendmail.py", line 39, in sendmail
senderrs = server.sendmail(from_addr, to_addrs, msg.as_string())
File "/usr/lib/python3.8/smtplib.py", line 871, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (451, b'5.7.3 STARTTLS is required to send mail [SN7PR04CA0196.namprd04.prod.outlook.com]', '"Silviano Torres" <[email protected]>')
5118 140458365802240 [2021-03-04 15:38:43,785] CRITICAL trytond.transaction A datamanager raised an exception in tpc_finish, the data might be inconsistant
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/trytond/transaction.py", line 234, in commit
datamanager.tpc_finish(self)
File "/usr/local/lib/python3.8/dist-packages/trytond/sendmail.py", line 126, in tpc_finish
self._server.quit()
File "/usr/lib/python3.8/smtplib.py", line 988, in quit
res = self.docmd("quit")
File "/usr/lib/python3.8/smtplib.py", line 424, in docmd
self.putcmd(cmd, args)
File "/usr/lib/python3.8/smtplib.py", line 371, in putcmd
self.send(str)
File "/usr/lib/python3.8/smtplib.py", line 363, in send
raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first
5118 140458365802240 [2021-03-04 15:38:43,787] ERROR trytond.sendmail fail to send email
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/trytond/sendmail.py", line 39, in sendmail
senderrs = server.sendmail(from_addr, to_addrs, msg.as_string())
File "/usr/lib/python3.8/smtplib.py", line 865, in sendmail
(code, resp) = self.mail(from_addr, esmtp_opts)
File "/usr/lib/python3.8/smtplib.py", line 538, in mail
self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist))
File "/usr/lib/python3.8/smtplib.py", line 371, in putcmd
self.send(str)
File "/usr/lib/python3.8/smtplib.py", line 363, in send
raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first
5118 140458365802240 [2021-03-04 15:38:43,788] CRITICAL trytond.transaction A datamanager raised an exception in tpc_finish, the data might be inconsistant
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/trytond/transaction.py", line 234, in commit
datamanager.tpc_finish(self)
File "/usr/local/lib/python3.8/dist-packages/trytond/sendmail.py", line 126, in tpc_finish
self._server.quit()
File "/usr/lib/python3.8/smtplib.py", line 988, in quit
res = self.docmd("quit")
File "/usr/lib/python3.8/smtplib.py", line 424, in docmd
self.putcmd(cmd, args)
File "/usr/lib/python3.8/smtplib.py", line 371, in putcmd
self.send(str)
File "/usr/lib/python3.8/smtplib.py", line 363, in send
raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first
ese es el error que me arroja.
En lo personal estoy siguiendo las indicaciones dadas y no logro obtener el envio de correos, por el contrario en el servidor cuando intento enviar un correo me arroja el siguiente error:
image1279×271 70.4 KB
{‘[email protected]’: (550, b’ Please turn on SMTP Authentication in your mail client. ([192.168.1.41])
[xxx.xxx.xx.xxx]:37002 is not permitted to relay through this server
without authentication.’)}
[email]
uri = smtp+tls://<username>:<password>@<your_fqdn_server>:587
from = <address>@<domain.ext>
Por lo que parece hay algun problema en el servidor SMPT y no se pueden mandar correo a univalle.edu.co
Debes revisar la configuración de tu correo ya que esto no esta relacionado con Tryton.
Buenos dias, estoy tratando con varias cuentas de correo, ejempo
y sin importar que configuracion ponga siempre me respode
Traceback (most recent call last):
File "/trytond/wsgi.py", line 117, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 47, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 84, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 156, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 204, in _dispatch
transaction.commit()
File "/trytond/transaction.py", line 224, in commit
datamanager.tpc_vote(self)
File "/trytond/sendmail.py", line 120, in tpc_vote
self._server = get_smtp_server(self.uri, strict=self.strict)
File "/trytond/sendmail.py", line 75, in get_smtp_server
server = connector(uri.hostname, uri.port, **extra)
File "/smtplib.py", line 255, in __init__
(code, msg) = self.connect(host, port)
File "/smtplib.py", line 339, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/smtplib.py", line 310, in _get_socket
return socket.create_connection((host, port), timeout,
File "/socket.py", line 808, in create_connection
raise err
File "/socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
Fault: [Errno 111] Connection refused