【问题标题】:Laravel 5 Swift_TransportException "550 5.7.1 Client does not have permissions to send as this sender "Laravel 5 Swift_TransportException “550 5.7.1 客户端无权作为此发件人发送”
【发布时间】:2017-05-26 03:48:06
【问题描述】:

我正在尝试在 laravel 中使用 smtp 通过中继邮件服务器发送邮件,但出现此错误:

Expected response code 250 but got code "550", with message "550 5.7.1 Client does not have permissions to send as this sender

"

我正在使用 Centos 服务器。当像这样进行 telnet 时:

Connected to relay.*****.
Escape character is '^]'.
220 MSEXCFE04.***** Microsoft ESMTP MAIL Service ready at Wed, 11 Jan 2017 14:11:25 +0300
mail from:test@***.com
503 5.5.2 Send hello first

之后做HELO服务器发送邮件。

但是在 laravel 中我遇到了上述错误。

我该如何解决这个错误?

谢谢

【问题讨论】:

标签: php laravel email laravel-5 smtp


【解决方案1】:

您的电子邮件提供商正在检查您的发送信息。所以,如果您不是 Apple 公司的一员,您不能以 @apple.com 的身份发送电子邮件,对吗?这被称为伪造。所以

 Client does not have permissions to send as this sender

基本上是说您尝试发送到的域不是您的,或者您用来发送它的服务器无权为该特定域发送电子邮件。

这可能是通过 SPF 策略完成的:https://en.wikipedia.org/wiki/Sender_Policy_Framework

【讨论】:

    猜你喜欢
    • 2015-02-05
    • 1970-01-01
    • 2015-08-16
    • 1970-01-01
    • 2018-03-02
    • 2013-02-22
    • 1970-01-01
    • 2011-11-08
    • 2012-03-17
    相关资源
    最近更新 更多