CPanel’s a great software that’s been powering the web hosting industry for years. It has powerful functionality and a straightforward Graphical User Interface (GUI) that can allow a beginner to easily manage a web hosting account. However, some functionality can be tricky, such as the default forwarding function.
If you create an email forwarder in CPanel that forwards email to [email protected], and create a POP email account of the same name – let’s call this [email protected] – then you’ll receive 2 emails. 1 will be at [email protected], and 1 will be at [email protected]. This isn’t ideal though, because sometimes you’ll need a POP account to reply mails with, and so you can’t just use a pure forwarder. Some email service providers such as Gmail has a “forward and delete” functionality, and this is a behavior we can replicate in CPanel. However, we can’t use the normal email forwarders. For this, we’ll need the account-level filtering function.
Go to account-level filtering in Cpanel, and then create a new filter. In the “Rules” section”, choose “Any header”, and put in your email address (e.g. [email protected]). Now for the “Actions” section, choose “Redirect to email”, and put in the email address that you want all these mail to go to (e.g. [email protected]).
Viola! You now have a “forward and delete” behavior in CPanel.
actually this isn't the best way to do this function.
creating a filter doesn't always forward every email. I used to think the same as you but I've had filters for a couple years on many domains and checked the server recently to find 250 emails that it didnt send to me…they were all emails I didnt actually want but they were still not sent…maybe it was a spam issue that Gmail had rejected or something. I'm not sure why it didn't send them.
The best option seems to be using a real forwarder for the redirecting of emails and then a cronjob to delete the original copies of the emails on the server. I'll make a tutorial for this later and post back with a link.
Alvin’s solution is brilliant, not even the cPanel board have something like this.
About the Visuex issue, this can be easily solved, just add a mail forward and that’s 🙂 cron jobs are not the best option, if you have a bunch of mails to delete this can become a real mess, and if you have a lot of mails configured on a mobile device just for reply and send but their real function is just as a forwarder then, you still receive mails in these accounts.
Thaks for your solution Alvin
Thanx Alvin!
Thank you so much, Alvin! Worked like a charm!
This helped me work around Outlook.com’s downright ridiculous 3o minute mail checking interval. I am now able to forward messages from the Cpanel account, discard them from the Cpanel server, and have them promptly delivered into Outlook.com.
Couple things I had to tweak to get this working:
In the rules I used the “To” field, versus “any header”. And I also used “contains” (I’ve read it is much more forgiving than “equals” and to to choose this to get things working).
For the Actions, i set the first to “Redirect to email” as you indicated and pasted in my email address. I then clicked the [+] button to add another action. This time I selected “Discard Message” from the drop down and clicked Save.
Hope that helps!
Thanks Scott, your method worked perfectly!
It doesn’t work if the email address is in the BCC field. In that case the email is delivered to the inbox and none of the forward emails receive it.
This works great, I used any recipient and it worked just find
Working perfectly thanks for this wonderful sharing going to bookmark for recommendation. Thanks, thanks a lot.
Thanks Alvin & Scott. Came across this post by accident and couldn’t believe there was a solution of getting around the 30 min checking by Outlook.com. I had always just set up a backup folder to catch the duplicates to clear the server, but this works much better!
Thanks again for sharing.
Kevin
Actually this only works, when using a single mail on your domain. If you are using several mails, and someone sends an email, containing both yours and other emails in header, it only redirects mail to you and skips the rest. So others are left with no email.
26/10/18 Hi from the UK.
Works like a charm first time.
Thank you so much for that.
The solution works if the email to forward has no autoresponder. If it has, the autoresponder will not send.