[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cpx] CPX - Empty Quarantine, Junk and Trash



On Fri, 22 Apr 2005 13:40:44 -0400
"Brian Haines" <providertalk@xxxxxxxxxxxxxxxx> wrote:

> Store items for certain number of days

	A tip from the VPS2 list (below).  I've been testing this a bit
and it seems to work just fine.  I also had set the main .procmailrc to
/dev/null all the viruses.  In my view the "leaving the spam on the
server" is a big reason not to push spamassassin for my clients.  And I
don't see myself telling them to open all the suspected viruses to make
sure they really are viruses.  :)

> I just came across a utility in the poorts collection called archmbox, 
> which can archive, delete, report, or copy messages from an mbox mail 
> folder.  archmbox is a great way to keep tabs on the ever-growing 
> quarantine and spam folders on my servers that run SpamAssassin and 
> ClamAV. 
> 
> I now have archmbox running on all my servers in a nightly cron job that 
> deletes spam or quarantine messages more than 10 days old.  Here's how 
> easy it is to set up:
> 
> 1) Become root:
> su
> 
> 2) Install archmbox:
> cd /usr/ports/mail/archmbox
> make install
> make clean
> 
> 3) Open your root crontab for editing:
> crontab -e
> 
> 4) Add the following lines to your crontab:
> # Delete old messages from quarantine and spam folders
> @daily /usr/local/bin/archmbox -k -o 10 --totals \
> /home/*/Mail/[Qq]uarantine /home/*/Mail/[Ss]pam /home/*/Mail/Junk
> 
> 5) Inform your users that spam and virus-laden mail will be 
> automatically deleted after 10 days.
> 
> If your users keep mail in a folder other than $HOME/Mail, change the 
> file specifications to suit your installation.  To keep mail for more or 
> fewer days, change the -o value to the number of days to keep.  See 
> archmbox --help for more options.

 - Steve Yates
 - ITS, Inc.
 - COLDBEER.CAN not found: (A)bort (R)etry (P)anic

~ Taglines by Taglinator 4 - www.srtware.com ~


======================================================================
This is <cpx@xxxxxxxxxxxxx>      <http://www.groupmail.org/lists/cpx/>
Before posting a question, please search the archives (see above URL).


Home | Main Index | Thread Index
Match: Format: Sort by:
Search: