Hi Jaroslaw!

Jaroslaw Rafa, 02.12.19, 18:42 CET:

> Dnia  2.12.2019 o godz. 18:11:27 Markus Schönhaber pisze:
>>
>> having recipient_bcc_maps set to a map containing
>>
>> @example.com b...@example.com
>>
>> should create a BCC for every mail sent to example.com regardless of the
>> local part.
>> Is there an easy way to define an exception, i. e. BCCs should be
>> created for every mail sent to @example.com except for notfo...@example.com?
>>
>> After adding
>>
>> notfo...@example.com notfo...@example.com
>>
>> to the map, the BCC to bcc@ isn't created but mail is sent to notforme@
>> twice. I'd like to avoid the latter.
> 
> Maybe add to recipient_bcc_maps something like
> 
> notfo...@example.com throwa...@your-local-domain.com
> 
> and then alias "throwaway" in your "aliases" file to /dev/null ?

thanks for the tip!
A minor nuisance with this is that the "delivery" to /dev/null is still
logged. But unless someone comes up with a way to avoid an additional
delivery attempt altogether, I guess I'll stick with your solution.

-- 
Regards
  mks

Reply via email to