I'm trying to setup an autoresponder to no only delete messages that are
over 50k total size, but to send a message to the sender that tells them
that the message is too large. I would like to have a detailed
explanation that I do not accept attachments or large messages at this
account and would like to provide them with an address (inside the body of
the message) that I will accept the attachment.
I was looking through the archives and found a filter that can do kind of
what I want to do. However, it is not working. I have been able auto
kill all messages over 50k, but I can't auto respond. If somebody could
help me out with this I would appreciate it. As I am new to procmail
recipies, if you could give a brief explanation of what it is doing, I
would really appreciate it.
This is the recipe that I am trying (basically cut and paste from the
archives)
:0
* > 51200
{
# Bounce messages should generally be sent to the envelope
# sender, not the header sender.
:0
* ! ^\/Return-Path:\/.+
* ! ^\/From *\/[^ ]+
{ ENV_SENDER = $MATCH }
:0 E
{ # This message doesn't have an envelope line!
# This really shouldn't happen, so consult your
# psychiatrist, or sendmail.cf hacker. We'll
# just drop the message on the floor, as there
# really isn't a better place to put it.
HOST
}
:0
| (echo "To: $ENV_SENDER"; \
echo "Subject: Message Too Large: Rejected" ; \
echo ""; cat - ) | $SENDMAIL $SENDMAILFLAGS --
"$ENV_SENDER"
}
Thanks for any assistance that you can give me.
Mike K.
grommit(_at_)grove(_dot_)ufl(_dot_)edu