If you want to block mail to a recipient and specify the recipient address with a wildcard, you must use a message or content filter. Filters allow you to use regular expressions to match the sender or recipient addresses.
The ESA uses Python regular expressions. A simple wildcard construct is ".*", which will match zero or more characters up to a new line. The "." matches any single character, and the "*" matches the previous expression zero or more times in a row. Let's say you want to match recipients helpmail1, helpmail2, helpmail3, @example.com. A filter expression to match these is
The ^ matches beginning of line and the $ matches end of line, which limits the match to only firstname.lastname@example.org, but will not match email@example.com, or firstname.lastname@example.org. "\\" is an escape before the ".", so it will be taken literally. You can then use this regular expression in a message filter:
DropHelpmail if (rcpt-to == "^helpmail.*@example\\.com$") drop(); }
You can also create this as a content filter, simply by choosing 'contains' and entering the regular expression into the condition window: