# procmail file # # VERBOSE=yes # LOGFILE=/tmp/log COMSAT=no FILE="$0" SENDER="$1" RECIPIENT="$2" INCLUDERC=/usr/local/etc/procmailrc HOME=/home/spamass MYHOST=lijst.wirelessleiden.nl :0 * RECIPIENT ?? postmaster@lijst.wirelessleiden.nl ! dirkx@webweaving.org :0 * RECIPIENT ?? null@lijst.wirelessleiden.nl /dev/null :0 * RECIPIENT ?? postmaster@wirelessleiden.nl ! dirkx@webweaving.org :0 fw |/usr/local/bin/spamc -f -d 127.0.0.1 -u spamass :0e { EXITCODE=$? } :0: * ^Subject:.*\*\*\*\*SPAM\*\*\*\* * RECIPIENT ?? ()\/[^@]+@ ! owner-$MATCH\localhost :0 * RECIPIENT ?? .*outgoing@wirelessleiden.nl ! postmaster$MYHOST # :0 c # * To: .*@wirelessleiden.nl # * RECIPIENT ?? ()\/[^@]+@ # |(formail -r -i "From: owner-$MATCH$MYHOST" # -i "Reply-to: owner-$MATCH$MYHOST"; cat # /etc/mail/maps/newname.txt | sed -e s/XXX/$MATCH/g; # echo postmaster@$MYHOST ) | sendmail -oi -t -f postmaster@$MYHOST # # # Content-Type: text/plain; charset=iso-8859-1 :0 * ^Content-type: * ! ^Content-type: text/plain.* * RECIPIENT ?? ()\/[^@]+@ n :0 w * ^Content-type: * ! ^Content-type: text/plain /dev/null :0 * From: MAILER-DAEMOM * Subject: .*failure * To: owner- ! postmaster@$MYHOST :0 * RECIPIENT ?? ()\/[^@]+@ ! $MATCH\localhost :0 /dev/null