使用 Mailgun、Laravel 和 VirtualBox 发送电子邮件时,“服务器响应:451 451 临时本地 - 请稍后再试”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23105354/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 02:46:05  来源:igfitidea点击:

"Server response: 451 451 Temporary local - please try later" when sending email using Mailgun, Laravel and VirtualBox

laravelvirtualboxvagrantmailgun

提问by Mike

I am getting the error "Server response: 451 451 Temporary local problem - please try later" when sending password reminder emails via Laravel and Mailgun. I am running Laravel on VirtualBox.

通过 Laravel 和 Mailgun 发送密码提醒电子邮件时,我收到错误“服务器响应:451 451 临时本地问题 - 请稍后再试”。我在 VirtualBox 上运行 Laravel。

I set up VirtualBox using Vagrant, would this have made a difference?

我使用 Vagrant 设置了 VirtualBox,这会有所不同吗?

If I change the SMTP settings to my own host it works absolutely fine. Is there an issue with using Mailgun on a Virtual machine?

如果我将 SMTP 设置更改为我自己的主机,它绝对可以正常工作。在虚拟机上使用 Mailgun 有问题吗?

Update

更新

I can send to Gmail addresses without any problems, however, they apparently are neither being blocked or allowed.

我可以毫无问题地发送到 Gmail 地址,但是,它们显然既没有被阻止也没有被允许。

This is the error I get:

这是我得到的错误:

Failed: [email protected][email protected] Server response: 550 550
Verification failed for <[email protected]>
No Such User Here Sender verify failed

采纳答案by Paul Bele

The error "451 Temporary local problem" comes from the actual mail server you are connecting to.

错误“451 临时本地问题”来自您连接的实际邮件服务器。

Typically, 451 errors are due to the receiving server rejecting your email. This can happen for a number of reasons but most likely is due to the recipients server being overloaded with messages. It can also mean that the recipients server has grey-listed the IP, and therefore delays the message until it can verify that the sending server is not trying to send spam. The receiving server may be offline as well.

通常,451 错误是由于接收服务器拒绝您的电子邮件。发生这种情况的原因有很多,但最有可能是由于收件人服务器的邮件过载。这也可能意味着收件人服务器已将 IP 列入灰名单,因此会延迟消息,直到它可以验证发送服务器没有尝试发送垃圾邮件。接收服务器也可能离线。

Since this error message is so vague, you'll need to get more information from the recipient. I'd suggest waiting a few hours and try to send the email again.

由于此错误消息非常模糊,您需要从收件人那里获取更多信息。我建议等待几个小时,然后尝试再次发送电子邮件。

It doesn't have to do with your Laravel installation or running with Virtualbox, further more because you tested with other SMTP settings.

它与您的 Laravel 安装或使用 Virtualbox 运行无关,更重要的是因为您使用其他 SMTP 设置进行了测试。