option to prevent forwarders to free email accounts
Open Discussion
It would be nice to have an option to prevent users from adding forwarders to free email accounts (Ex: hotmail, yahoo.com, gmail.com)
It would be nice to have an option to prevent users from adding forwarders to free email accounts (Ex: hotmail, yahoo.com, gmail.com)
While this does not mean that the feature request will not be considered, I do want to point out that this functionality is presently able to be leveraged through Custom Event Hooks.
https://documentation.cpanel.net/display/SDK/Custom+Event+Handlers
You would be able to write a custom event handler for "Email::addforward" that errors and refuses to add forwarders that match certain text.
This does, of course, require some basic programming knowledge.
While this does not mean that the feature request will not be considered, I do want to point out that this functionality is presently able to be leveraged through Custom Event Hooks.
https://documentation.cpanel.net/display/SDK/Custom+Event+Handlers
You would be able to write a custom event handler for "Email::addforward" that errors and refuses to add forwarders that match certain text.
This does, of course, require some basic programming knowledge.
While this does not mean that the feature request will not be considered, I do want to point out that this functionality is presently able to be leveraged through Custom Event Hooks.
https://documentation.cpanel.net/display/SDK/Custom+Event+Handlers
You would be able to write a custom event handler for "Email::addforward" that errors and refuses to add forwarders that match certain text.
This does, of course, require some basic programming knowledge.
While this does not mean that the feature request will not be considered, I do want to point out that this functionality is presently able to be leveraged through Custom Event Hooks.
https://documentation.cpanel.net/display/SDK/Custom+Event+Handlers
You would be able to write a custom event handler for "Email::addforward" that errors and refuses to add forwarders that match certain text.
This does, of course, require some basic programming knowledge.
I remember reading that forwards to AOL accounts trigger a spam block. I don't know the details and if it is still valid, but if it is then a list of no-forward domains that can be edited would be great. Anybody knows anything about the current AOL handling?
Personally I do need forwards to gmail since for one reason or another some of our clients prefer that over our webmail options.
I remember reading that forwards to AOL accounts trigger a spam block. I don't know the details and if it is still valid, but if it is then a list of no-forward domains that can be edited would be great. Anybody knows anything about the current AOL handling?
Personally I do need forwards to gmail since for one reason or another some of our clients prefer that over our webmail options.
I used to have a CustomEventHandler that worked brilliantly, but cPanel's choice to deprecate CustomEventHandler ruined it. (I don't recall cPanel even announcing the deprecation -- you just did it.)
I used to have a CustomEventHandler that worked brilliantly, but cPanel's choice to deprecate CustomEventHandler ruined it. (I don't recall cPanel even announcing the deprecation -- you just did it.)
I think that this should be re-considered as "Prevent mail forwarding to remote servers", an option as such on Tweak Settings should force the user to only add forwarders pointing from and to domains that he own on that account, avoiding that the incoming spam emails could generate outgoing spam due to redirections not being catched by SpamAssassin.
Most email services include an option for POP3 importing which should be used instead of a remote forwarder.
I think that this should be re-considered as "Prevent mail forwarding to remote servers", an option as such on Tweak Settings should force the user to only add forwarders pointing from and to domains that he own on that account, avoiding that the incoming spam emails could generate outgoing spam due to redirections not being catched by SpamAssassin.
Most email services include an option for POP3 importing which should be used instead of a remote forwarder.
I think the reasons this needs to be somethingi built into cPanel rather than something you have to use custom event hooks for are 1) so folks don’t have to write code to avail themselves of something like this, and 2) cPanel did away with the older mechanism we were using and our code was suddenly useless.
I’d like to see a very robust set of options such as:
1. Full forwarding (as it exists now).
2. List of external domains to which forwarding IS NOT allowed. (Would satisfy those who want to disable forwarding to free email providers, internal forwarding unrestricted)
3. List of external domains to which forwarding IS allowed (i.e. ONLY those external domains will be allowed, internal forwarding unrestricted)
4. Option to disallow ALL external forwarding while allowing internal forwarding to any domain on the same server or same cPanel account (either would be okay by me, and this is the option we’d love to have.)
5. Optionally: No forwarding allowed at all (this can be done via feature list removal but it could legitimately be a forwarding option so that someone who changs from 1-4 to 5 could have the option to trigger a cleanup that would remove all existing forwarders.)
I think the reasons this needs to be somethingi built into cPanel rather than something you have to use custom event hooks for are 1) so folks don’t have to write code to avail themselves of something like this, and 2) cPanel did away with the older mechanism we were using and our code was suddenly useless.
I’d like to see a very robust set of options such as:
1. Full forwarding (as it exists now).
2. List of external domains to which forwarding IS NOT allowed. (Would satisfy those who want to disable forwarding to free email providers, internal forwarding unrestricted)
3. List of external domains to which forwarding IS allowed (i.e. ONLY those external domains will be allowed, internal forwarding unrestricted)
4. Option to disallow ALL external forwarding while allowing internal forwarding to any domain on the same server or same cPanel account (either would be okay by me, and this is the option we’d love to have.)
5. Optionally: No forwarding allowed at all (this can be done via feature list removal but it could legitimately be a forwarding option so that someone who changs from 1-4 to 5 could have the option to trigger a cleanup that would remove all existing forwarders.)
How is this not a more requested feature? Forwarding to hotmail/gmail is a killer for IP reputation.
How is this not a more requested feature? Forwarding to hotmail/gmail is a killer for IP reputation.
This should be done asap.. as customers doesn't understand that if they get spam in the inbox.. is forwarded to gmail/hotmail/whatever causing the server ip been rejected for normal uses.
This should be done asap.. as customers doesn't understand that if they get spam in the inbox.. is forwarded to gmail/hotmail/whatever causing the server ip been rejected for normal uses.
This feature is essential IMO. Blindly forwarding all e-mails to external free domains is just bad for IP reputation and spam control in general.
This feature is essential IMO. Blindly forwarding all e-mails to external free domains is just bad for IP reputation and spam control in general.
As we all know IP reputation has a huge impact on outgoing email delivery and I agree that this feature should be included ASAP.
As we all know IP reputation has a huge impact on outgoing email delivery and I agree that this feature should be included ASAP.
This is essential feature for shared hosting. ISPs like Microsoft network have very strict policy and it causes IP blacklisting issue due to forwarding issue. It would be great if you add this feature as soon as possible.
This is essential feature for shared hosting. ISPs like Microsoft network have very strict policy and it causes IP blacklisting issue due to forwarding issue. It would be great if you add this feature as soon as possible.
The only option offer from cPanel is disable at features the forward manager option. But the clients need this function. The real request since a lot years ago is the option to disable forwards to free email services like Hotmail, Gmail, Yahoo, etc. like the old and extinct Custom Event Handler. ISPs is blocking IP form this forwarding issue.
The only option offer from cPanel is disable at features the forward manager option. But the clients need this function. The real request since a lot years ago is the option to disable forwards to free email services like Hotmail, Gmail, Yahoo, etc. like the old and extinct Custom Event Handler. ISPs is blocking IP form this forwarding issue.
I wrote up a hook that handles this. I could be easily adjust to filter on specific domains. But it currently just denies creating a forward to an external domain.
https://gist.github.com/gmariani/70359dd09c702111979835e52f980366
I wrote up a hook that handles this. I could be easily adjust to filter on specific domains. But it currently just denies creating a forward to an external domain.
https://gist.github.com/gmariani/70359dd09c702111979835e52f980366
Hello, when I try to add hook show error. How to make it work?
Regards to all.
/usr/local/cpanel/bin/manage_hooks add script /usr/local/src/coursevector/disable_email_forward_hook.php
Hook failed to return proper JSON data
WARNING: No "describe" pattern found in script. It is HIGHLY recommended to pass the "--manual" when providing hook descriptors on the command line.
The "add" management action requires that a module or script name is specified example:
bin/manage_hooks add module My::Module
Options can also be manually specified using the following params --category, --event and --stage are defined, example:
bin/manage_hooks add script /var/MyApp/hooks/something.pl --category=Whostmgr --event=Accounts::Create --stage=pre
Hello, when I try to add hook show error. How to make it work?
Regards to all.
/usr/local/cpanel/bin/manage_hooks add script /usr/local/src/coursevector/disable_email_forward_hook.php
Hook failed to return proper JSON data
WARNING: No "describe" pattern found in script. It is HIGHLY recommended to pass the "--manual" when providing hook descriptors on the command line.
The "add" management action requires that a module or script name is specified example:
bin/manage_hooks add module My::Module
Options can also be manually specified using the following params --category, --event and --stage are defined, example:
bin/manage_hooks add script /var/MyApp/hooks/something.pl --category=Whostmgr --event=Accounts::Create --stage=pre
Everybody need to prevent prevent forwarders to free email accounts, hotmail and gmail give always a lot of problems for forward email but better solution should be an option to force the scan of all mail forward with spamassassin, from whm we could configure the rules and reject email with score 5,4,3 or what we think is good for us, so user can continue to forward but admin can take control.
Everybody need to prevent prevent forwarders to free email accounts, hotmail and gmail give always a lot of problems for forward email but better solution should be an option to force the scan of all mail forward with spamassassin, from whm we could configure the rules and reject email with score 5,4,3 or what we think is good for us, so user can continue to forward but admin can take control.
Replies have been locked on this page!