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 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 — Tryton server
It follows the RFC 822 - STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES format.

Thank you. I hope this will work:

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