无法将IPv6地址添加到sendmail访问列表

我正在Slackware 13.37上运行Sendmail 8.14.4。 我在我的/ etc / mail / access文件中有以下内容,它没有任何错误:

Connect:127 OK Connect:10.0.1 RELAY # Net: office Connect:50.116.6.8 RELAY # Host: glider Connect:96.126.127.87 RELAY # Host: kite 

上述configuration还允许我通过IPv6发送电子邮件给邮件服务器上的本地用户。 但是,它不允许我的办公室通过IPv6进行中继。 我尝试了两种将IPv6networking添加到我的访问文件的方法。

方法1:

 Connect:127 OK Connect:10.0.1 RELAY # Net: office Connect:IPv6:2001:470:b:84a RELAY # Net: office Connect:50.116.6.8 RELAY # Host: glider Connect:96.126.127.87 RELAY # Host: kite 

方法2:

 Connect:127 OK Connect:10.0.1 RELAY # Net: office Connect:[IPv6:2001:470:b:84a] RELAY # Net: office Connect:50.116.6.8 RELAY # Host: glider Connect:96.126.127.87 RELAY # Host: kite 

但是,每当我尝试使用方法1或2时,我无法通过主机中继电子邮件。

/ var / log / maillog条目:

 May 31 11:57:15 freshsalmon sm-mta[25500]: ruleset=check_relay, arg1=[IPv6:2001:470:b:84a:223:6cff:fe80:35dc], arg2=IPv6:2001:470:b:84a:223:6cff:fe80:35dc, relay=[IPv6:2001:470:b:84a:223:6cff:fe80:35dc], reject=553 5.3.0 RELAY # Net:office 

从telnettesting会话:

 syzdek@blackenhawk$ telnet -6 freshsalmon.office.example.com 25 Trying 2001:470:b:84a::69... Connected to freshsalmon.office.bindlebinaries.com. Escape character is '^]'. 220 office.example.com ESMTP Sendmail 8.14.4/8.14.4; Thu, 31 May 2012 11:57:15 -0800 HELO blackenhawk.office.example.com 250 office.example.com Hello [IPv6:2001:470:b:84a:223:6cff:fe80:35dc], pleased to meet you MAIL FROM:[email protected] 553 5.3.0 RELAY # Net:office 

sendmail的访问文件中添加IPv6地址/networking的正确方法是什么?

更新:显然我的访问文件无法正常工作。 在行尾删除注释似乎已经解决了这个问题。 这是工作的线路:

 Connect:127 OK Connect:IPv6:::1 OK # Net: office Connect:10.0.1 RELAY Connect:IPv6:2001:470:b:84a RELAY # Host: glider Connect:50.116.6.8 RELAY Connect:IPv6:2600:3c01::f03c:91ff:fedf:381a RELAY # Host: kite Connect:96.126.127.87 RELAY Connect:IPv6:2600:3c00::f03c:91ff:fedf:52a4 RELAY 

2001:470:b:84a本身不是有效的IPv6地址。 至less它需要是2001:470:b:84a ::表示尾随零或sendmail在日志(2001:470:b:84a:223:6cff:fe80:35dc)中指示的完整地址。

一旦你有地址,你尝试的第一种格式(IPV6:…)应该工作。

根据configuration自述文件中的示例,您应该删除括号