[Postfixbuch-users] aliases expansion
    Sandy Drobic 
    postfixbuch-users at japantest.homelinux.com
                  
    Di Jul  3 23:51:34 CEST 2007
    
    
Sigmund Scheinbar wrote:
> Sandy Drobic wrote:
>> Dann ist hier dein Problem, denn der Key ist nur der localpart für alias_maps.
>>
>> # sollte kein Ergebnis bringen:
>> postmap -q alias.name at example.com ldap:/etc/postfix/ldap/ldap_aliases.cf
>>
>> # sollte foo als Ergebnis bringen:
>> postmap -q alias.name ldap:/etc/postfix/ldap/ldap_aliases.cf
> 
> Tatsächlich ist hier das Problem - wie immer frage ich mich warum ich
> nicht gleich daran gedacht habe :) Vielen Dank jedenfalls allerdings
> habe ich noch immer ein paar Fragen:
> 
> Verstanden habe ich es noch nicht ganz, er liefert ja bei der anfrage
> brav den richtigen user, warum verwendet er ihn dann nicht? Wie kommt
> darauf einfach den user/local part der addr. zu verwenden? (Wo) Kann man
> dieses Verhalten ändern?
In deiner ldap_aliases.cf. Anstelle von %s musst du halt nur %u verwenden
für den local_part des Suchkeys.
       search_base (No default; you must configure this)
              The RFC2253 base DN at which to conduct the search,
              e.g.
http://www.postfix.org/ldap_table.5.html
             [....]
search_base, query_format, result_format:
              With  Postfix 2.2 and later this parameter supports
              the following '%' expansions:
              %%     This is replaced by a literal '%' character.
              %s     This is replaced by the input key.  RFC 2253
                     quoting is used to make sure that the  input
                     key  does not add unexpected metacharacters.
              %u     When the input key is an address of the form
                     user at domain,  %u  is  replaced  by  the (RFC
                     2253) quoted  local  part  of  the  address.
                     Otherwise,  %u  is  replaced  by  the entire
                     search string.  If the localpart  is  empty,
                     the  search  is  suppressed  and  returns no
                     results.
              %d     When the input key is an address of the form
                     user at domain,  %d  is  replaced  by  the (RFC
                     2253) quoted domain  part  of  the  address.
                     Otherwise,  the  search  is  suppressed  and
                     returns no results.
Wenn du nur aus dem Ergebnis den local_part zurückbekommen willst, musst
du das result_format entsprechen ändern.
-- 
Sandy
Antworten bitte nur in die Mailingliste!
PMs bitte an: news-reply2 (@) japantest (.) homelinux (.) com
    
    
Mehr Informationen über die Mailingliste Postfixbuch-users