Alexandre Ellert:
> Hello,
> 
> I often use sender_bcc_maps to audit suspicious account and it works great.
> Today, I need to have a look at email sent by null sender <>
> 
> Here is my relevant configuration :
> 
> # grep sender_bcc_maps  /etc/postfix/main.cf
> sender_bcc_maps = regexp:/etc/postfix/sender_bcc_maps
> 
> # cat /etc/postfix/sender_bcc_maps
> # This one usually works fine
> #/^u...@example.com <mailto:u...@exemple.com>$/               
> au...@example.org
> /^$/                                                  au...@example.org
> /<>/                                                  audit@example. 
> <mailto:au...@exemple.com>org

Postfix does not make queries with empty strings because some
software can't handle it. You can't use /^$/ patterns for any
Postfix lookup table.

As documented, sender_bcc_maps does not map null query keys to <>.
You can't use <> patterns in sender_bcc_maps.

Use check_sender_access instead. As documented, it maps null query
keys to <>.

        Wietse

Reply via email to