How to change SPF target for `all` from `~` softfail to `-` reject.

Created:

2016-11-16 12:50:37 UTC

Modified:

2017-08-08 13:31:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change SPF target for `all` from `~` softfail to `-` reject.

Applicable to:

  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Question

How to change SPF target for all from ~ softfail to - reject.

Resolution

mysql> begin;
mysql> update dns_recs set Val=replace(val,'~all','-all') where type='txt' and val like '%spf%';
mysql> update dns_recs set displayVal=replace(displayVal,'~all','-all') where type='txt' and displayVal like '%spf%';
mysql> commit;

mysql -uadmin -P8306 psa -p<PASSWORD> -Nse"select name from domains" > C:\\domains.txt

c:\\for /f "tokens=*" %d in ('type C:\\domains.txt') do "%plesk_bin%\\DNSMng.exe" update %d
Have more questions? Submit a request
Please sign in to leave a comment.