Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cpanel:email-archiving [2010-06-11 20:01:36] garrett.plasky |
cpanel:email-archiving [2011-07-05 20:45:10] garrett.plasky Approved |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====Email Archiving with cPanel and Exim===== | =====Email Archiving with cPanel and Exim===== | ||
- | If you' | + | If you' |
- | 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 and execute: |
- | <code console># cp -a / | + | <sxh shell>cp -a / |
In this new file, insert the following at the bottom, modifying **domain.com** to the domain of your choosing and the email addresses **(incoming|outgoing)@domain.com** appropriately as well: | In this new file, insert the following at the bottom, modifying **domain.com** to the domain of your choosing and the email addresses **(incoming|outgoing)@domain.com** appropriately as well: | ||
- | <code># | + | <sxh bash># |
if (" | if (" | ||
then | then | ||
Line 17: | Line 17: | ||
then | then | ||
unseen deliver " | unseen deliver " | ||
- | endif</code> | + | endif</sxh> |
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. |