SMTP authentication for server e-mails

/etc/tryton/trytond.conf

[email]
uri = smtp+tls://smtp.example.net:587

Where and how can I specify username and password?

from = tryton@example.net

How can I specify a from name such as “Your ERP tryton@example.net” ?

As explained in the documentation, the URI follow https://tools.ietf.org/html/draft-earhart-url-smtp-00 and in the 2 paragraph, it is said that username and authentication can be specify in <url-server> like in classic URL: smtp://username:password@localhost.

See Configuration file for Tryton — trytond 5.5 documentation
It follows the https://tools.ietf.org/html/rfc822.html format.

Thank you. I hope this will work:

uri = smtp+tls://tryton@example.net:1234@smtp.example.net:587