Done !
| Server IP : 192.145.236.177 / Your IP : 216.73.216.238 Web Server : Apache System : Linux ded5817.inmotionhosting.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : personalinjurynh ( 1013) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /scripts/ |
Upload File : |
#!/usr/bin/python2
# cPanel script hook for account creations
# Documentation: http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/ScriptHooks
import sys
from subprocess import call
argv = sys.argv
# Initialize VALUES as a dict comprised of key/value pairs passed by cPanel when this script is invoked
VALUES={}
range=xrange(2, len(sys.argv), 2)
for i in range:
VALUES[sys.argv[i - 1]] = sys.argv[i]
user = VALUES['user']
# Automatically create a domain key
print "Adding DKIM"
call(['/usr/local/cpanel/bin/dkim_keys_install', user])