procmail
[Top] [All Lists]

Help a newbie

1996-11-02 21:34:39
I've managed to work out a lot of things about procmail, but I'm not a
programmer so I'd be grateful of you gurus would check over these entries
for me:

# rejections ---- $PMDIR/.reject says why bulk email is a Bad Thing (tm)
        
:0 
* ^(From|Received|Message-I).*bulk-e-mail
*!^X-Loop: dbromage(_at_)metz(_dot_)une(_dot_)edu(_dot_)au
{
:0 c
| (formail -rk ; cat $PMDIR/.reject) | $SENDMAIL -oi -t | elm -s"Abuse not 
appreciated" zrs(_at_)ZRS(_dot_)NET
:0 
/dev/null
}

:0 
*^(From|Received|Message-I|Reply).*answerme.com
*!^X-Loop: dbromage(_at_)metz(_dot_)une(_dot_)edu(_dot_)au
{
:0 c
| (formail -rk ; cat $PMDIR/.reject) | $SENDMAIL -oi -t | elm -s"Abuse not 
appreciated" 
cyberpromo(_at_)CYBERPROMO(_dot_)COM,postmaster(_at_)cryberpromo(_dot_)com,wallace(_at_)cyberpromo(_dot_)com,sanford(_at_)cyberpromo(_dot_)com,abusebot(_at_)cyberpromo(_dot_)com,cyberpr(_at_)ANSWERME(_dot_)COM
:0 
/dev/null
}

:0 
* ^(From|Received|Message-I).*moneyworld.com
*!^X-Loop: dbromage(_at_)metz(_dot_)une(_dot_)edu(_dot_)au
{
:0 c
| (formail -rk ; cat $PMDIR/.reject) | $SENDMAIL -oi -t | elm -s"Mail Rejected" 
willie(_at_)moneyworld(_dot_)com
:0 
/dev/null
}

# ------------ simple bounce for remaining sites listed in $PMDIR/.spamsites
:1 
? fgrep -i -f $PMDIR/.spamsites
{ 
:0hfw 
| formail -rk -i "Subject: Mail Refused" 

:0bfwi 
| echo \ 
"Mail from your site is not accepted here."

:0 
! -oi -t 
} 


# ---- Steve Winter gets special treatment

:0
*^(From|Received).*prime.org
*!^X-Loop: dbromage(_at_)metz(_dot_)une(_dot_)edu(_dot_)au
EXITCODE=77


This is not the complete list of filters, just a select few I wish to have
checked.

Cheers
David

<Prev in Thread] Current Thread [Next in Thread>