You are using Email to Case Premium and would like to prevent inbound emails from specific email addresses (spam addresses) from creating cases in your Salesforce Org.
Out of the box, Email to Case Premium (E2CP) will never intentionally prevent an email from being successfully processed and creating a case. However, there are a few different ways to approach this type of situation.
1. (Recommended) Ask your IT / Email Server Administrator to prevent specific emails from forwarding into Salesforce for the problematic addresses at the Mail Server level. Also, use a Domain Name System-based Blackhole List with your email server to avoid having to update this list manually.
2. The 'Block Email List' setting in the E2CP Setup Wizard allows you to manually specify email addresses and/or domains that Email to Case Premium should automatically block from creating and updating cases in Salesforce.
3. As a Salesforce Administrator, you may consider taking the route of creating a validation rule to prevent case creation.
To create a validation rule to handle this situation, please follow the steps outlined below.
Please note: This KB article is provided as-is, and customization with Validation Rules / setting up Email Forwarding rules is not supported. For further assistance, please contact your Salesforce administrator, Salesforce implementation partner, or your Internet Creations Account Executive to inquire about professional services.