Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread mouss
Martin Gregorie a écrit : > On Tue, 2008-10-21 at 20:01 +0200, mouss wrote: >> Why do you guys put a '.*' there? This would also match >> > Fair cop, guv, on both counts. > > I spotted that '[.*]' didn't do what the OP wanted and didn't look any > further. Obviously, > ^X-Spam-Status:[ \t]

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Martin Gregorie
On Tue, 2008-10-21 at 20:01 +0200, mouss wrote: > Why do you guys put a '.*' there? This would also match > Fair cop, guv, on both counts. I spotted that '[.*]' didn't do what the OP wanted and didn't look any further. Obviously, ^X-Spam-Status:[ \t]{1,40}(Yes|YES) is better than my o

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Evan Platt
Why not use procmail or other similar tool? mathiasadsl wrote: Hi all, I'm currently running a postfix server and spamassassin under Fedora Core 8. Everyhting is OK but i'd like to redirect tagged [SPAM] mails to a mailbox. I did the following: #Edit /etc/postfix/main.cf header_checks = regex

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread mouss
Martin Gregorie a écrit : > On Tue, 2008-10-21 at 07:05 -0700, mathiasadsl wrote: > >> OK, i've just tried your new regular expression but it doesnt work better. >> Nothing happened. The email is still tagged as [SPAM] and is delivered to >> user. >> > That's odd. I've just run the following: > >

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread mouss
Mariusz Kruk a écrit : > On wto, 2008-10-21 at 05:38 -0700, mathiasadsl wrote: >> Ok, it's getting better now but all my emails are forwared to >> [EMAIL PROTECTED] >> Even those which are not tagged as [SPAM] >> I guess i have some troubles with the regular expression. >> Can you help me in the s

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Martin Gregorie
On Tue, 2008-10-21 at 07:05 -0700, mathiasadsl wrote: > OK, i've just tried your new regular expression but it doesnt work better. > Nothing happened. The email is still tagged as [SPAM] and is delivered to > user. > That's odd. I've just run the following: [EMAIL PROTECTED] ~]$ grep '^X-Spam-St

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Kai Schaetzl
Mathiasadsl wrote on Tue, 21 Oct 2008 07:05:04 -0700 (PDT): > It sounds easy but nothing works. It all depends how and when your SA checks are done. If you are checking in the local postfix phase (which will be the case if you are using procmail - and you will want to use procmail for this redi

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Mariusz Kruk
On wto, 2008-10-21 at 14:49 +0100, Martin Gregorie wrote: > > > Ok, it's getting better now but all my emails are forwared to > > > [EMAIL PROTECTED] > > > Even those which are not tagged as [SPAM] > > > I guess i have some troubles with the regular expression. > > > Can you help me in the syntax

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread mathiasadsl
Martin Gregorie-2 wrote: > > On Tue, 2008-10-21 at 14:58 +0200, Mariusz Kruk wrote: >> On wto, 2008-10-21 at 05:38 -0700, mathiasadsl wrote: >> > Ok, it's getting better now but all my emails are forwared to >> > [EMAIL PROTECTED] >> > Even those which are not tagged as [SPAM] >> > I guess i h

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Mariusz Kruk
On wto, 2008-10-21 at 06:39 -0700, mathiasadsl wrote: > hi Marius, > > I've check the headers of [SPAM] mails: There's X-Spam-Status: Yes. OK. So the SA seems to be working. > I'm sorry but i'm not familiar with regular express: There is quite a lot of information out there about standard regex

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Martin Gregorie
On Tue, 2008-10-21 at 14:58 +0200, Mariusz Kruk wrote: > On wto, 2008-10-21 at 05:38 -0700, mathiasadsl wrote: > > Ok, it's getting better now but all my emails are forwared to > > [EMAIL PROTECTED] > > Even those which are not tagged as [SPAM] > > I guess i have some troubles with the regular exp

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread mathiasadsl
hi Marius, I've check the headers of [SPAM] mails: There's X-Spam-Status: Yes. I'm sorry but i'm not familiar with regular express: #/^Subject: [SPAM]*/REDIRECT [EMAIL PROTECTED] # /^X-Spam-Flag: YES/ REDIRECT [EMAIL PROTECTED] #/^X-Spam-Status:[.*](Yes|YES)/ REDIRECT [EMAIL PROTECTED] Y

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Duane Hill
On Tue, 21 Oct 2008, mathiasadsl wrote: Hi all, I'm currently running a postfix server and spamassassin under Fedora Core 8. Everyhting is OK but i'd like to redirect tagged [SPAM] mails to a mailbox. I did the following: #Edit /etc/postfix/main.cf header_checks = regexp:/etc/postfix/header_c

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Mariusz Kruk
First of all, please don't toppost. It's very annoying. On wto, 2008-10-21 at 06:04 -0700, mathiasadsl wrote: > I just tried your last syntax: > /^X-Spam-Status:[.*](Yes|YES)/ REDIRECT [EMAIL PROTECTED] It's not my syntax. I pasted it from your mail. > It doesnt work, all mails are normally deli

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread mathiasadsl
I just tried your last syntax: /^X-Spam-Status:[.*](Yes|YES)/ REDIRECT [EMAIL PROTECTED] It doesnt work, all mails are normally delivered. What can I do? Do you need more informations? This is my spamassassin conf: required_hits 5 report_safe 0 rewrite_header subject [SPAM] report_header 1 Ma

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Mariusz Kruk
On wto, 2008-10-21 at 05:38 -0700, mathiasadsl wrote: > Ok, it's getting better now but all my emails are forwared to > [EMAIL PROTECTED] > Even those which are not tagged as [SPAM] > I guess i have some troubles with the regular expression. > Can you help me in the syntax issue? Well... strange.

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread mathiasadsl
Ok, it's getting better now but all my emails are forwared to [EMAIL PROTECTED] Even those which are not tagged as [SPAM] I guess i have some troubles with the regular expression. Can you help me in the syntax issue? Mariusz Kruk wrote: > > On wto, 2008-10-21 at 04:58 -0700, mathiasadsl wrot

Re: Need Help For Redirecting SPAM to a mailbox

2008-10-21 Thread Mariusz Kruk
On wto, 2008-10-21 at 04:58 -0700, mathiasadsl wrote: > Hi all, > > I'm currently running a postfix server and spamassassin under Fedora Core 8. > Everyhting is OK but i'd like to redirect tagged [SPAM] mails to a mailbox. > > I did the following: > > #Edit /etc/postfix/main.cf > header_checks =