[BUG] Backup restore & ip6 SPF does not change

Petertjuh360

Verified User
Joined
Nov 7, 2010
Messages
340
I discovered a bug in DirectAdmin. In my SPF records I also have ip6:IP6addr. When I backup an user from a server and restore it on another server the ip4:IP4addr changes but the ip6:IP6addr stays the same as before! This causes mail to be rejected when sent via IPv6.
 
Are you referring to v=spf1 values in the TXT records, or actual SPF records?

Looking over the current code (which would also be in the pre-release binaries), the TXT records are just copied over, but any v=spf1 line would be skipped, since those lines should be specific to the current box.
So if it's a TXT spf record, then check your current default values in:
/usr/local/directadmin/data/templates/dns_txt.conf
/usr/local/directadmin/data/templates/custom/dns_txt.conf

as well as this DA option, which can be set:
Code:
cd /usr/local/directadmin
./directadmin c | grep extra_spf_value
as if you had copied over the directadmin.conf from the old box to the new box, that would explain it.

Actual SPF records are not currently restored at all. The domain would just get whatever is in the default dns_spf.conf templates (only if spf records are enabled)

John
 
It was the directadmin.conf indeed. I copied it to the new server. I changed extra_spf = ip6: and it works now. Sorry for the bug report, topic can be closed!
 
Back
Top