使用 SendGrid/Gmail 时 SMTP 身份验证失败

Ras*_*dhy 3 centos exim cpanel sendgrid

我在服务器上收到 SMTP 身份验证失败,邮件仅通过服务器 SMTP 发送...

它似乎是服务器配置或相关问题,但我不确定。

这是调试细节:

250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP

Failed to authenticate password. Error: 535 Incorrect authentication data

from: 250 OK

to: 250 Accepted

data: 354 Enter message, ending with "." on a line by itself

250 OK id=1U8Pjp-0002As-FB

quit: 221 ************** closing connection

Your message has been successfully sent using the following protocol: smtp
Run Code Online (Sandbox Code Playgroud)

从我的本地系统进行测试时,这有效并且电子邮件是通过 sendgrid.me 发送的

同样,这可能不是 SendGrid 问题,但是如果您遇到类似的问题,请告诉我这里的问题是什么?

我正在使用 CentOs,并且服务器中有 cPanel。我相信我们正在使用 EXIM 作为邮件服务器。

Sam*_*mus 5

对于将来遇到此问题并使用 cpanel/whm 的任何人,您需要在 WHM 的“SMTP 限制”下“禁用”此选项。