Page 1 of 1

IPv6 outgoing relay

Posted: 25 Oct 2022 11:06
by daxis
When I try to add an ipv6 subnet in the outbound mail relay and save then opendkim crashes on restart.

This is what I found in /var/log/messages:

Code: Select all

opendkim: /etc/opendkim.conf: 1.1.1.1/24 aaaa:bbbb:cccc:dddd::/64: dkimf_db_open(): Unknown database type
Multiple ipv4 subnets are no problem.
It's only when adding an ipv6 subnet that openskim crashes.

Am I doing something wrong? Is it syntax?
Any clue to the solution is appreciated.

Re: IPv6 outgoing relay

Posted: 25 Oct 2022 16:25
by shawniverson
Try enclosing the IPv6 address in square brackets.

Code: Select all

[aaaa:bbbb:cccc:dddd::]/64

Re: IPv6 outgoing relay

Posted: 25 Oct 2022 20:35
by daxis
Tried [aaaa:bbbb:cccc:dddd::]/64 and [aaaa:bbbb:cccc:dddd::/64].
Same error.

Re: IPv6 outgoing relay

Posted: 26 Oct 2022 22:47
by shawniverson
Are you setting that in eFa-Configure? If so, I bet we have a bug here. Let me check into it.

Re: IPv6 outgoing relay

Posted: 27 Oct 2022 09:25
by daxis
Yes, 7) Mail Settings >> 1) Outbound mail relay

16) DKIM and DMARC is enabled

Re: IPv6 outgoing relay

Posted: 28 Oct 2022 14:52
by shawniverson
Yeah this is a bug. The PeerList needs to be comma separated. You can work around it by using brackets for the IP portion and editing /etc/opendkim.conf to comma separate the entries. I'll prepare a fix.

Re: IPv6 outgoing relay

Posted: 03 Nov 2022 14:35
by daxis
The workaround seems to be working fine for now.
Thanks.