Re: OT: [vchkpw] SpamAssassin, Vpopmail, conditional handling onSpam Score?

2003-05-31 Thread Andrew
On Tue, 2003-05-27 at 18:33, Mark Pearce wrote:
> > I'm running the QMAILQUEUE patch with SpamAssassin into Vpopmail with 
> > Mysql and Courier.
> > 
> > I'm running SpamAssassin with spam threashold "required_hits" = 8.
> > 
> > I allow direct delivery to the mailbox, but it is subject prefixed 
> > "[SPAM]"  (thus it is Spam Tagged)
> > 
> > What I'd like to do is add another "threashold" (probably in SA?)
> > where the spam score of >15 is sent to /dev/null.  Scores from 7-14.99
> > are spam tagged (and delivered) and scores less than 7 are not spam
> > tagged. 
> >  (I've been seeing spam scores as high as 28.8 recently BTW)
> 
> Hi
> 
> I know this is OT but what are the flags you are using to start spamd
> and as what user?  I am running the same setup on my OpenBSD server. 
> All my messages get a spam status header, but try as I may, I cannot get
> the system to rewrite the subject.  
> 
> Is qmaild the correct user to run as, because any other user that I try
> running as I get a user not found error and my log files show any other
> user but qmaild as "vpopmail@" or "spamd@".
> 
> Thanks
> 
> Mark

You can run spamc/spamd as anyone. I have created a spamc user that does
all the work, I'm doing sitewide filtering. Spamd is started with:

#!/bin/sh
exec /usr/bin/spamd \
-a \
-d \
-u spamc \
-L \
-x \
-m 10

Subject line tagging depends on how you call spamd. If you are using
something like qmail-scanner for example, you may have to play with your
compile flags there. Ultimately, spamd is going to use the
/usr/mail/spamassassin/local.cf file for anything that you want to
change from default.

I would seriously consider taking all these issues over to the
Spamassassin list. You'll get good answers there.

-- 
Andrew <[EMAIL PROTECTED]>




Re: [vchkpw] SpamAssassin, Vpopmail, conditional handling on SpamScore?

2003-05-29 Thread Andrew Lawton
Remo Mattei wrote:

I got some of 40+ just for your info. This will be a good extra thing :)
Let us know, 

-- Remo Mattei   --cell 801-209-8554
  http://www.italy1.com
  Freelance Networking-Security/Consultant
  MCSE, MCP, MCP+I, MCT
  Linux Trainer & Firewall Development
  [EMAIL PROTECTED]
   

 

From: Dave Richardson - Lists <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Tue, 27 May 2003 16:42:33 -0500
To: [EMAIL PROTECTED]
Subject: [vchkpw] SpamAssassin, Vpopmail, conditional handling on Spam Score?
I'm running the QMAILQUEUE patch with SpamAssassin into Vpopmail with
Mysql and Courier.
I'm running SpamAssassin with spam threashold "required_hits" = 8.

I allow direct delivery to the mailbox, but it is subject prefixed
"[SPAM]"  (thus it is Spam Tagged)
What I'd like to do is add another "threashold" (probably in SA?) where
the spam score of >15 is sent to /dev/null.  Scores from 7-14.99 are
spam tagged (and delivered) and scores less than 7 are not spam tagged.
(I've been seeing spam scores as high as 28.8 recently BTW)
Is there a "normal" way to do this?
D.


   

If you asked this question over at the SpamAssassin list, they would advise against sending high scoreing hits to /dev/null. There are two main reasons. One is (believe it or not) you actually could get a false positive removed. This usually happens with html based newsletters. The other reason is that high scores are useful for training the Bayes filtering.

Just something to keep in mind.

 






Re: [vchkpw] SpamAssassin, Vpopmail, conditional handling on SpamScore?

2003-05-28 Thread Peter Palmreuther
Hi Peter,

On Wed, 28 May 2003 10:26:17 +0200 Peter Palmreuther wrote:

> Additionally this would be of much use for you.

s/would/wouldn't/
-- 
Ciao,
 Pit



Re: [vchkpw] SpamAssassin, Vpopmail, conditional handling on SpamScore?

2003-05-28 Thread Peter Palmreuther
Hi Dave,

On Tue, 27 May 2003 16:42:33 -0500 Dave Richardson - Lists wrote:

> I'm running the QMAILQUEUE patch with SpamAssassin into Vpopmail with 
> Mysql and Courier.
> 
> I'm running SpamAssassin with spam threashold "required_hits" = 8.
> 
> I allow direct delivery to the mailbox, but it is subject prefixed 
> "[SPAM]"  (thus it is Spam Tagged)
> 
> What I'd like to do is add another "threashold" (probably in SA?) where 
> the spam score of >15 is sent to /dev/null.  Scores from 7-14.99 are 
> spam tagged (and delivered) and scores less than 7 are not spam tagged. 

Once there was a second threshold in SA that discarded mails with more
than score XX. But IIRC it's gone now and also sent an autoreply
instead of simply discarding the mail.
Additionally this would be of much use for you.

Qmail-scanner pushes a message to spamd. Even if spamd would decide to
discard the mail and return nothing to qmail-scanner QS would handle
this either as an error and pass the unaltered mail through or if it
would get back an empty message pass the empty message through.

So what you need as a modification to qmail-scanner that discards mails
with a score above a defined threshold by itself.

I'm using the "fast-spamd" method of qmail-scanner therefore it's easy
to figure out the score the message got. Modifying QS shouldn't be that
hard.
If you're using the method where QS passes the mesasge to spamd and
expectes the altered message back (instead of just the score) it could
be more difficulty.

As QS is pure Perl I'd suggest: go ahead, open a text editor of your
choice and modify QS according to your needs.
Pass the patch to the QS developer(s) and chances are it's included
somewhere in the next release and more people will benefit from your
idea and work.

P.S.: For future mails to this list you really should disable "Reply-To".
  1.) It's superfluous. It contains the same address as "From" and
  therefore is absolutely useless.
  2.) It makes it impossible to easily reply to the list for those MUAs
  capable of List-Reply by evaluating 'List-Post' header.
  'Reply-To' takes, for obvious reasons, precedence over
  'List-Post'.
 Thank you.
-- 
Ciao,
 Pit



OT: [vchkpw] SpamAssassin, Vpopmail, conditional handling on SpamScore?

2003-05-27 Thread Mark Pearce
> I'm running the QMAILQUEUE patch with SpamAssassin into Vpopmail with 
> Mysql and Courier.
> 
> I'm running SpamAssassin with spam threashold "required_hits" = 8.
> 
> I allow direct delivery to the mailbox, but it is subject prefixed 
> "[SPAM]"  (thus it is Spam Tagged)
> 
> What I'd like to do is add another "threashold" (probably in SA?)
> where the spam score of >15 is sent to /dev/null.  Scores from 7-14.99
> are spam tagged (and delivered) and scores less than 7 are not spam
> tagged. 
>  (I've been seeing spam scores as high as 28.8 recently BTW)

Hi

I know this is OT but what are the flags you are using to start spamd
and as what user?  I am running the same setup on my OpenBSD server. 
All my messages get a spam status header, but try as I may, I cannot get
the system to rewrite the subject.  

Is qmaild the correct user to run as, because any other user that I try
running as I get a user not found error and my log files show any other
user but qmaild as "vpopmail@" or "spamd@".

Thanks

Mark



Re: [vchkpw] SpamAssassin, Vpopmail, conditional handling on SpamScore?

2003-05-27 Thread Remo Mattei
I got some of 40+ just for your info. This will be a good extra thing :)
Let us know, 


-- Remo Mattei   --cell 801-209-8554
   http://www.italy1.com
   Freelance Networking-Security/Consultant
   MCSE, MCP, MCP+I, MCT
   Linux Trainer & Firewall Development
   [EMAIL PROTECTED]


> From: Dave Richardson - Lists <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 27 May 2003 16:42:33 -0500
> To: [EMAIL PROTECTED]
> Subject: [vchkpw] SpamAssassin, Vpopmail, conditional handling on Spam Score?
> 
> I'm running the QMAILQUEUE patch with SpamAssassin into Vpopmail with
> Mysql and Courier.
> 
> I'm running SpamAssassin with spam threashold "required_hits" = 8.
> 
> I allow direct delivery to the mailbox, but it is subject prefixed
> "[SPAM]"  (thus it is Spam Tagged)
> 
> What I'd like to do is add another "threashold" (probably in SA?) where
> the spam score of >15 is sent to /dev/null.  Scores from 7-14.99 are
> spam tagged (and delivered) and scores less than 7 are not spam tagged.
> (I've been seeing spam scores as high as 28.8 recently BTW)
> 
> Is there a "normal" way to do this?
> D.
> 
> 
> 



[vchkpw] SpamAssassin, Vpopmail, conditional handling on Spam Score?

2003-05-27 Thread Dave Richardson - Lists
I'm running the QMAILQUEUE patch with SpamAssassin into Vpopmail with 
Mysql and Courier.

I'm running SpamAssassin with spam threashold "required_hits" = 8.

I allow direct delivery to the mailbox, but it is subject prefixed 
"[SPAM]"  (thus it is Spam Tagged)

What I'd like to do is add another "threashold" (probably in SA?) where 
the spam score of >15 is sent to /dev/null.  Scores from 7-14.99 are 
spam tagged (and delivered) and scores less than 7 are not spam tagged. 
(I've been seeing spam scores as high as 28.8 recently BTW)

Is there a "normal" way to do this?
D.



Re: [vchkpw] SpamAssassin + vpopmail

2003-02-20 Thread J. Kendzorra
> - you *can* set up a 5 minute cron job that cp -f
> .qmail-default.WHAT_I_WANT .qmail-default

That wouldn't be the solution, because different users may use different ways 
to handle bounces and that would get lost then.
I'm no programmer or h4x0r, may anyone tell if it's possible to do a cronjob 
with some shellscript like this:

if in .qmail-default exists
| preline /usr/bin/spamc -f -u $EXT@$HOST
then exit
else
add 
| preline /usr/bin/spamc -f -u $EXT@$HOST
into beginning?

Thanks,
Juergen




Re: [vchkpw] SpamAssassin + vpopmail

2003-02-18 Thread Andrew Kohlsmith
> I use SpamAssassin for whole domains as the following:
> | preline /usr/bin/spamc -f -u $EXT@$HOST | /home/vpopmail/bin/vdelivermail
>
> '' bounce-no-mailbox
> Whenever a user changes his settings for bounce/whatever, the qmail-default
> is changed into normal settings, missing the "spamc"-tag.
> What can I do to always let qmailadmin add
>
> | preline /usr/bin/spamc -f -u $EXT@$HOST
>
> when it changes .qmail-default?
> Any suggestions?

Yeah -- use procmail.  :-)  Seriously that is what we are doing.

A couple things I did learn in the process:

- you cannot make .qmail-default immutable (chattr +i) -- vpopmail/qmailadmin 
goes ballistic (can't remember which, probably the latter)

- you *can* set up a 5 minute cron job that cp -f .qmail-default.WHAT_I_WANT 
.qmail-default

- use procmail.

I was doing #2 for a while but settled on #3 since it lets me do some further 
magic like tossing the spam mail into the user's .spam IMAP folder.

Regards,
Andrew




[vchkpw] SpamAssassin + vpopmail

2003-02-18 Thread J. Kendzorra
Hi list,
I use SpamAssassin for whole domains as the following:
| preline /usr/bin/spamc -f -u $EXT@$HOST | /home/vpopmail/bin/vdelivermail 
'' bounce-no-mailbox
Whenever a user changes his settings for bounce/whatever, the qmail-default 
is changed into normal settings, missing the "spamc"-tag.
What can I do to always let qmailadmin add
| preline /usr/bin/spamc -f -u $EXT@$HOST 
when it changes .qmail-default?
Any suggestions?

Thanks,
J.