procmail
[Top] [All Lists]

Failure to write

2001-12-02 10:13:12
Hello 

I'm having a strange problem with procmail and my anti-spam perl
script.  I get a certain behavior with certain nuesanse posters who seem
to get around the procmail reciepe.  I've racked my brains on this and
can't seem to find the trouble myself.

The reciepe being used looks like this:
PATH=/bin:/usr/bin:/usr/bin  
MAILDIR=$HOME/mail
LOGFILE=$MAILDIR/from

:0 w
* ^From.*hudes\.org
|/home/ruben/reject.pl



This normally works.  But for this address I get the following error in
the mail/from file:

 371 SENT
 372 procmail: Error while writing to "/home/ruben/reject.pl"


The reject file looks like this:
while(<>){
        s/[^A-z:(_dot_)(_at_)0-9]//g;
#       if(/^\n$/){
#               print STDERR "The End\n";
#       last;
#}
        s/\"//g;
        if( /(From:\s*"?[
\w-.].*"?)\b<?([\w](_dot_)+\(_at_)[-a-z(_dot_)A-Z=]+\(_dot_)((com)|(net)|(org)))(?!<)/
 ){
                print  STDERR "ONE $1 \n Two $2 \n Three $3\nYour Mail
is being REJECTED - See ya\n";
                open MAIL, "|mail $2 -s rejected";
                print MAIL "
Your Mail has been REJECTED.  Either you\'ve sent spam or crossed
the line of civility in a previous interaction.
It could be that this message has been triggered by key spam
favorite words in the subject like Stock, Blank Subjects, Sex or Money.

Good-bye..  ";
                print  STDERR "ONE $1 \n Two $2 \n Three $3\nYour Mail
is being REJECTED - See ya\n";
        }
        close MAIL;
        last;
#       print STDERR "Was it caught?\n $_";
}
print STDERR "SENT\n";



Any clues?


Ruben
-- 
__________________________

Brooklyn Linux Solutions
__________________________
http://www.mrbrklyn.com - Consulting
http://www.brooklynonline.com - For the love of Brooklyn
http://www.nylxs.com - Leadership Development in Free Software
http://www.nyfairuse.org - The foundation of Democracy
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and
articles from around the net
http://www2.mrbrklyn.com/mp3/annie.mp3 - Armed and Dangerous....
http://www2.mrbrklyn.com/downtown.html - See the New Downtown
Brooklyn....

1-718-382-5752
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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