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
- Enable System Filter File
- WHM โ Service Configuration โ Exim Configuration Manager
- Set
System Filter Fileto:
/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].