cPanel email autorespond and discard email
You're going on holiday / vacation, or maybe a longer break like a Sabbatical, and you don't want a month's worth of emails waiting for you when you get back - so you want to turn off your email and send an auto-response to anyone who emails you.
The solution is not at all obvious.
If you use cpanel to suspect incoming emails, users get a nasty 550 message and no auto response.
If you use a filter to discard the email or redirect to a folder, the autoresponder won't work.
Here's what you need to do:
1. Set up an autoresponder for a made-up email on your domain. I just stuck a 1 on my email - so if my real email was dave@example.com I made an autoresponder for dave1@example.com. Make sure the "from" field has your main email in it (dave@example.com)
2. Set up a filter on your normal email account. This should have two actions:
(i) for all "has not been previously delivered" emails, redirect to the new autoresponder email (dave1@example.com),
(ii) discard the email
Now any email sent to dave@example.com gets redirected to dave1@example.com, triggering the autoresponse, and then gets deleted.
The only issue with this is that the email reply has the wrong email, dave1@example.com, but maybe they won't notice. I actually used a fake email of dave.on.sabbatical@example.com IRL
That'll do it. Why you can't just have the autoresponder on your email and then discard the email I don't know...