8 messages in net.sourceforge.lists.courier-usersRe: [courier-users] mail queue purge
FromSent OnAttachments
Mark ConstableOct 12, 2006 7:21 pm 
Sam VarshavchikOct 13, 2006 4:06 am 
Mark ConstableOct 13, 2006 5:08 am 
Shawn M. JonesOct 13, 2006 5:24 am 
jero...@free.frOct 13, 2006 5:27 am 
Aine DouglasOct 13, 2006 6:17 am 
Bowie BaileyOct 13, 2006 9:45 am 
Mark BucciarelliOct 16, 2006 6:04 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] mail queue purgeActions...
From:Mark Constable (mar@renta.net)
Date:Oct 13, 2006 5:08:44 am
List:net.sourceforge.lists.courier-users

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 ?

--markc