qmail-scanner: Move spam to "Spam" folders?

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
mfichtner
Forum User
Forum User
Posts: 22
Joined: Tue Dec 28, 2004 9:42 pm

qmail-scanner: Move spam to "Spam" folders?

Unread post by mfichtner »

First of all: Thanks a lot for the work you put into the qmail-scanner project. It's making my life a lot easier. :)

I'm on a 3ES box running PSA 7.5.1, qmail-scanner-1.24st, spamassassin 3.0.1, and SquirrelMail 1.4.2. What I'd like to do is this: If spamassassin identifies e-mail that was addressed to a local mailname as spam, I'd like to have qmail-scanner put that message into the mailname's "Spam" folder, so that POP3 users don't have to download all the tagged spam, but can still log into SquirrelMail to check their spam before deleting it.

Is there any documentation that explains how to do this?

Thanks in advance!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Well the good news is that if the SPAM folder exists, and squirrelmail is running (as in open in the browser) it will move mail to the SPAM folder now. Ive found that to be a pretty ineffective system though, since you'd have to keep webmail open all the time. Ive also used mailfiler called from a .qmail file, which works great, until PSA overwrites the file and youve got to redo everything. The latest solution Ive been toying with is a new implementation of Project Gamera that stores spam tagged mail inside mysql. Im nowhere near having anything from that particular done yet though :P Sorry!
Zenith
Forum User
Forum User
Posts: 16
Joined: Tue Jan 04, 2005 11:06 am
Location: London, England
Contact:

Unread post by Zenith »

Its interesting you mention PSA overwriting the .qmail files every so often.
I was wondering where PSA stores its master version of the .qmail file. Would it not be easier to alter that and then let PSA roll out the fix?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Theres no master file or anything like that, its all generated
Zenith
Forum User
Forum User
Posts: 16
Joined: Tue Jan 04, 2005 11:06 am
Location: London, England
Contact:

Unread post by Zenith »

ok back to the drawing board then :(

actually after doing a little homework it looks like they are created when the account is created and if the users spam-settings are change in the admin interface. One solution woul be to write a script that alters the .qmail script to include a spam deleting line if none is present.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Theres also an event system, which can run an external script when its created/modified
mfichtner
Forum User
Forum User
Posts: 22
Joined: Tue Dec 28, 2004 9:42 pm

Unread post by mfichtner »

scott wrote:Well the good news is that if the SPAM folder exists, and squirrelmail is running (as in open in the browser) it will move mail to the SPAM folder now. Ive found that to be a pretty ineffective system though, since you'd have to keep webmail open all the time.
Well, I guess I'll have to agree. That's not really a practical solution. :-/

I was thinking that since qmail-scanner supports quarantining spam messages in a specific directory (defined in $smaildir), shouldn't it be possible to determine the path of a local recipient's Spam folder and make that qmail-scanner's quarantine directory for the currently processed message?

Looking at qmail-scanner-queue.pl I'd say this should be an option -- at least in theory. Or am I missing something?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yeah you certainly have the access to qmail-scanner's internals to modify the code to do something like that.
Post Reply