I call spamc via my maildrop .mailfilter, that way i can pull userprefs
for that specific vpopmail user from my sql prefs.

------------------------------------
VPOP="| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

`test -d $VHOME/Maildir`
if ( $RETURNCODE == 1 )
{
   echo "Sorry, no mailbox here by that name. (#5.1.1)"
   EXITCODE=100
   exit
}

`test -d $VHOME/Maildir/.Spam`
if ( $RETURNCODE == 1 )
{ 
   `/usr/local/bin/maildirmake -f Spam $VHOME/Maildir`
   `echo Inbox.Spam >> $VHOME/Maildir/courierimapsubscribed`
}


if ( $SIZE < 262144 )
{
        exception {
                xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
        }
}

if (/^X-Spam-Flag: *YES/)
{
        exception {
                include $VHOME/Maildir/.mailfilter
        }
        exception {
                to "$VHOME/Maildir/.Spam"
                exit
        }
        exception {
                to "$VPOP"
                exit
        }
}
else
{
        exception {
                include $VHOME/Maildir/.mailfilter
        }
        exception {
                to "$VPOP"
                exit
        }
}
exit
---------------------------------

Realize you will need to apply the seekable patch to vpopmail for it to
work correctly.  see www.thesafebox.com for the vpopmail 5.2 patch.   If
you dont like the way I test for non-existent users and bounce them, you
can check out the patch from Bill Shupp (www.shupp.org) that adds a
recipient check to vpopmail before delivery.

I only use qmailscanner to call SA and AV when it's a mail gateway and
I'm using smtproutes to pass the mail on to a backend server.

sorry for top posting... on MS client :)   hope that was informational! 

Dallas




-----Original Message-----
From: Johan Kuuse - Red Antigua [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2003 11:34 AM
To: [EMAIL PROTECTED]
Subject: [Qmail-scanner-general]qmail-scanner + SpamAssassin
question/doubt


Trying to be on-topic:

I use qmail-scanner 1.16 + SpamAssassin 2.50 + ClamAV 0.54 + vpopmail
5.3.12
+ courier-IMAP 1.7.0 + maildrop 1.5.2
Qmail-Scanner calls SpamAssassin, which detects any spam and adds the
X-Spam-Status header. Right now I am using maildrop to move such spam to
an IMAP-subfolder, in my example called ".Spam". I "feel" that it is
overkill using maildrop only to move the spam mail, am I right?
Everything works fine, but there is one doubt about: Qmail-Scanner calls
ClamAV to detect virus, and if found, it is moved to the quarantine
folder. I am aware that spam is of "subjective" nature, and should not
be moved or deleted unconditionally. But can/should this be done (moving
spam to a specified folder) by Qmail-Scanner? Qmail-Scanners task is
only to invoke SpamAssassin, is that right? Is my approach correct
(using both Qmail-Scanner and maildrop to detect and move a spam mail),
or any alternative (less resource-intensive) solution?

Best Regards,
Johan Kuuse



----- Original Message -----
From: "Jason Haar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 1:58 AM
Subject: Re: Fw: [Qmail-scanner-general]error when run
qmail-scanner-queue.pl -z


> Chris wrote:
>
> >Dear Jason,
> >
> >is there any update on the Perl5.8 compatible issue? or i must 
> >downgrade
the
> >perl? thanks.
> >
> >
> There are no "perl5.8 issues" anymore. You're problem appears to be 
> with perl on Solaris9.
>
> The error you refer to is specifically to do with syslog support - I'd

> recommend you start looking there.
>
> Jason
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open! Get 
> cracking and register here for some mind boggling fun and the chance 
> of winning an Apple iPod: 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Qmail-scanner-general mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
>



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to