Question
When a new subscription or a domain is created, DKIM spam protection is not enabled for them, even if it is enabled on the server level (Tools & Settings > Mail Server Settings > DKIM spam protection).
How to enable DKIM for newly created domains automatically in Plesk on Linux?
Answer
An event handler can be set up in order to enable DKIM for all newly created domains.
In order to do it, perform the following steps:
-
Connect to the server via SSH.
-
Create the script file:
# touch /root/auto_dkim.sh && chmod 755 /root/auto_dkim.sh
-
Add the script to the file:
# echo '#!/bin/sh' > /root/auto_dkim.sh
# echo '/usr/local/psa/bin/domain_pref --update ${NEW_DOMAIN_NAME} -sign_outgoing_mail true' >> /root/auto_dkim.sh
-
Go to Tools & Settings > Event Manager.
-
Add new event with the following settings:
Event:
Physical hosting created
Priority:
0 (lowest)
User:
root
Command:
/root/auto_dkim.sh
Comments
0 comments
Please sign in to leave a comment.