update spf all users

Which record you want to change ? normally this is not needed only if you are using other provider for mail.
this can help you :
 
DA already create that for you in DNS, you have to be more specific and give some more info with your questions.
 
sorry

I would like to update the SPF record on all directadmin accounts
 
Again and last time : what do you want to change it then ?
 

"v=spf1 a mx ip4:45.61.xx.xx include:_spf.domain.com ~all"

for all accounts

 
Already gave you the link :

You have put some effort too , we are not going to maintain your server for you
 
we are nog going to maintain your server for you
Agreed, but this one can be a bit tricky for a beginner so I will give an example.

Code:
cd /usr/local/directadmin/data/templates/custom
cp ../dns_txt.conf .
then edit this dns_txt.conf file in the custom directory and add your include so it looks like this:
Code:
|DOMAIN|.="v=spf1 a mx ip4:|SERVER_IP||EXTRA_SPF||SPF_IPV6| include:_spf.domain.com ~all"
This is only for newly created domains, to update existing records you have to use this command:
/usr/local/directadmin/directadmin taskq --run "action=rewrite&value=named" --debug 400

Next time, check docs first, there is a load of info in there. If you don't understand it or it doesn't work, you can always ask us.
 
sintaxe is:

|DOMAIN|.="v=spf1 a mx ip4:202.22.x +include:_spf.domain.com ~all"
 
sintaxe is:
You normally don't need the + in an SPF record, they can be used with and without the + character.

The syntax I used is correct. The
|SERVER_IP||EXTRA_SPF||SPF_IPV6|
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. ;)
If you don't use ipv6 you can choose to remove the |SPF_IPV6| out of that line. However normally should not be needed.
 
A lot of thanks @Richard G (all times you are a master of Directadmin) ;)

A question o my server:
Code:
 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
But after show activitie any change on any domain of server.

- All domains has older TXT for SPF
- Domain without _dmarc, they are still without DMARC.
- Domain with with _dmarc, they still have the same DMARC

I appreciate your time
 
Back
Top