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 incoming@emailserver.com and all outgoing forwards to outgoing@emailserver.com

 

SETUP:

cPanel 11.25.0-R43473 - WHM 11.25.0 - X 3.9

CENTOS 5.4 i686 standard on host

 

 

Link to comment
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 "incoming@YOURDOMAIN.com"
endif

if $sender_address_domain is YOURDOMAIN.com
then
  unseen deliver "outgoing@YOURDOMAIN.com"
#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...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.