On Sun, 2010-02-14 at 23:44 +0100, mouss wrote:
> Stefan Palme a écrit :
> >> check_recipient_access hash:/etc/postfix/recipients
> >> check_recipient_access pcre:/etc/postfix/recipients_default
> >>
> >> //  REJECT rejected for testing purposes
> > 
> > Thanks for the hint. But the content of "recipients_default" must
> > also be stored in LDAP (because some admin with LDAP access privileges
> > will define the default behaviour), so I can not use regular expression
> > lookups, but only the lookups as defined by the access(5) syntax.
> > 
> 
> if it's in ldap, then do it in ldap instead of pcre. make your ldap
> query return the "default behaviour" whatever the key is.

Something like this?

  check_recipient_access ldap:/etc/postfix/recipients.cf
  check_recipient_access ldap:/etc/postfix/recipients_default.cf

with /etc/postfix/recipients_default.cf:
  search_base = ou=postfix,dc=example,dc=com
  query_filter = (&(objectClass=postfixConfiguration)(cn=DEFAULT_BEHAVIOUR))

Nice idea... Have to take a look at this.

Thanks a lot!
-stefan-


Reply via email to