[英]Shopware: Unable to connect with STARTTLS without encryption
In my .env file I have:在我的 .env 文件中,我有:
MAILER_URL="smtp://localhost:25?encryption=&auth_mode=" MAILER_URL="smtp://localhost:25?encryption=&auth_mode="
But if I send a mail the log shows:但是,如果我发送邮件,日志会显示:
Could not send mail: Failed sending mail to following recipients: {{ recipients }} with Error: Unable to connect with STARTTLS.无法发送邮件:无法向以下收件人发送邮件:{{ 收件人}},错误:无法与 STARTTLS 连接。 Error Code:0 Template data ...错误代码:0 模板数据 ...
Looks like it tries to use TLS but I don't want to.看起来它尝试使用 TLS,但我不想。 It worked before.它以前有效。 Maybe it got broken by an update.也许它被更新破坏了。
Looking at the documentation I also tried encryption=null
with same result.查看文档我也尝试了encryption=null
,结果相同。
Debugging in vendor/shopware/core/Content/Mail/Service/MailerTransportFactory.php:36
I made sure my MAILER_URL
was used.在vendor/shopware/core/Content/Mail/Service/MailerTransportFactory.php:36
我确保使用了我的MAILER_URL
。
I am using shopware 6.4.1.1 with symfony/mailer v5.2.10我正在使用带有 symfony/mailer v5.2.10 的 shopware 6.4.1.1
How can I get mails working again?我怎样才能让邮件重新工作?
By default, the SMTP transport in the Symfony Mailer performs TLS peer verification.默认情况下,Symfony Mailer 中的 SMTP 传输执行 TLS 对等验证。 You can disable this verification by setting the parameter verify_peer
to 0
, for example:您可以通过将参数verify_peer
设置为0
来禁用此验证,例如:
MAILER_URL="smtp://localhost:25?encryption=&auth_mode=&verify_peer=0"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.