Articles on: cPanel Tutorial

How to Forward All Incoming and Outgoing Email to An Email Account (cPanel way)

If customer request for all outgoing email forwarding, we do allow and only allow to forward to non-free email account. Incoming forwarding can use the cPanel -> Email forwarding function

Please go to step 3 if /etc/cpanel_exim_system_filter_custom already set in Step 2

1) First make sure /etc/cpanel_exim_system_filter_custom exist. If not copy /etc/cpanel_exim_system_filter to /etc/cpanel_exim_system_filter_custom

2) Go to WHM -> Exim Configuration Editor -> Filters -> System Filter File -> Set to "/etc/cpanel_exim_system_filter_custom"

3) Now edit /etc/cpanel_exim_system_filter_custom and go to last line

4) Add the code below:

if first_delivery
and ("$h_to:, $h_cc:" contains "")
or ("$h_from:" contains "")
unseen deliver ""

Replace with new domain and with new email address.

Updated on: 07/01/2023

Was this article helpful?

Share your feedback


Thank you!