Node Emailer SMTP Error

SYSTEM INFORMATION
OS type and version AlmaLinux 9.6
Usermin version 2.400
Virtualmin version 7.40.0
Theme version 25.01
Apache version 2.4.62
Package updates 9 package updates are available, of which 8 are security updates

I’m facing an error while connecting SMTP with Node Email.

what are the logs saying on SMTP host side?

just a guess, might be related to the SSL certificate, you’re trying to connect to SMTP ip address, not some MX hostname with a valid cert..

Could anyone help me on this?

Look at the logs as you connecting to your email server things should be logged to that service, without that output everyone is just guessing

Vineet and I have just had a quick screenshare session. He wants to send email from a subdomain and unfortunately he chose ‘mail’ as the subdomain. I have explained to him that the mail subdomain is reserved for use by Virtualmin and he should use any non-reserved name for a subdomain.

Also, he should not manually add stuff to /var/www but use the Virtulmin GUI.

Hopefully this has set him in the right direction with Virtualmin.

mail.domain is not reserved, it’s just used by default in most CPs. you can do whatever you like with it.. you could choose www.domain as MX , and mail.domain as WWW if you like..
anyway, can’t understand why something like this affects a script from sending email (?)

I do not want to get into a debate about the semantics of the word “reserved”, but for a newcomer to Virtualmin, it is simplest to consider the mail subdomain as reserved.

But you are right, Virtualmin can be configured to use any sub-domain by someone who knows his way around Virtualmin.