Hi, I’m using a VPS server from Hostinger and have created an email account using the Virtualmin dashboard. I want to connect this email to the enquiry form on my website, so that when someone submits the form, the message is sent to my email.
However, I’m having trouble connecting to the SMTP server using Nodemailer
For that provider the port numbers have significance about the encryption protocol, 465 is for “SMTP over SSL” 587 is for STARTTLS, 2525 for TLS and 25 is for none. I would play around with the different switches and ports till you find a combination that works for you.
for ileafdoors.com the mail server is mail.ileafdoors.com, so you can use that instead of an ip address 147.93.28.238. As for connecting via smtp - both ports 465 and 587 are open on this server. As for testing I cannot test it, obviously, without having credentials.
If you would like to create some credentials and share with me privately, I can test sending emails through this server.
Quick follow up, we spoke privately and figured the issue is with SSL certificate used by mail server was self-signed. @vineethachari will work on checking and fixing the certificate to a publicly trusted one (as ignoring self-signed certificate warnings is not an option for a good reason) and then re-test.