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.
and ( (“$h_from:” contains “firstname.lastname@example.org”)
or (“$h_from:” contains “email@example.com”)
or (“$h_from:” contains “firstname.lastname@example.org”)
unseen deliver “email@example.com”
firstname.lastname@example.org, email@example.com, firstname.lastname@example.org are the email addresses to be tracked. email@example.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 .