View previous topic :: View next topic |
Author |
Message |
OmniVector n00b
Joined: 21 Oct 2002 Posts: 37 Location: Rochester, NY
|
Posted: Fri Jan 03, 2003 3:54 am Post subject: SpamAssassin and VMailMgr |
|
|
Hi all, i've tried googling and the IRC chat but no one has been of much help.
I'm trying to setup site-wide spam filtering with spamd/spamc and vmailmgr.
I'm sure the file i need to edit is ~/.qmail-default (which contains |/usr/bin/vdeliver) but to what i don't know.
I've read a lot about filtering with procmail, but i'm a little confused how i would set this up in conjunction with vmailmgr.
I'm thinking something like this for the .qmail-default file
Code: | |/usr/bin/procmail|/usr/bin/vdeliver |
and then setting up a .procmailrc file with something along the lines of
Code: | :0fw: $BOXLOCK
* < 512000
| spamassassin -a
:0:
* ^X-Spam-Status: Yes
spam/ |
but i don't think this setup will work with the virtual mail user system
maybe i need something like this for my .qmail-default file?
Code: | |/usr/bin/spamc | /usr/bin/vdeliver |
but i don't see how that could help much since i don't think spamc can tell vdeliver to put the message in to the user's spam/ directory _________________ -Tristan |
|
Back to top |
|
|
haimat Apprentice
Joined: 05 Sep 2002 Posts: 239 Location: Vienna / Austria
|
Posted: Thu Jul 10, 2003 8:16 am Post subject: |
|
|
I made that w/o any procmail or .qmail-default modification. It's quite simple:
Code: | cp /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.orig
chown qmailq.qmail /var/qmail/bin/qmail-queue*
chmod u+s /var/qmail/bin/qmail-queue*
|
Now delete old qmail-queue:
Code: | echo > /var/qmail/bin/qmail-queue |
Then you have to edit the file and input this:
Code: | #!/bin/sh
/usr/bin/spamc | /var/qmail/bin/qmail-queue.orig
|
Now all mails are piped through spamc.
HTH, Matthias |
|
Back to top |
|
|
thinair Tux's lil' helper
Joined: 01 Nov 2002 Posts: 144 Location: Suisse
|
Posted: Thu Feb 19, 2004 4:55 pm Post subject: |
|
|
Did you found a solution.. (with vmailmgr)
I am looking for the same... to redirect spam identified by spamassassin into a sub imap folder: spam. and this directly on ther server...
:0:
* ^X-Spam-Status: Yes
spam/
thank you for your help... _________________ http://www.gentoofr.org
Le site francophone de GNU/Linux Gentoo |
|
Back to top |
|
|
|