How to Copy outgoing emails from server to another email
How to copy the outgoing messages from the server to a different email address ?
If you would like to copy all the emails sent to [email protected] to your [email protected] email address then you can do so by using the following steps
1) By using cPnael hosting account, allow the System Filter File in Exim.
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”[email protected]”
endif
Save the file
3) Then restart the exim service
/etc/init.d/exim restart