I tried to set up a user, eg reply@mydomain, and get procmail to forward to that user, then use the vacation message for reply@mydomain. The trouble is, reply@mydomain's mail correctly shows the From email address (eg , sender@sendersdomain) but the vacation message only gets sent back to me@mydomain. Do I need to set up or disable a double bounce or something ?
OK, I'll try to explain in another way. If you take the approach of trying to blacklist and email address, and let the sender know you have blacklisted them (but with a custom response, perhaps with a phone number to call to get unblocked). I set up a user blacklist@mydomain, and created a vacation message with my custom response. If I send an email to blacklist@mydomain, I get the "polite" reply.
If then set up a procmail rule for me@mydomain that uses the From:"sender@sendersdomain", I can redirect that email to an imap folder (junkmail or blacklist or whatever) so it doesn't clog up my pop3 inbox. I can also forward that email to blacklist.
Blacklist's inbox shows the email as being sent from "sender@sendersdomain". The vacation message, however, gets sent to me@mydomain.
BTW, I had to set the VacationDelay to 1 second. Did this on both blacklist and my user. Also disabled duplicate message dump.
After I posted this I searched the forums for blacklist and found one relating to installing the Emailwbl contrib, which I installed, but couldn't get any reply to happen, 505 or anything. Not sure if I had to put the sender@sendersdomain in a blacklist for the admin or me or whether this was a global rule. Also not sure if my ISP just dumped the reply.
Will look through your script. Might show me something. I have written a few basic perl scripts, so might get something working.