简体   繁体   English

Shopware:无法在未加密的情况下与 STARTTLS 连接

[英]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.

相关问题 Swiftmailer:无法使用TLS加密进行连接 - Swiftmailer: Unable to connect with TLS encryption LARAVEL 9. 错误 LARAVEL EMAIL:无法使用 STARTTLS 连接:stream_socket_enable_crypto():SSL 操作失败,代码为 1 - LARAVEL 9. ERROR LARAVEL EMAIL: Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1 shopware 5:无法加载模板片段 - shopware 5: Unable to load template snippet 无法使用curl连接到FTPS TLS / SSL隐式加密 - Unable to connect to FTPS TLS/SSL Implicit encryption using curl 如何解决SMTP无法连接错误? [发布STARTTLS问题] - How to resolve SMTP could not connect error? [post STARTTLS problem] mssql_connect():无法连接到服务器(没有freetds.conf) - mssql_connect(): Unable to connect to server (without freetds.conf) 为什么会出现Swift_TransportException:无法在Server中使用TLS加密进行连接? - Why I'm getting Swift_TransportException: Unable to connect with TLS encryption in Server? 无法交换加密密钥 - Unable to exchange encryption keys Codeigniter加密不加斜线 - Codeigniter encryption without slash Shopware 6 Production 在单元测试中无法从容器访问插件服务 - Shopware 6 Production Unable to access plugin services from the container in a unit test
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM