Quarantined mail

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
electronicfur
Forum User
Forum User
Posts: 5
Joined: Thu Jan 12, 2006 11:53 am

Quarantined mail

Unread post by electronicfur »

How do people have their systems setup to handle qmail-scanner quarantined files?

I have some files sitting in the quarantine dir, now what do I do with them?

Is there some way to set up qmail-scanner so it just strips viruses and sends on the clean message?

Cheers,
EF
phoenixisp
Forum User
Forum User
Posts: 76
Joined: Wed Feb 16, 2005 11:30 am

Unread post by phoenixisp »

What I have done is to create a small script and set a cron job to delete the quarantined files on a daily basis. It's real easy. Let's say that the files in your quarantine folder are named host1.mydomain.com1286942 etc.

Create the file delquarantine in /usr/local/bin. In this file:

#!bin/bash

rm /var/spool/qmailscan/quarantine/new/host1*

Make it executable
#chmod +x /usr/local/bin/delquarantine

The set up a cron to empty the folder each dat at 5:00 AM

00 05 * * * /usr/local/bin/delquarantine
Sonny
electronicfur
Forum User
Forum User
Posts: 5
Joined: Thu Jan 12, 2006 11:53 am

Unread post by electronicfur »

I was going to do that, but when I checked the quarantined mail, I noticed some false positives (regarding "Disallowed content found in MIME attachment" warnings)

So just deleting is not ideal, in case there are false positives.
pepe
Forum User
Forum User
Posts: 16
Joined: Fri Sep 30, 2005 1:13 am

Unread post by pepe »

I use mutt to view it...

mutt -f /var/spool/qmailscan/quarantine

If mutt is not your system just:

yum install mutt

Hope this helps...
Post Reply