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: Copy outgoing emails from server to another email - Exim  (Read 2571 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Copy outgoing emails from server to another email - Exim
« on: April 05, 2014, 11:24:44 pm »
If you want copy all the emails sent to anything@yourdomain.com to your testing@gmail.com email address then you can do so by using the following steps

1) Enable the System Filter File in exim configuration by using cPanel hosting account.

Main >> Service Configuration >> Exim Configuration Editor
Code: [Select]
System Filter File = /etc/cpanel_exim_system_filter
OR You can also use:

Code: [Select]
vi /etc/exim.conf

system_filter=/etc/cpanel_exim_system_filter

Code: [Select]
2) vi/etc/cpanel_exim_system_filter
Then add the following code at the bottom of the file

Code: [Select]
if $ header_from:contains “@yourdomain.com”

then

unseen deliver”testing@gmail.com”

endif

Save the file

3) Then restart the exim service

Code: [Select]
/etc/init.d/exim restart
Thank you,