因此,我们使用包nodemailer发送电子邮件使用Node.js API。它在Windows环境下运行良好,使用smtp.gmail.com。一旦我们移动节点API到Ubuntu16.04,发送电子邮件停止工作。API的其余部分运行良好。combinations aswell host: 'smtp.gmail.com',
//tried port 465 and
# iptables -P INPUT ACCEPTgmail.com mail is handled by 20 alt2.gmail-smtp-in.l.google.com.gmail.com mail is handled by 40 alt4.gmail-smtp-in.l.google.com