Agreed, but this one can be a bit tricky for a beginner so I will give an example.we are nog going to maintain your server for you
cd /usr/local/directadmin/data/templates/custom
cp ../dns_txt.conf .
|DOMAIN|.="v=spf1 a mx ip4:|SERVER_IP||EXTRA_SPF||SPF_IPV6| include:_spf.domain.com ~all"
/usr/local/directadmin/directadmin taskq --run "action=rewrite&value=named" --debug 400
You normally don't need the + in an SPF record, they can be used with and without the + character.sintaxe is:
mean that they will be filled in automatically if present/used. So you don't need to change this. If your main ip is 202.22.xx.xx it will be included automatically. Same for the rest.|SERVER_IP||EXTRA_SPF||SPF_IPV6|
cat /usr/local/directadmin/conf/directadmin.conf | grep spf
dns_add_spf_ipv6=0
extra_spf_value= include:_smarts.SMARTODMAIN.com
cat /usr/local/directadmin/data/templates/custom/dns_txt.conf
|DOMAIN|.="v=spf1 a mx ip4:|SERVER_IP||EXTRA_SPF||SPF_IPV6| -all"
_dmarc="v=DMARC1; p=reject; rua=mailto:postmaster@|DOMAIN|"
systemctl restart directadmin.service
/usr/local/directadmin/directadmin taskq --run "action=rewrite&value=named" --debug 400