Wietse Venema:
> deoren:
> >   /etc/postfix/sender-access.cf:
> >        # First, a rule that matches health-check mail.
> >        smtp-health-che...@example.com DUNNO
> >        # Add a BCC recipient to other email.
> >        * BCC f...@example.com
> > 
> > For the last entry that BCC's "everything else", is the * character a 
> > valid source?
> 
> The access map syntax is documented. http://www.postfix.org/access.5.html
> There is no '*' in there.

If you must filter on sender address, you can use a regexp: or pcre:
table.

smtpd_xxx_restrictions =
    ...
    check_sender_access pcre:/etc/postfix/sender-access.pcre
    ...

/etc/postfix/sender-access.pcre:
    # First, a rule that matches health-check mail.
    /^smtp-health-checks@example\.com$/ DUNNO
    # Add a BCC recipient to other email.
    . BCC f...@example.com

The ^, $, \, and . are special only when you use regexp: or pcre:.
They are not part of the access map syntax.

Instead of the above pair of rules you could use if..endif, but
again, those are not part of the access map syntax, but of the
specific lookup table.

        Wietse

Reply via email to