I have successfully set up a mail server and can send and receive emails through Sogo to my Gmail account. But I want to use this mail server for my “Contact Us” form in my website which is based on NodeJS and Nodemailer as the transporter and receive emails in my Gmail account. That is if my email id is email@example.com then I want send all the contact us emails to my gmail account through this. To achieve that, I have used these settings:
SMTP_USERNAME=<username which I use to login to my Sogo client is the email id: firstname.lastname@example.org>
SMTP_PASSWORD=<password which I use to login to my Sogo client>
SMTP_PORT=<tried 25, 443, 465, 587, 8443, 993 and some more >
All the ports in my Ubuntu 20.04 looks like this via Netstat:
These are my HTTP bindings in mailcow.conf file:
What am I doing wrong here?