Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cpanel:email-archiving [2010-05-28 23:37:16] garrett.plasky |
cpanel:email-archiving [2010-06-11 20:01:08] garrett.plasky |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====Email Archiving with cPanel and Exim===== | =====Email Archiving with cPanel and Exim===== | ||
- | If you're interesting in saving a copy of all incoming and outgoing mail for a particular domain, look no further! This can be expanded a little further to include all domains on the server or other stipulations, | + | If you're interesting in saving a copy of all incoming and outgoing mail for a particular domain, look no further! This can be expanded a little further to include all domains on the server or other stipulations, |
First we'll need to make a copy of the existing cPanel Exim filter so our rules don't get overwritten by cPanel, so get into the shell as root: | First we'll need to make a copy of the existing cPanel Exim filter so our rules don't get overwritten by cPanel, so get into the shell as root: | ||
Line 6: | Line 6: | ||
<code console># | <code console># | ||
- | In this new file, insert the following at the bottom, modifying **domain.com** to the domain of your choosing and the email addresses appropriately as well: | + | In this new file, insert the following at the bottom, modifying **(incoming|outgoing)@domain.com** to the domain of your choosing and the email addresses appropriately as well: |
- | <q># | + | <code># |
if (" | if (" | ||
then | then | ||
Line 17: | Line 17: | ||
then | then | ||
unseen deliver " | unseen deliver " | ||
- | endif</q> | + | endif</code> |
Finally, we need to modify the default Exim filter file in the WHM so that this new file is used. Go to //Main >> Service Configuration >> Exim Configuration Editor// and modify the **System Filter File** line; save. | Finally, we need to modify the default Exim filter file in the WHM so that this new file is used. Go to //Main >> Service Configuration >> Exim Configuration Editor// and modify the **System Filter File** line; save. |