log $MATCH1
if (length($MATCH1) > 9)
{
log "--> X-Spam-toohigh."
exception {
to /home/virtual/spamtrap@yent.eu/
}
}
}
if ( /^X-Spam-Flag: YES/ )
{
log "--> X-Spam-Flag-ed."
to $HOME/$DEFAULT.Spam
}
`test -r $HOME/$DEFAULT.mailfilter`
if( $RETURNCODE == 0 )
{
log "(==) Including $HOME/$DEFAULT.mailfilter"
exception {
include $HOME/$DEFAULT.mailfilter
}
}
Mais le problème c'est que quand il traite ça : Return-Path: <etienne.meleard@electronicworkbench.org>
Delivered-To: admin@yent.eu
Received: from localhost (localhost [127.0.0.1])
by mail.yent.eu (Postfix) with ESMTP id A848E438597
for <admin@yent.eu>; Fri, 6 Jun 2008 21:50:41 +0200 (CEST)
X-Spam-Flag: NO
X-Spam-Score: 0.47
X-Spam-Level:
X-Spam-Status: No, score=0.47 tagged_above=-9999.9 required=4.3
tests=[AWL=0.470]
Received: from mail.yent.eu ([127.0.0.1])
by localhost (webmail.yent.eu [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id G1s-70oZ-ZBw for <admin@yent.eu>;
Fri, 6 Jun 2008 21:50:40 +0200 (CEST)
Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27])
by mail.yent.eu (Postfix) with ESMTP id 030CB438596
for <admin@yent.eu>; Fri, 6 Jun 2008 21:50:39 +0200 (CEST)
Received: from smtp1-g19.free.fr (localhost.localdomain [127.0.0.1])
by smtp1-g19.free.fr (Postfix) with ESMTP id 9C0491AB2AC
for <admin@yent.eu>; Fri, 6 Jun 2008 21:01:57 +0200 (CEST)
Received: from [192.168.0.64] (sud35-4-88-160-92-148.fbx.proxad.net [88.160.92.148])
by smtp1-g19.free.fr (Postfix) with ESMTP id 774A21AB2FC
for <admin@yent.eu>; Fri, 6 Jun 2008 21:01:57 +0200 (CEST)
Message-ID: <484989A4.5070809@electronicworkbench.org>
Date: 2008年6月06日 21:01:56 +0200
From: Etienne <etienne.meleard@electronicworkbench.org>
Reply-To: etienne.meleard@electronicworkbench.org
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: admin@yent.eu
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
test de la messagerie
Il saute bien le premier "if" (normal, le spam-level est égal à 0), mais il entre dans le deuxième, comme si il y avait "X-Spam-Flag: YES" dans les headers ... C'est à n'y rien comprendre (et d'ailleurs, une fois de plus, j'y comprend rien, ce test est encore plus simple que l'autre ...
[^] # Re: interpretatation ....
Posté par yent . En réponse au message Serveur mail, problèmes encore et encore (mais on s'approche de la fin). Évalué à 1.
Le filtre c'est ça :
logfile "/home/virtual/.maildrop.log"
`[ -d $DEFAULT ] || (maildirmake $DEFAULT && maildirmake -f Spam $DEFAULT && maildirmake -f sent-mail $DEFAULT && maildirmake -f SpamToLearn $DEFAULT && maildirmake -f SpamFalse $DEFAULT)`
if ( /^X-Spam-Level: (\**)/ )
{
log $MATCH1
if (length($MATCH1) > 9)
{
log "--> X-Spam-toohigh."
exception {
to /home/virtual/spamtrap@yent.eu/
}
}
}
if ( /^X-Spam-Flag: YES/ )
{
log "--> X-Spam-Flag-ed."
to $HOME/$DEFAULT.Spam
}
`test -r $HOME/$DEFAULT.mailfilter`
if( $RETURNCODE == 0 )
{
log "(==) Including $HOME/$DEFAULT.mailfilter"
exception {
include $HOME/$DEFAULT.mailfilter
}
}
Mais le problème c'est que quand il traite ça :
Return-Path: <etienne.meleard@electronicworkbench.org>
Delivered-To: admin@yent.eu
Received: from localhost (localhost [127.0.0.1])
by mail.yent.eu (Postfix) with ESMTP id A848E438597
for <admin@yent.eu>; Fri, 6 Jun 2008 21:50:41 +0200 (CEST)
X-Spam-Flag: NO
X-Spam-Score: 0.47
X-Spam-Level:
X-Spam-Status: No, score=0.47 tagged_above=-9999.9 required=4.3
tests=[AWL=0.470]
Received: from mail.yent.eu ([127.0.0.1])
by localhost (webmail.yent.eu [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id G1s-70oZ-ZBw for <admin@yent.eu>;
Fri, 6 Jun 2008 21:50:40 +0200 (CEST)
Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27])
by mail.yent.eu (Postfix) with ESMTP id 030CB438596
for <admin@yent.eu>; Fri, 6 Jun 2008 21:50:39 +0200 (CEST)
Received: from smtp1-g19.free.fr (localhost.localdomain [127.0.0.1])
by smtp1-g19.free.fr (Postfix) with ESMTP id 9C0491AB2AC
for <admin@yent.eu>; Fri, 6 Jun 2008 21:01:57 +0200 (CEST)
Received: from [192.168.0.64] (sud35-4-88-160-92-148.fbx.proxad.net [88.160.92.148])
by smtp1-g19.free.fr (Postfix) with ESMTP id 774A21AB2FC
for <admin@yent.eu>; Fri, 6 Jun 2008 21:01:57 +0200 (CEST)
Message-ID: <484989A4.5070809@electronicworkbench.org>
Date: 2008年6月06日 21:01:56 +0200
From: Etienne <etienne.meleard@electronicworkbench.org>
Reply-To: etienne.meleard@electronicworkbench.org
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: admin@yent.eu
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
test de la messagerie
Il saute bien le premier "if" (normal, le spam-level est égal à 0), mais il entre dans le deuxième, comme si il y avait "X-Spam-Flag: YES" dans les headers ... C'est à n'y rien comprendre (et d'ailleurs, une fois de plus, j'y comprend rien, ce test est encore plus simple que l'autre ...