procmail
[Top] [All Lists]

I need procmail to "bounce" a message to the sender

1996-05-22 19:37:40
I need a little help here with a recipe, and I know that someone out there
knows how to do this. I have my procmail recipe up and running, and I love
it. I could not have done it without the assistance of many of you, so thanks.

Here's a little background. Say I have ten aliases forwarding to ten
different ISPs (user1, user2, ...user10). Everything works fine if mail is
sent to one of the ten users, but if someone sends mail to <user99>, then I
have procmail set up to send the message to a default folder since there is
no <user99>.

I'd like to change this so that mail set to someone other than one of the
ten users would be sent to the default folder (as it does now), and a
message would be "bounced" back to the sender with a message like:

WARNING: <user99> is not a valid address. Please check the address and try
again.

Please direct questions to <support(_at_)domain(_dot_)com>
---------------------------------------------------------------------

"THE ORIGINAL MESSAGE"

---------------------------------------------------------------------

So can someone tell me what I need to do to make this operational?

Thanks,

John
<jblack(_at_)runningman(_dot_)com>