If you want to monitor or archive outgoing emails from your cPanel server (e.g., copy all emails sent from @domain.com to [email protected]), follow these simple steps:


๐Ÿ› ๏ธ Step-by-Step Guide

  1. Enable System Filter File
    • WHM โ†’ Service Configuration โ†’ Exim Configuration Manager
    • Set System Filter File to:

/etc/cpanel_exim_system_filter

Or edit /etc/exim.conf and add:

2. Edit the Filter File

  • Open:

vi /etc/cpanel_exim_system_filter

Add the following block at the end:

if $header_from: contains “@domain.com”
then
unseen deliver “[email protected]
endif

3. Restart Exim Service

/etc/init.d/exim restart

โœ… Result:
Now, all outgoing emails sent from @domain.com will be silently copied (BCC) to [email protected].

By admin