How do I configure nodemailer + hostgator on linode?
Hello Linode community,
I have following code:
let transporter = app.nodemailer.createTransport(smtpTransport({
name: 'hostgator',
host: process.env.HOSTGATOR,
port: 465,
secure: true,
auth: {
user: process.env.EMAIL,
pass: process.env.EMAIL_PWD
}
}));
When I tested locally works fine. Now when I upload everything, only email don't work. Logs show me some timeout messages and I've come to realize that the port 465 is blocked.
What are the steps to get the port 465 unblocked, or what workaround can I do to make nodemailer work with hostgator emails?
Thanks!
5 Replies
No that doesn't explain nothing. It's just a general tutorial on how to add some A fields.
I need a specific thing for nodemailer and hostgator, like
Goto here, copy this, paste it there, click save, wait 5 minutes, etc…
I have added this A record
Hostname
gator4197.hostgator.com
IP Address
194.195.116.182 // my linode IP
TTL
Default
And this SOA record
Primary Domain
p3ahealthchecks.com
hr_healthcheck@p3aconsulting.com // my hostgator email
This email will be sending results to the users. Is this enough, or is there something else that needs to be done?
Thanks
You didn't read far enough:
Beginning Tuesday, 5 November, 2019, in an effort to fight spam, outgoing mail traffic from new Linode accounts with destination ports 25, 465, and 587 are restricted by default
You need to file a support ticket to lift these restrictions.
-- sw
Oh all right, thanks!
So just to clarify, I configured everything above correctly? I didn't miss any config or put any extra in there?
Thanks again!