Can not create DMARC record automatically in DirectAdmin

Hello,

The changes will effect only new domains, for existing domains you need to modify *.db files manually of with a script.
 
Hello,

The changes will effect only new domains, for existing domains you need to modify *.db files manually of with a script.
Wouldn't it be easier to just add the dmarc entry from the Admin DNS Administration or in User Account DNS Management? All it is is a TXT DNS Entry.
 
You can use the following command to add _dmarc records for all your existing domain names:

Code:
cd /var/named

mkdir /root/db-backup

copy *.db /root/db-backup

files=*.db; for file in $files; do domain=`echo $file | sed -e "s/\.db$//"`; echo -e "_dmarc\t14400\tTXT\t"v=DMARC1; p=none; sp=none; rua=mailto:spam-reports@$domain"" >> $file ; done;

cd /usr/local/directadmin
echo "action=rewrite&value=named" > data/task.queue; ./dataskq d2000
 
You can use the following command to add _dmarc records for all your existing domain names:

Code:
cd /var/named

mkdir /root/db-backup

copy *.db /root/db-backup

files=*.db; for file in $files; do domain=`echo $file | sed -e "s/\.db$//"`; echo -e "_dmarc\t14400\tTXT\t"v=DMARC1; p=none; sp=none; rua=mailto:spam-reports@$domain"" >> $file ; done;

cd /usr/local/directadmin
echo "action=rewrite&value=named" > data/task.queue; ./dataskq d2000

Thanks for that.

Is it possible to automate adding DMARC record for all existing domains which do have DKIM and SPF set (meaning that it should skip for domains which do not have them both set)?
 
Back
Top