I’m using nodemailer to send gmail from my Nodejs Application. It worked well on my local, but after push it to server it had error timeout. I think problem is Droplet blocked port 465, so my application fail to send mail. Please help me to resolve this.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @jackynguyen93,
Are you sure there is a service listening on port 465? Please provide me with the result of the command
netstat -tulpen | grep 465
Additionally, can you please provide me with the configuration file of your application?
An Alternative would be just as you mentioned the port being blocked for outgoing connections. To allow outgoing connections from your server to server2 on TCP port 465, use this on your server :
iptables -A OUTPUT -p tcp -d <server2ip> --dport 465 -j ACCEPT
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.