Jump to content

exim forward ALL emails


l0ve2hat3

Recommended Posts

I need a way to forward EVERY email sent and received from my server to an email address.  I know i can do this using exim filter but i dont really know how.

 

I also need it to forward if the user was CCed or BCCed.

 

So all incoming mail forwards to [email protected] and all outgoing forwards to [email protected]

 

SETUP:

cPanel 11.25.0-R43473 - WHM 11.25.0 - X 3.9

CENTOS 5.4 i686 standard on host

 

 

Link to comment
https://forums.phpfreaks.com/topic/193514-exim-forward-all-emails/
Share on other sites

Just for future reference... heres the answer:

 

I copied the contents from /etc/cpanel_exim_system_filter and created /etc/cpanel_exim_system_filter_new but I added this at the bottom of the /etc/cpanel_exim_system_filter_new file:

 

#Incoming/Outgoing Email Archiving
if ("$h_to:, $h_cc:, $h_bcc" contains "YOURDOMAIN.com")
then
  unseen deliver "[email protected]"
endif

if $sender_address_domain is YOURDOMAIN.com
then
  unseen deliver "[email protected]"
#endif

 

Then I went into the exim configuration in WHM and changed the filter file path from /etc/cpanel_exim_system_filter to /etc/cpanel_exim_system_filter_new

 

I hope this helps someone else...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.