Centos 使用SendGrid/Gmail时SMTP身份验证失败
我在服务器上收到SMTP身份验证失败,邮件仅通过服务器SMTP发送 这似乎是服务器配置或相关问题,但我不确定 以下是调试详细信息:Centos 使用SendGrid/Gmail时SMTP身份验证失败,centos,cpanel,sendgrid,exim,Centos,Cpanel,Sendgrid,Exim,我在服务器上收到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: 2
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
在我的本地系统中进行测试时,该功能正常,电子邮件通过sendgrid.me发送
同样,这可能不是SendGrid的问题,但是如果您遇到过类似的问题,您能告诉我这里的问题是什么吗
我正在使用CentOs,服务器中有cPanel。我相信我们正在使用EXIM作为邮件服务器。我能够解决这个问题
问题是我的服务器不允许使用外部SMTP和自己的SMTP服务器。我更改了设置,现在可以正常工作。对于将来遇到此问题并正在使用cpanel/whm的任何人,您需要在whm中的“SMTP限制”下“禁用”此选项。我正在使用centos 7终于可以工作了 我收到了这个问题(
tail-f/var/log/mailog
):
然后使用以下方法安装缺少模块依赖项的后缀:
sudo yum install cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain
然后重新启动后缀
sudo systemctl restart postfix.service
我可以知道你在哪里换的吗?在cPanel WHM面板上或在哪里?我正在处理相同的问题,我想从您那里了解。主页>>安全中心>>SMTP限制
sudo yum install cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain
sudo systemctl restart postfix.service