我正在尝试将自定义标头添加到我的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