typo3 - 如何在 TYPO3 中配置两个邮件服务器(故障转移)

标签 typo3 typo3-10.x symfony-mailer

Symfony Docs 中所述可以为邮件服务器添加故障转移配置:

Symfony's mailer supports high availability via a technique called "failover" to ensure that emails are sent even if one mailer server fails.

A failover transport is configured with two or more transports and the failover keyword:

MAILER_DSN="failover(postmark+api://ID@default sendgrid+smtp://KEY@default)"

The failover-transport starts using the first transport and if it fails, it will retry the same delivery with the next transports until one of them succeeds (or until all of them fail).

是否可以在 TYPO3 中使用和配置此功能?如果是这样,怎么办?

是否可以进行其他配置,如TLS Peer Verification Symfony 邮件程序的 ( Symfony Docs ) 在 TYPO3 中配置?

By default, SMTP transports perform TLS peer verification. This behavior is configurable with the verify_peer option. Although it's not recommended to disable this verification for security reasons, it can be useful while developing the application or when using a self-signed certificate:

$dsn = 'smtp://user:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d3d2c3e3e0d3e20393d6328352c203d2128632e2220" rel="noreferrer noopener nofollow">[email protected]</a>?verify_peer=0';

最佳答案

这两个功能目前在 TYPO3 中无法作为配置使用。您可以在 https://forge.typo3.org/projects/typo3cms-core/issues 创建 2 个问题吗? ?

当然可以通过例如XCLASS 或者也许有一个事件可以通过扩展添加此类内容。

关于typo3 - 如何在 TYPO3 中配置两个邮件服务器(故障转移),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70019331/

相关文章:

php - 使用 Symfony Messenger 异步发送电子邮件时如何翻译电子邮件?

php - TYPO3 8.7 使用 Flexform uid 的查询排序

javascript - 如何在自己的 Typo3 6.2 扩展中包含 .js 文件?

TYPO3 文件抽象层 FILES listNum

ajax - Extbase Ajaxdispatcher 给出错误 "The default controller can not be determined"

php - TYPO3 v10 - 在 eID_include 中使用上下文 API 获取 feUser 对象

typo3 - 如何从 TypoScript 调用 extbase 操作

class - TYPO3 v10 持久化映射