Webhosting Blog

Tracking outgoing emails in cPanel without BCC

Sometimes through your cPanel you might want to track all the outgoing emails from the domain without adding the BCC in the email header.

In order to track all the outgoing emails you can follow following steps:

1) Login to the server as root.

2) Open the file /etc/cpanel_exim_system_filter. This is Exim system filter file.

[root@server~]# vi /etc/cpanel_exim_system_filter

3) Find the line which says “if first_delivery“.

Now insert following lines in the line below if first_delivery.

if first_delivery
and ( (“$h_from:” contains “test1@test.com”)
or (“$h_from:” contains “test2@test.com”)
or (“$h_from:” contains “test3@test.com”)
unseen deliver “traced@test.com”

test1@test.com, test2@test.com, test3@test.com are the email addresses to be tracked.  traced@test.com is the email adress at which the outgoing emails will be tracked(without the BCC in the header). If you have to add more domains, Place same code below the previous code, replacing with appropriate email address and the BCC email address.

4) Save the file.

5) Restart the exim service.

[root@server~]# service exim restart

6)Now you can track the emails without letting know the sender .


2 responses

  1. This blog is superb!! And the above post was awesome!!

    Good work Sarina… :P

    February 16, 2012 at 4:39 am

  2. Pingback: Store Copy of Incoming/Outgoing Emails « Linux Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s