[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] spam and procmail tricks
- Subject: Re: [vps-mail] spam and procmail tricks
- From: ADNET Ghislain <gadnet@xxxxxxxxxx>
- Date: Tue, 31 Jan 2006 01:35:09 +0100
ok i tested it without changing anything and it worked ! :)
droppriv=yes and no special privileges !
DROPPRIVS=yes
LOGFILE=/dev/null
LOGABSTRACT=yes
VERBOSE=no
## deliver seen messages immediately
:0
* H ?? ^X-Loop: postmaster
{ SWITCHRC }
:0fw
|/usr/local/bin/spamc -U /var/run/spamd.sock
## find spammy messgages we haven't seen yet
:0
* H ?? ^X-Spam-Flag: YES
* ! H ?? ^X-Loop: postmaster
{
## ... and tag them
:0 fw
| formail -I "X-Loop: postmaster"
## now resend the message to postmaster (will get caught in the
## recipe above)
:0
! postmaster
}
Thanks Scott.
Cordialement,
Ghislain ADNET.
AQUEOS.
> So you want to add some loop detection:
>
> ## deliver seen messages immediately
> :0
> * H ?? ^X-Loop: postmaster
> { SWITCHRC }
>
> ## find spammy messgages we haven't seen yet
> :0
> * H ?? ^X-Spam-Flag: YES
> * ! H ?? ^X-Loop: postmaster
> {
> ## ... and tag them
> :0 fw
> | formail -I "X-Loop: postmaster"
>
> ## now resend the message to postmaster (will get caught in the
> ## recipe above)
> :0
> ! postmaster
> }
>
> I haven't tested this, but it should be pretty close.
>
> Scott
>
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).
Main Index |
Thread Index