首页 文章

DKIM TrustedHosts文件问题

提问于
浏览
1

任何人都可以告诉我为什么这样做 .

# 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

即使文档说允许“主机名”,也无法让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

我发送来自T-bird的电子邮件和IMAP帐户,FROM = alf02013@appmail.uconn.edu谢谢 . -Angelo

1 回答

  • 0

    确保您的文件如下所示:

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

    TrustedHosts 文件告诉 OpenDKIM 谁可以使用您的密钥 . 因为它在您的conf文件中由 ExternalIgnoreList 指令引用, OpenDKIM 将在验证传入邮件时忽略此主机列表,并且因为它也被 InternalHosts 指令引用,所以相同的主机列表将被视为"internal,"和 OpenDKIM 将签署其传出邮件 .

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

相关问题