Hi, I'm not a developer so please forgive my ignorance here. I understand that cpanel has "hooks" that allow you to run scripts before or after certain processes are run.
For example, when a new account is created on a cpanel server, you might want to identify the domain and add it to an external mail server so that mail could be sent into the cpanel server for that domain via the MTA.
So I guess you'd use the postwwwacct hook to run a script that would do the above job. Great!
When an account is copied to another server - it stands to reason that whatever script you ran via the hook you used in the postwwwacct process, you'd probably want to run again. So using the example above, if you move a domain from one server to another, it is reasonable to presume that you might want to update that information automatically on your external Mail MTA in order to make sure mail is delivered to the correct place.
Can you please tell me if there are "hooks" available to do that?
Many thanks.
For example, when a new account is created on a cpanel server, you might want to identify the domain and add it to an external mail server so that mail could be sent into the cpanel server for that domain via the MTA.
So I guess you'd use the postwwwacct hook to run a script that would do the above job. Great!
When an account is copied to another server - it stands to reason that whatever script you ran via the hook you used in the postwwwacct process, you'd probably want to run again. So using the example above, if you move a domain from one server to another, it is reasonable to presume that you might want to update that information automatically on your external Mail MTA in order to make sure mail is delivered to the correct place.
Can you please tell me if there are "hooks" available to do that?
Many thanks.