微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

向exim4添加自定义标头

如何解决向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 举报,一经查实,本站将立刻删除。