View Full Version : [ubuntu] DKIM for entire subnet

December 20th, 2010, 09:45 PM

I want to setup a mailserver for my home subnet and also have it sign all mails that it receives from the subnet using DKIM.

Internally I use for IPv4 but also have a IPv6 /48 net. For illustration purposes I will use 2001:db8:c0d3::/48.

Hence in /etc/mail/dkim-InternalHosts.txt I have the following entries:

# cat dkim-InternalHosts.txt

It seems that dkim-filter is trying to resolve the hostname though and really expects an exact match in the dkim-InternalHosts.txt file. So regardless where I send mail from dkim-filter tries to verify instead of signing the e-mail.

Is there a way to achieve what I want to do?