OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Inverse access restrictions?

From: Lloyd Zusman (hippomanpotamuses.net)
Date: Wed Apr 11 2007 - 15:58:20 CDT


Lloyd Zusman <hippoman <at> potamuses.net> writes:

>
> Kai Fürstenberg <kai_lists_postfix <at> fuerstenberg.ws> writes:
>
> > [ ... ]
> >
> > Use regexp instead of hash:
> > smtpd_recipient_restrictions = regexp:/etc/postfix/greylist-control
> >
> > greylist-control:
> > /user <at> domain\.tld/ ???WHAT-TO-DO???
> > /^.*/ greylist_policy
>
> Aha! This is the exact solution I'm looking for. I presume that pcre
> will work as well as regexp.

... and to follow up on my own post, I just now realized that if I use
pcre, I can also do this:

greylist-control:
!/userdomain\.tld/ greylist_policy

That gives me inverse access restrictions "right out of the box".

--
 Lloyd Zusman
 hippomanpotamuses.net
 God bless you.