Noel Jones:
> On 1/4/2014 3:05 PM, [email protected] wrote:
> > OK so I implemented this. I get the check_sender_access part working
> > pretty good but am a little bit confused on how to REDIRECT for
> > anything else
> >
> > in my main.cf I have
> >
> > authorized_only = check_sender_access
> > proxy:mysql:/etc/postfix/mysql-authorized_only.cf
> >
> > and in the recipient_access table I have:
> > [email protected] authorized_only
> >
> > mysql-authorized_only.cf points to a mysql table that matches OK
> > with a handful of addresses .
> >
> > My issue is with the mast vajority of senders that are not
> > explicitly listed in the mysql table.
>
> Use a regexp or pcre table, with the last entry a wildcard REDIRECT.
Example:
/etc/postfix/main.cf:
authorized_only =
check_sender_access proxy:mysql:whatever
check_sender_access pcre:/etc/postfix/redirect-all.pcre
pcre:/etc/postfix/redirect-all.pcre:
. REDIRECT [email protected]
Wietse