Re: [courier-users] mail queue purge

This is a discussion on Re: [courier-users] mail queue purge within the Courier-Imap forums, part of the Mail Servers and Related category; Mark Constable wrote: > On Friday 13 October 2006 21:06, Sam Varshavchik wrote: > > > Would it be ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-13-2006
Bowie Bailey
 
Posts: n/a
Default Re: [courier-users] mail queue purge

Mark Constable wrote:
> On Friday 13 October 2006 21:06, Sam Varshavchik wrote:
> > > Would it be reasonable to script up something that could
> > > roll over the messages in the queue and "purge" the most
> > > obvious spam quickly and easily ?

> >
> > That'll work, but you'll have to run the 'courier cancel' command
> > to purge each individual message, or stop Courier before manually
> > removing the three files in the queue directories, per each message.

>
> Thanks for the hint. I'll look into the best way to grep for
> the most obvious signs of a spam message and probably stop
> the esmtpd server for a few minutes while some script runs.
>
> For now, we just bit the bullet and stopped Spamassassin and
> sure enough the mailq is dropping by about 200 msgs per minute
> so in a couple of hours we'll re-engage SA but on an empty queue.
> Many users will have an extra few dozen spams each but they'll
> also have all backed up mail from up to 48 hours ago.
>
> One small thing that was useful was this alias so that we
> didn't have to run the mailq command just to see how many
> msgs are in the queue...
>
> # alias mq
> alias mq='find /var/lib/courier/msgq -type f | wc -l'
>
> BTW can anyone suggest a more efficient spam filter other than
> Spamassassin ?


SpamAssassin is the best spam filter around, but you do have to be
careful of how you use it to prevent problems like you had here.

In general:
- Use spamc/spamd rather than calling spamassassin directly
- Don't run excessivly large add-on rulesets
- Make sure you have enough memory to support the number of spamd
children you specify.

Ask on the SpamAssassin mailling list for more detailed suggestions
for your configuration.

--
Bowie

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0