DevHeads.net

recipient_bcc_maps: BCC for entire domain except one address

Hi,

having recipient_bcc_maps set to a map containing

@example.com <a href="mailto: ... at example dot com"> ... at example dot com</a>

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 <a href="mailto: ... at example dot com"> ... at example dot com</a>?

After adding

<a href="mailto: ... at example dot com"> ... at example dot com</a> <a href="mailto: ... at example dot com"> ... at example dot com</a>

to the map, the BCC to bcc@ isn't created but mail is sent to notforme@
twice. I'd like to avoid the latter.

Comments

Re: recipient_bcc_maps: BCC for entire domain except one address

By Jaroslaw Rafa at 12/02/2019 - 12:42

Dnia 2.12.2019 o godz. 18:11:27 Markus Schönhaber pisze:
Maybe add to recipient_bcc_maps something like

<a href="mailto: ... at example dot com"> ... at example dot com</a> <a href="mailto:throwaway@your-local-domain.com">throwaway@your-local-domain.com</a>

and then alias "throwaway" in your "aliases" file to /dev/null ?

Re: recipient_bcc_maps: BCC for entire domain except one address

By =?UTF-8?B?TWFya... at 12/02/2019 - 13:07

Hi Jaroslaw!

Jaroslaw Rafa, 02.12.19, 18:42 CET:

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.