Nodemailer不断拒绝无效login身份validation(不使用Gmail)

我现在正在绕过这个最奇怪的问题。 我正在使用nodemailer和postfix发送电子邮件。

以下代码不起作用,给我以下错误: Error: Invalid login: 503 5.5.1 Error: authentication not enabled

  let transporter = nodemailer.createTransport({ host: 'mydomain.com', port: 465, secure: false, // true for 465, false for other ports auth: { user: 'no-reply', // user pass: 'a-hundred-percent-the-right-password' // password } }); 

但更奇怪的是(更接近吓人),没有指定任何凭据的相同代码工作正常! (但当然电子邮件正在进入垃圾邮件)。

有没有人知道我可以做错什么?

Interesting Posts