copy outgoing messages to another email

How to copy the outgoing messages from the server to another email address ?
Ans :
If you want copy all the emails send to anything@domain.com to your test@gmail.com email address then you can do is by using following steps
1) Enable the System Filter File in exim configuration by using cpanel.
Main >> Service Configuration >> Exim Configuration Editor
System Filter File = /etc/cpanel_exim_system_filter
OR
vi /etc/exim.conf
system_filter=/etc/cpanel_exim_system_filter
2) vi /etc/cpanel_exim_system_filter
Then add the following code at the bottom of the file

if $header_from: contains "@domain.com"
then
unseen deliver "test@gmail.com"
endif
Save the file

3) Then restart the exim service
/etc/init.d/exim restart
 
 

Leave a Comment