向exim4添加自定义标头

问题描述

我正在尝试将自定义标头添加到我的version: '3.4' services: e-si: build: ./path/to/project networks : host ports: - 8001:8001 volumes: - /server/location:/container/location 配置中,以使我的所有电子邮件显示在CloudWatch中。为了使其正常工作,我使用以下命令更新了配置:

Exim4

在我更新了路由器上的调试消息并从CLI发送电子邮件显示了特定消息的地方,这实际上工作得很好。

当我检查exim配置.ifdef DCconfig_smarthost DCconfig_satellite # configtype=smarthost or configtype=satellite # # Send all non-local mail to a single other machine (smarthost). # # This means _ALL_ non-local mail goes to the smarthost. This will most # probably not do what you want for domains that are listed in # relay_domains. The most typical use for relay_domains is to control # relaying for incoming e-mail on secondary MX hosts. In that case,# it doesn't make sense to send the mail to the smarthost since the # smarthost will probably send the message right back here,causing a # loop. # # If you want to use a smarthost while being secondary MX for some # domains,you'll need to copy the dnslookup_relay_to_domains router # here so that mail to relay_domains is handled separately. smarthost: debug_print = "R: smarthost for $local_part@$domain" driver = manualroute headers_add = X-SES-CONfigURATION-SET: CloudWatch headers_add = X-SES-MESSAGE-TAGS: customer=senet,application=twentyfour domains = ! +local_domains transport = remote_smtp_smarthost route_list = * DCsmarthost byname host_find_Failed = ignore same_domain_copy_routing = yes no_more .endif 时,我也看到信息设置正确:

exim -bP config

唯一的问题是我的实际电子邮件中没有这两个标头中的任何一个

预先感谢

最好, Pim

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)