procmail
[Top] [All Lists]

Re: Re: Not scaling well

2003-09-19 10:42:42
Wow!!! Things are performing MUCH better now... Plus I have the bonus of finally grasping some of procmails more obtuse operations. Thanks again for all the suggestions... it's lists like this and the people on it that make the internet hum.

The only outstanding issue that I see is the fact that my bounce messages have little to no info in them about what the original message was. That was probably the reasoning behind the original lock file that dumped a copy of the message and echoed it back to the sender. Is there a way to dump the headers back to the reply without a lock file, etc??? No big deal for real spam, but since some users are going crazy with their blacklists, they are starting to reject some legitimate mail and it would be nice to have the bounces be a bit more informative. If not the whole header, maybe just echoing back the original subject and intended recipient or something. Here's a copy of the bounce process as it sits currently.

Thanks again!!


# Test if the email's sender is in user defined blacklisted
# if so, send it to back to sender w/ bogus user unknown
# mark with "Recipient Refusal" so it can be traced back
:0
* ? formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:" -x"Return-Path:" -x"To:" | fgrep -is -f /usr/local/apache/htdocs/secure/usermaint/
blacklist/${USER}
* ! FROM_ ?? mydomain\.com
* ! FROM_ ?? mydomain\.net
* ! ^X-Loop: postmaster(_at_)mydomain\(_dot_)com
| (formail -r \
  -I"From: ${ALTFROM}" \
  -I"Return-Path: noreply(_at_)mydomain(_dot_)com" \
  -I"X-Info: UserBlacklisted" \
  -A"X-Loop: postmaster(_at_)mydomain(_dot_)com" ; \
  echo "" ; \
echo " This user has chosen not to receive emails from this address." ; \
  echo "    If you feel this email was rejected in error, please" ; \
echo " contact them in a different manner and let them know. (#5.1.1)" ; \
  echo " ") \
  | /usr/sbin/sendmail -t -odb




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