Add Forwarder Hook - How to block?
Hi,
I am trying to use the add_forwarder hook to block addition of forwarders to email addressing ending with gmail.com. I am able to execute the hook and process the data as well but the only problem is that it is not blocking the creation of email forwarders. In the code I am returning false as the first argument and a message as the second argument but still the forwarder is being added. Can you please help me confirm if blocking is not enabled on creation of email forwarders?
Regards,
Saad
-
This is so frustrating - I wanted to add my code and edited the whole post but at the end it said my message is spam-like and can not be posted. Is this the case with everyone or I am too new to even post a legitimate message? 0 -
Hi, According to our documentation (Guide to Standardized Hooks - Cpanel Functions - Software Development Kit - cPanel Documentation) cPanel API calls do not support the blocking attribute of the hook system. 0 -
Hello @saad92, I'm not aware of any method to achieve the functionality you are seeking because, as mentioned in the earlier post, the blocking attribute of the hook system is not supported when using cPanel API calls. Note we do have a feature request open for this at: option to prevent forwarders to free email accounts I encourage you to vote and add feedback to this request if you'd like to see it implemented. Thank you. 0
Please sign in to leave a comment.
Comments
5 comments