DKIM TrustedHosts 文件问题

DKIM TrustedHosts file issue

谁能告诉我这是为什么。

# OPENDKIM TRUSTED HOSTS
# To use this file, uncomment the #ExternalIgnoreList and/or the InternalHosts
# option in /etc/opendkim.conf then restart OpenDKIM. Additional hosts
# may be added on separate lines (IP addresses, hostnames, or CIDR ranges).
# The localhost IP (127.0.0.1) should always be the first entry in this file.
127.0.0.1
137.99.0.0/16
::1
#host.example.com
#192.168.1.0/24

尽管文档说 "hostnames" 是允许的,但 Postfix 无法对电子邮件进行签名。

# OPENDKIM TRUSTED HOSTS
# To use this file, uncomment the #ExternalIgnoreList and/or the #InternalHosts
# option in /etc/opendkim.conf then restart OpenDKIM. Additional hosts
# may be added on separate lines (IP addresses, hostnames, or CIDR ranges).
# The localhost IP (127.0.0.1) should always be the first entry in this file.
127.0.0.1
#137.99.0.0/16
::1
appmail.uconn.edu
#host.example.com
#192.168.1.0/24

我使用 IMAP 帐户和 FROM= alf02013@appmail.uconn.edu 从 T-bird 发送电子邮件 谢谢你。 -安杰洛

确保您的文件看起来像这样:

127.0.0.1
hostname1.example1.com
example1.com
hostname1.example2.com
example2.com

TrustedHosts 文件告诉 OpenDKIM 谁可以使用您的密钥。因为它被您的 conf 文件中的 ExternalIgnoreList 指令引用,所以 OpenDKIM 将在验证传入邮件时忽略此主机列表,并且因为它也被 InternalHosts 指令引用,所以相同的主机列表将被视为 "internal," 并且 OpenDKIM 将签署他们的外发邮件。[​​=17=]

重要提示:确保在 TrustedHosts 文件中列出本地主机 (127.0.0.1) 的 IP 地址,否则 OpenDKIM 不会签署从该服务器发送的邮件。如果您在同一网络上有多个服务器通过此服务器中继邮件并且您也想签署他们的邮件,则它们必须列在 TrustedHosts 文件中。将每个条目放在自己的行中。条目可以是主机名、域名(例如 "example.com")、IP 地址、IPv6 地址(包括 IPv4 映射地址)或 CIDR 样式的 IP 规范(例如“192.168.1.0/24?”)。