[Postfixbuch-users] ldap aliases problem mit postfix 2.3.8 (etch)

Andreas Winkelmann ml at awinkelmann.de
Di Apr 17 19:04:22 CEST 2007


On Tuesday 17 April 2007 17:50, Harald Rinker wrote:

> das ist mein erster Post an diese Liste und bisher hatte ich auch nur
> die üblichen Anfangsschwierigkeiten mit Postfix.
>
> zuerst mal meine Konfig in Kürze:
> - Debian Etch  ganz neu aufgesetzt. Cyrus 2.2 Postfix 2.3.8 mit ldap und
> tls unterstützung
> - Samba als ldap Domäne
> - zusätzlich im LDAP misc.schema wegen den Atributen maillocaladdress <-
> aliase und mailroutingaddress <user at domäne.xx>
>
> Jetzt gibt es folgendes Problem:
>
> wenn ich von extern eine mail an den alias schicke wird der alias auch
> in den mailboxnamen aufgelöst.
> leider wird aber der alias verwendet um per lmtp nach cyrus einzuliefern.
>
> zur erläuterung ein paar auszüge aus dem mail.log:
>
> Apr 17 17:13:18 patricia postfix/smtpd[5114]: dict_ldap_lookup:
> /etc/postfix/useralias.cf: Searching with filter (|(mail
> LocalAddress=alias at domain.de)(mailRoutingAddress=alias at domain.de))
> Apr 17 17:13:18 patricia postfix/smtpd[5114]: dict_ldap_get_values[1]:
> Search found 1 match(es)
> Apr 17 17:13:18 patricia postfix/smtpd[5114]: dict_ldap_get_values[1]:
> search returned 1 value(s) for requested result a
> ttribute mailRoutingAddress
> Apr 17 17:13:18 patricia postfix/smtpd[5114]: dict_ldap_get_values[1]:
> Leaving dict_ldap_get_values
> Apr 17 17:13:18 patricia postfix/smtpd[5114]: dict_ldap_lookup: Search
> returned user at domain.de
> Apr 17 17:13:18 patricia postfix/smtpd[5114]: maps_find:
> local_recipient_maps: ldap:/etc/postfix/useralias.cf(0,lock|fol
> d_fix): alias at domain.de = user at domain.de
> Apr 17 17:13:18 patricia postfix/smtpd[5114]: mail_addr_find:
> alias at domain.de -> user at domain.de
> .....

Das ist nicht die alias-Auflösung. Das ist die Abfrage der 
local_recipient_maps. Dort wird nur geprüft, ob die Adresse da ist, nicht was 
bei der Abfrage heraus kommt.

Interessant wäre, wie Du die aliases eingebunden hast. Als alias_maps oder als 
virtual_alias_maps oder vielleicht auch gar nicht. Wie lmtp eingebunden ist..

Zeig mal Deine Konfiguration.

# postconf -n

> Apr 17 17:13:20 patricia postfix/lmtp[5120]: F25C057AD3:
> to=<backup at duves.de>, relay=patricia.domain.de[public/lmtp], del
> ay=2, delays=0.79/0.02/0.17/1.1, dsn=2.1.5, status=sent (250 2.1.5 Ok)
> Apr 17 17:13:20 patricia cyrus/lmtpunix[5121]: accepted connection
> Apr 17 17:13:20 patricia cyrus/lmtpunix[5121]: lmtp connection preauth'd
> as postman
> Apr 17 17:13:20 patricia cyrus/lmtpunix[5121]: verify_user(user.alias)
> failed: Mailbox does not exist
> Apr 17 17:13:20 patricia postfix/lmtp[5120]: F25C057AD3:
> to=<alias at domain.de>, relay=patricia.domain.de[public/lmtp], d
> elay=2.2, delays=0.79/0.23/1.1/0.1, dsn=5.1.1, status=bounced (host
> patricia.domain.de[public/lmtp] said: 550-Mailbox unk
> nown.  Either there is no mailbox associated with this 550-name or you
> do not have authorization to see it. 550 5.1.1 Us
> er unknown (in reply to RCPT TO command))
>
> Ist da irgend ein Bug bekannt, weil das ganze mit dem Postfix aus Debian
> Sarge prima funktioniert.
>
> Das Problem scheint mir dass er an lmtp den alias vor dem @ anstatt den
> user vor dem @ übergibt.
> verify_user(user.alias) müsste wohl verify_user(user.user) heissen.
>
> Weiss jemand Rat
>
> MFG Harald Rinker

-- 
	Andreas



Mehr Informationen über die Mailingliste Postfixbuch-users