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 = email@example.com
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 = firstname.lastname@example.org
/etc/exim4/ads.mydomain.com.blacklist we put all rejected addresses, one per line:
This way email@example.com and firstname.lastname@example.org will be rejected.