procmail
[Top] [All Lists]

Help disgnose!!!

2001-05-01 04:04:34
I am having a problem with a recipe for blocking spam:
Here it is: Please help me 'see' where the error is. I am blind!! maybe
just exhausted. I got this from the web and think it's of tremendous
help...

####

# Define the password
PASSWD_=something_personal

## Return mail if password isn't there
:0:passwd.lock

# Check for (the lack of) the password
* $ ! ^Subject:.*${PASSWD_}

## Avoid e-mail loops and accept mail from lists I am subscribed to.
* ^(TO|CC|Cc).*wash
* ! ^FROM_DAEMON
* ! ^FROM_MAILER
* ! ^List-
* ! ^(Mailing-List|Approved-By|BestServHost|Resent-(Message-ID|Sender)):
* ! ^Sender: (.*-errors@|owner-)
* ! ^X-[^:]*-List:
* ! ^X-(Authentication-Warning|Loop|Sent-To|(Listprocessor|Mailman)-Version):
* ! ^Precedence: (junk|bulk|list)
* ! ^X-Loop: wash(_at_)everest\(_dot_)wananchi\(_dot_)com
* ! ^From:.*wash@([-a-z0-9_]+\.)*everest\.wananchi\.com

# Prepare and send notification
# Be sure to customize for your sendmail path
| (formail -r \
        -i "Subject: Returned e-mail: Password or privileges required" \
        -A "X-Loop: wash(_at_)everest\(_dot_)wananchi\(_dot_)com" ; \
echo    "************************************************" ; \
echo    "*  This response message is computer-generated.*" ; \
echo    "************************************************" ; \
echo    ; \  
echo    "Email password required!" ; \
echo    "Please include (${PASSWD_}) anywhere on your subject line." ; \
echo    "Then kindly resend your e-mail to wash(_at_)wananchi(_dot_)com") ; \
        | $SENDMAIL -t

#EOF


_and_ here is the error it generates....

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo    "************************************************" ; \
echo    "*  This response message is computer-generated.*" ; \
echo    "************************************************" ; \
echo    ; \     "
Syntax error: end of file unexpected (expecting ")")
procmail: Non-zero exitcode (2) from " (/usr/local/bin/formail -r \
        -i "Subject: Returned e-mail: Password or privileges required" \
        -A "X-Loop: wash(_at_)everest\(_dot_)wananchi\(_dot_)com" ; \

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TIA


-Wash

--
Odhiambo Washington Wananchi Online Ltd.,
wash(_at_)wananchi(_dot_)com 1st Flr Loita Hse
Tel: 254 2 313985 Loita Street.,
Fax: 254 2 313922 PO Box 10286, 00100-NAIROBI,KE.

Democracy is good.  I say this because other systems are worse.
                -- Jawaharlal Nehru
_______________________________________________
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>