...
Line
Skip to main content
< All Topics
Print

Automatically copy incoming/outgoing emails to another mailbox in EXIM

1. Login to server via SSH

2. Goto: /usr/local/cpanel/etc/exim/sysfilter/options/

3. Create and Exim filter and give it a name, say ‘myFilter’

4. add the following code in ‘myFilter’:

if (“$h_to:, $h_cc:, $h_bcc” contains “yourdomain.com”)

then
  unseen deliver “[email protected]
endif

if $sender_address: contains “yourdomain.com”
then
unseen deliver “[email protected]
endif

5. Enable the new Exim filter by loggin in to WHM->Exim Configuration Manager > Basic Editor > Filters.

6. Scroll down a bit where you’ll see “Custom Filter: X” where X is the name of the custom filter file you created.

7. Now set it to “On” and click “Save” which will save the settings and the server will automatically restart the Exim service for the changes to be effective.

Messenger
Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.