Nodemailer failed with authentication

SYSTEM INFORMATION
OS type and version: CentOS Linux 7.9.2009
Webmin version: 1.981
Virtualmin version: 6.17
Related products version: RECOMMENDED

Hello, dears.
Hope you’re having a great day.
I installed virtualmin on my VPS, and tested to send an email using usermin.
But when I try to send email using nodemailer it shows authentication failed error.
What can I do to fix this issue?
Regards.