Start a conversation

How to Copy outgoing emails from a server to another email

How to copy the outgoing messages from the server to another email address?

If you want to 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

System Filter File = /etc/cpanel_exim_system_filter

OR You can also use:

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 “@yourdomain.com”

then

unseen deliver”testing@gmail.com”

endif

Save the file

3) Then restart the exim service

/etc/init.d/exim restart

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Diya Ahmed

  2. Posted

Comments