Cannot send email using smtp on linode
Hi
We are integrating the code for sending mail using smtp we got the error like timeout so what should we do
We are build app on nodejs and we are using the nodemailer package we can send email on localhost and other server by using the same code
But on the linode server we cannot do it
Note i have enabled the port number using ufw command for 25, 587, 465
6 Replies
I believe you'll find the answer you're looking for here: https://www.linode.com/community/questions/19082/i-just-created-my-first-linode-and-i-cant-send-emails-why
TLDR; SMTP restrictions are in place by default for Linodes on accounts created after November 5th 2019. You'll need to configure rDNS for your instance and open a Support ticket confirming CAN-SPAM compliance, and Support should lift the restrictions pretty quickly.
Sending mail from a linode requires a whole bunch of infrastructure to be in place on your linode -- opening ports 25, 587 and 465 in your firewall is the easy part of all of this. Unless you have done what @_Brian suggests AND started up a mail server, you're never going to be able to do what you want.
In addition, your mail server (assuming you've started it up and it works correctly) has to be trusted by your recipients. If you don't take care of this part of the equation you'll be sending mail to bounce daemons, the bit bucket and spam folders. Probably not what you wanted…
-- sw
We already tried all this things but nothing is sorted out till now .we enable ports 25,465,587 and we follow all instruction to deploy Dns and rDns and finally same problem exists.SO Guide us in better way to sort Out the problem.
You should do what @_Brian says. Ports 25, 465, & 587 are all closed on new Linodes by default. This is a spam prevention measure.
-- sw
@Globalcryptox Thanks in advance for setting up the DNS for your Linode. The last step would be to open a Support ticket to get the restrictions lifted. In that ticket, make sure to identify which Linode you're looking to send email from (if you have more than one Linode on your account) and confirm that your mailing practices are CAN-SPAM compliant.
We also recommend reviewing Section 2 ("Abuse") of our Acceptable Use Policy. Terms of Service or AUP violations may result in the reinstatement of SMTP port restriction.
Right now we did all procedures and followed the suggested received from Linode help center but nothing is resolved, days were gone but no proper solution for our concerns. Today we tried to create a new instance it also shows popup msg like "additional verification is needed so open ticket" its totally frustrating.