little script for cpanel servers admins

hello

just sharing this script i've done to backup cpanel users contact E-Mail (the ones they set on cpanel -> Update contact info) and send to your E-Mail (you can set a cron to do that daily/weekly depending on the number of new clients you have)

this script may be useful to send an E-Mail to the clients explaining what's happening in case your server is not accessible

the configuration is straight-forward and it's mostly like that it will work without need to change the config anyway
you may want to configure the E-Mail that will receive the output

1) remove the .txt
2) chmod 755 backupmail.pl
3) just run it (as "root", because it will need to have access to users homedir... maybe running as "nobody", if you get to, will work too)

note: it use "locate" to make a faster search (and because i'm lazy), so use "updatedb" to update the file database before using it (many servers already come configured with scheduled updatedb)

enjoy little script for cpanel servers admins

 

 

 

 

Top