In a previous post, I explained how to setup a catchall with Exim. This to create multiple addresses all redirecting to the same destination:
catchall_pub: driver = redirect domains = ads.mydomain.com data = firstname.lastname@example.org
Then, I wrote that on destination address we could setup a Sieve or Exim filter with a
If you want to do that directly in Exim, to have all config in one place, or simply if your destination mail box doesn’t supports filters…
Just add a
catchall_pub: driver = redirect domains = ads.mydomain.com local_parts = !/etc/exim4/ads.mydomain.com.blacklist data = email@example.com
/etc/exim4/ads.mydomain.com.blacklist we put all rejected addresses, one per line:
This way firstname.lastname@example.org and email@example.com will be rejected.