Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SpamAssassin and VMailMgr
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
OmniVector
n00b
n00b


Joined: 21 Oct 2002
Posts: 37
Location: Rochester, NY

PostPosted: Fri Jan 03, 2003 3:54 am    Post subject: SpamAssassin and VMailMgr Reply with quote

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
View user's profile Send private message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Thu Jul 10, 2003 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Thu Feb 19, 2004 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum