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 admin@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_HOSTNAME=mail.example.com
SMTP_USERNAME=<username which I use to login to my Sogo client is the email id: admin@example.com>
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:
HTTP_BIND=127.0.0.1
HTTP_PORT=8080
HTTPS_BIND=127.0.0.1
HTTPS_PORT=8443
What am I doing wrong here?