I have updated some documentation:

> > We have an always_bcc setup in place for incoming mails:
> > 
> > recipient_bcc_maps = pcre:/etc/postfix/backup_bcc.pcre
> > 
> > /^(.*)@charite\.de$/            backup+${1}=charite.de@backup.invalid

Added to the text for always_bcc, sender_bcc_maps, recipient_bcc_maps:

    Note: automatic BCC recipients are subject to address
    canonicalization (add missing domain), canonical_maps,
    masquerade_domains, and virtual_alias_maps.

I think that automatic BCC recipients should not generate BCC recipients,
to avoid a program loop.

> > Now I tried to redirect mails from my private address sent to anybody
> > at charite.de to be redirected to someone else in the organisation,
> > like this:
> > 
> > rxlf.hildebra...@gmail.com REDIRECT toscx.hrn...@charite.de

Added to the text for REDIRECT actions:

    Note 2: a REDIRECT address is subject to canonicalization (add
    missing domain) but NOT subject to canonical, masquerade, bcc,
    or virtual alias mapping.

Note the difference with automatic BCC recipients. The reason for
this difference is not obvious because it is purely technical.

The excluded mappings are in the code path that generates ordinary
recipient records, and the REDIRECT address is not in an ordinary
recipient record.

This could be fixed (reuse the code path) but it is a rare edge case.
It would open the possibiliy to redirect to multiple recipients.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to