On Wednesday, Oct 9, 2002, at 02:31 Canada/Mountain, zafar wrote:
hello all
i. Don't post styled/html messages.
i want to know how procmail maintain or check the block user mail.
There are a variety f ways. the simplest, in my opinon, is to create a
text file (name, for the example) killlist
and then put this in your procmailrc:
KILLFILE=$HOME/killlist
:0:
* $? formail -xFrom: | grep -i -f $KILLFILE
/dev/null
i want to select any email address to be block and in future when mail
come from this address it will be bounced.
Ah.. bounced is not the job for procmail. Once procmail has received
the message it's past the bounce stage.
However, you can do this:
KILLFILE=$HOME/killlist
:0:
* ! ^X-Loop: $KILLFILE.loop
* $? formail -xFrom: | grep -i -f $KILLFILE
| (formail -r -A "Precedence: bulk" \
-A "X-Loop: $KILLFILE.loop" ; \
echo "" ; echo "Message rejected and discarded") | $SENDMAIL -t
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail