Question
How to enable DKIM signing for all domains in Plesk for Windows Server?
Answer
-
Connect to a Plesk server via RDP.
-
Start a command prompt as an Administrator and run the command below to generate a list of all domains:
C:> "%plesk_bin%dbclient.exe" --direct-sql --sql="SELECT name FROM domains" > C:dns.txt
-
Allow signing outgoing mail by DKIM spam protection on a server level:
C:> plesk bin mailserver.exe --sign-outgoing-mail true
-
Enable DKIM signing for all domains:
C:> for /f "skip=1" %i in (C:dns.txt); do ("%plesk_cli%domain_pref.exe" --update %i -sign_outgoing_mail true)