procmail
[Top] [All Lists]

Re: Problems with procmail and exim

2002-12-16 00:25:45
On Sat, 14 Dec 2002, saf wrote:

Now when I receive an email I see in my log file of exim:
T=procmail_pipe defer (0): Child process of procmail_pipe transport
returned 73 (could mean can't create output file) from command:
/usr/bin/procmail And I no more receive emails!

I need urgently to configure procmail because I receive tons of chinese,
korean and russian spam mails.
The idea of me was to filter out spam with has not the charset
iso-8859-1!
(and some others) Could you please help me?

Show us your .procmailrc.


# Get the message subject
SUBJECT=`formail -xSubject: \
| sed -e 's/[;\`\\]/ /g' \
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
SENDMAIL=/usr/sbin/exim

:0
* ^Subject.*(sex|viagra|nude)
{
    :0
    |(formail -r -A "Precedence: junk" \
    -I"From: AutoReply TrashMail.net <no-reply(_at_)trashmail(_dot_)net>" \
    -I"Subject: Subject Unacceptable (Re: $SUBJECT)" \
    -A "X-Loop: no-reply(_at_)trashmail(_dot_)net"; \
    cat $FILEDIR/reply.txt ) | $SENDMAIL -t
}

This procmail won't filter out emails in strange charsets.  But
perhaps your problem is not telling exim to run procmail under a
user which has permission to write to files.

-- 
Greg Matheson
Taiwan

_______________________________________________
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>