Forward Outgoing email in cPanel
————————————————

I like to forward all incoming and outgoing email from my domain to another gmail or yahoo account. I am running with cPanel server. How should I do this. Also the emails that are being forwarded should not be know to any one. Unseen delivery of mails from my domain to another email account.

Solution:

This is the method you can do it via back end. Consider you have a domain say “hemanth.com”. You have 15 email accounts in that domain. You need all incoming and outgoing mails to another email account unknowingly to them. Just follow this method.

———————–

1. To create a blind carbon copy, go to /etc/ and create a new file:
Code:
cp cpanel_exim_system_filter cpanel_exim_system_filter2
2. Add the following at the bottom of the new file (/etc/cpanel_exim_system_filter2):
Code:
if (“$h_to:, $h_cc:, $h_bcc” contains “domain.com”)
then
unseen deliver “hemanth@domain.com”
endif
if $sender_address: contains “domain.com”
then
unseen deliver “hemanth@domain.com”
endif
Now, go to WHM > Exim Configuration Editor and change the system filter to the new path (/etc/cpanel_exim_system_filter2).

Above, please replace domain.com with the domain name you want to have all emails incoming and outgoing sent to the blind carbon copied address. Please ensure the receiving address for the incoming and outgoing emails is not on the same domain as those you are using for the forwarding, since you might end up creating some type of loop otherwise.

Leave a Reply