[Postfixbuch-users] aliases-Veständisfrage

Andreas Meyer anmeyer at anup.de
Fr Jan 3 23:28:41 CET 2003


Ralf!

Am Fri, 3 Jan 2003 22:57:13 +0100 schrieb Ralf Hildebrandt:

> > raid0:/var/log # mail raid0 at meyer.home
> > Subject: test
> > test
> > .
> > EOT
> 
> Das kommt nie am smtpd vorbei, da nix SMTP spricht.

Danke!
 
> > postfix/pickup[2527]: 6CA14335DE: uid=0 from=<root>
> > postfix/cleanup[2616]: 6CA14335DE: message-id=<20030103214638.6CA14335DE at raid0.meyer.home>
> > postfix/nqmgr[2526]: 6CA14335DE: from=<root at raid0.meyer.home>, size=315, nrcpt=1 (queue active)
> > postfix/cleanup[2616]: E3523335DF: message-id=<20030103214638.6CA14335DE at raid0.meyer.home>
> > postfix/local[2618]: 6CA14335DE: to=<raid0 at meyer.home>, relay=local, delay=1, status=sent
> 
> Siehste, kein smtpd.
> 
> > Irgendwie häng ich durch...
> 
> Ohne local_recipient_maps sagt Postfix's smtpd (wie Qmail) zu JEDEM Empfaenger
> 250 OK. MIT local_recipient_maps sagt Postfix's smtpd nur zu
> Empfaengern in local_recipient_maps 250 OK, zu allen anderen 554 User
> unknown. Mit der tatsaechlichen Zustellung hat local_recipient_maps
> nichts zu tun. 

telnet localhost 25
Connected to localhost.
Escape character is '^]'.
220 raid0.meyer.home ESMTP Postfix on raid0.meyer.home
ehlo lo
250-raid0.meyer.home
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-XVERP
250 8BITMIME
mail from: karl at dall.de
250 Ok
rcpt to: raid0 at meyer.home
450 <raid0 at meyer.home>: User unknown in local recipient table
quit
221 Bye
Connection closed by foreign host.

Alles klar bis hierhin!

raid0:/var/log # telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 raid0.meyer.home ESMTP Postfix on raid0.meyer.home
ehlo lo
250-raid0.meyer.home
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-XVERP
250 8BITMIME
mail from: karl at dall.de
250 Ok
rcpt to: hulufu at meyer.home
450 <hulufu at meyer.home>: User unknown in local recipient table
quit
221 Bye
Connection closed by foreign host.

Den Benutzer hulufu gibt es nur im ldap. Warum wird das ldap nun
nicht ausgewertet?

raid0:/var/log # ldapsearch -x -b "dc=meyer,dc=home" -h raid0.meyer.home mail=*
version: 2
 
#
# filter: mail=*
# requesting: ALL
#
 
# hulufu, meyer, home
dn: cn=hulufu,dc=meyer,dc=home
cn: hulufu
mail: hulufu at meyer.home
description: postfixtester
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
sn: back
uid: hulufu at meyer.home
 
# andreas, meyer, home
dn: cn=andreas,dc=meyer,dc=home
cn: Andreas
mail: andreas at meyer.home
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
sn: Meyer
 
# search result
search: 2
result: 0 Success
 
# numResponses: 3
# numEntries: 2 

raid0:/var/log # postconf |grep ldap
alias_maps = ldap:ldapsource

Ich habe folgende Einträge in der main.cf:
alias_maps = ldap:ldapsource
ldapsource_server_host = raid0.meyer.home
ldapsource_server_port = 389
ldapsource_search_base = dc=meyer, dc=home
timeout = 10
ldapsource_query_filter = (&(mail=%s)(uid=%s))
 
ldapsource_result_filter = (&(mail=%s)(uid=%s))
ldapsource_result_attribute = mailbox,maildrop
 
ldapsource_special_result_attribute =
ldapsource_scope = sub
 
ldapsource_bind = no
ldapsource_bind_dn = uid=postfix, dc=meyer, dc=home
ldapsource_bind_pw =
ldapsource_cache = no
ldapsource_cache_expiry = 30
ldapsource_cache_size = 32768
ldapsource_debuglevel = 6

Wo finde ich das attribute maildrop oder mailbox?
Oder was wäre im ldap noch möglich?


Gruß
-- 

  Andreas Meyer


Mehr Informationen über die Mailingliste Postfixbuch-users