IPv6 outgoing relay

Bugs in eFa 4
Post Reply
daxis
Posts: 22
Joined: 11 Nov 2019 12:53

IPv6 outgoing relay

Post 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.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: IPv6 outgoing relay

Post by shawniverson »

Try enclosing the IPv6 address in square brackets.

Code: Select all

[aaaa:bbbb:cccc:dddd::]/64
daxis
Posts: 22
Joined: 11 Nov 2019 12:53

Re: IPv6 outgoing relay

Post by daxis »

Tried [aaaa:bbbb:cccc:dddd::]/64 and [aaaa:bbbb:cccc:dddd::/64].
Same error.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: IPv6 outgoing relay

Post by shawniverson »

Are you setting that in eFa-Configure? If so, I bet we have a bug here. Let me check into it.
daxis
Posts: 22
Joined: 11 Nov 2019 12:53

Re: IPv6 outgoing relay

Post by daxis »

Yes, 7) Mail Settings >> 1) Outbound mail relay

16) DKIM and DMARC is enabled
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: IPv6 outgoing relay

Post 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.
daxis
Posts: 22
Joined: 11 Nov 2019 12:53

Re: IPv6 outgoing relay

Post by daxis »

The workaround seems to be working fine for now.
Thanks.
Post Reply