Send a copy of all emails without using cpanel Forwarder

Deker

Well-Known Member
Feb 15, 2011
99
4
58
cPanel Access Level
Root Administrator
My manager asked me to configure the server to send a copy of all incoming emails to his email without using cpanel Forwarders tool.
I never heard about such method but he believes there is one.
Anyone knows what method it is?
Note: I have full access to the server so if there is something to do on serverside I can do it.
Your help would be greatly appreciated.

Update: There are almost 100 websites on the server, but I want to send a copy of our main domain incoming emails to the manager email.
 

Deker

Well-Known Member
Feb 15, 2011
99
4
58
cPanel Access Level
Root Administrator
Thank you 24x7Server
I went through the CpanelTristan instructions, it works like a charm but how can I add an exception to the if statement?
I mean something like the following:
Code:
if ("$h_to:, $h_cc:, $h_bcc" contains "domain.com" AND IS NOT [email protected])
then
  unseen deliver "[email protected]"
endif
 
Last edited:

Deker

Well-Known Member
Feb 15, 2011
99
4
58
cPanel Access Level
Root Administrator
Hello Michael
But I need copies to send to the CEO email not a separated email.
Do you know how do I add the exception I explained above to the conditional statement?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Do you know how do I add the exception I explained above to the conditional statement?
You can simply modify the filter rule that's listed in the custom workaround and use your own. Keep in mind this method is unsupported by cPanel. The "Archiving" feature was designed to prevent the need for this type of workaround.

Thank you.