I have created email user named “trial” using edit user under Virtualmin. The IMAP / POP3 / FTP login is trial.domain and the mail address is trial@domain.com.
When I use email client like Thunderbird to connect to that account, it always fail. After I check the mail.log, it shows
Virtualmin has several options for how to create user names. The default is “name.domain”; others include “name” (and only append .domain to prevent a clash), name@domain.tld (which requires some trickery and actually creates two users with the same UID and home directory with the names name.domain.tld and name@domain.tld, because some system tools cannot deal with an @ in the username), and maybe a couple of others. But, those are the most common. You can configure that in Server Templates->template name->Mail for domain->Format for usernames that include domain.
The full username you should use to login via email is always provided on the Edit Users page, in the IMAP / POP3 / FTP login column.