Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to get hidden copies of all incoming and outgoing emails  (Read 5293 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
How to get hidden copies of all incoming and outgoing emails
« on: October 31, 2013, 11:11:03 am »

If you need to have hidden copies of all incoming and outgoing emails in your cPanel server, please follow the bellow given steps:

Here I am considering mailer domain name as mydomain.com.

1. To create a hidden carbon copy, go to /etc/ and create a new file:
#cp cpanel_exim_system_filter cpanel_exim_system_filter2

2. Add the following at the bottom of the new file (/etc/cpanel_exim_system_filter2):
#vi /etc/cpanel_exim_system_filter2

===
if (“$h_to:, $h_cc:, $h_bcc” contains “mydomain.com”)
then
unseen deliver “income@mydomain.com”
endif
if $sender_address: contains “mydomain.com”
then
unseen deliver “backup@mydomain.com”
endif
===

3. Now, go to WHM > Exim Configuration Editor and change the system filter to the new path (/etc/cpanel_exim_system_filter2).

Guys make sure to change your domain name with mydomain.com
 :)