I have an account which has numerous email forwarders in place.
I'm curious as to if and how I can set some sort of cronjob to send the current list of forwarders as text to an external email address;
Example;
I have read that Forwarders | cPanel & WHM Documentation states about pipping to a program but this doesn't seem to be what I need. I need to find the server list of forward addresses and destinations and then take some of this data and put it in an email to an external destination and use a cron job to send this every few months.
Any guidance on how this can be achieved would be wonderful. My coding of choice is PHP but I'm very wary of letting PHP loose on system files if they're outside of the /home/account/ directory.
Cheers
I'm curious as to if and how I can set some sort of cronjob to send the current list of forwarders as text to an external email address;
Example;
Code:
Forwarders as of <date>
[email protected] ---> [email protected]
...
[email protected] --> [email protected]
I have read that Forwarders | cPanel & WHM Documentation states about pipping to a program but this doesn't seem to be what I need. I need to find the server list of forward addresses and destinations and then take some of this data and put it in an email to an external destination and use a cron job to send this every few months.
Any guidance on how this can be achieved would be wonderful. My coding of choice is PHP but I'm very wary of letting PHP loose on system files if they're outside of the /home/account/ directory.
Cheers
Last edited by a moderator: