[Postfixbuch-users] Mail an virtuelle User senden.

hotten hotten at hs-bremerhaven.de
Mi Mär 8 10:03:19 CET 2006


Patrick Ben Koetter wrote:
> * hotten <hotten at hs-bremerhaven.de>:
>   
>> Ralf Hildebrandt wrote:
>>     
>>> * hotten <hotten at hs-bremerhaven.de>:
>>>
>>>   
>>>       
>>>>> setgid_group = maildrop?
>>>>> Was für ein Postfix auf was für einer Distribution benutzt Du denn?
>>>>>   
>>>>>       
>>>>>           
>>>> Postfix ist in der Version 2.2.5-5 installiert!
>>>>     
>>>>         
>> suse 10.0
>>     
>>> "auf was für einer Distribution"?
>>>
>>>   
>>>       
>>>>> Und? Klappts? Klappts nicht?
>>>>> Was sagt eine verbose Abfrage?
>>>>>
>>>>> # postmap -q -v "empfaenger at studimail.hs-bremerhaven.de" ldap:/etc/postfix/ldap-users.cf
>>>>>   
>>>>>       
>>>>>           
>>>> postmap: fatal: open database ldaptest at studimail.hs-bremerhaven.de.db: 
>>>> No such file or directory
>>>> ISt wohl auch mächtig der Wurm drin!!
>>>>     
>>>>         
>>> Wie genau sah dein postmap Kommando aus?
>>>   
>>>       
>> imap:/etc/postfix # postmap -q -v ldaptest at studimail.hs-bremerhaven.de 
>> ldap:/etc/postfix/ldap-users.cf
>> postmap: fatal: open database ldaptest at studimail.hs-bremerhaven.de.db: 
>> No such file or directory
>>     
>
> Mein Fehler, denn "-q" erwartet ja einen Wert und "-v" ist sicher falsch. Mach
> mal:
>
> # postmap -v -q ldaptest at studimail.hs-bremerhaven.de ldap:/etc/postfix/ldap-users.cf
>
> p at rick
>
>
>   
Hier die Ausgabe:
imap:/etc/postfix # postmap -v -q ldaptest at studimail.hs-bremerhaven.de 
ldap:/etc/postfix/ldap-users.cf
postmap: dict_eval: const  mail
postmap: dict_eval: const  all
postmap: name_mask: all
postmap: dict_eval: const  imap.studimail.hs-bremerhaven.de
postmap: dict_eval: const  studimail.hs-bremerhaven.de
postmap: dict_eval: const  Postfix
postmap: dict_eval: const  postfix
postmap: dict_eval: const  postfix
postmap: dict_eval: const  maildrop
postmap: dict_eval: expand $myhostname, localhost -> 
imap.studimail.hs-bremerhaven.de, localhost
postmap: dict_eval: expand $myhostname -> imap.studimail.hs-bremerhaven.de
postmap: dict_eval: const
postmap: dict_eval: const  /usr/lib/postfix
postmap: dict_eval: const  /usr/sbin
postmap: dict_eval: const  /var/spool/postfix
postmap: dict_eval: const  pid
postmap: dict_eval: const  all
postmap: dict_eval: const
postmap: dict_eval: const  double-bounce
postmap: dict_eval: const  nobody
postmap: dict_eval: const  hash:/etc/aliases
postmap: dict_eval: const  20050719
postmap: dict_eval: const  2.2.5
postmap: dict_eval: const  hash
postmap: dict_eval: const  deferred, defer
postmap: dict_eval: const
postmap: dict_eval: expand $mydestination -> 
imap.studimail.hs-bremerhaven.de, localhost
postmap: dict_eval: expand $relay_domains -> 
imap.studimail.hs-bremerhaven.de, localhost
postmap: dict_eval: const  TZ MAIL_CONFIG
postmap: dict_eval: const  MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ 
XAUTHORITY DISPLAY
postmap: dict_eval: const  subnet
postmap: dict_eval: const
postmap: dict_eval: const  +=
postmap: dict_eval: const  -=+
postmap: dict_eval: const  
debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
postmap: dict_eval: const
postmap: dict_eval: const  bounce
postmap: dict_eval: const  cleanup
postmap: dict_eval: const  defer
postmap: dict_eval: const  pickup
postmap: dict_eval: const  qmgr
postmap: dict_eval: const  rewrite
postmap: dict_eval: const  showq
postmap: dict_eval: const  error
postmap: dict_eval: const  flush
postmap: dict_eval: const  verify
postmap: dict_eval: const  trace
postmap: dict_eval: expand ${config_directory}/prng_exch -> 
/etc/postfix/prng_exch
postmap: dict_eval: const
postmap: dict_eval: expand $smtpd_tls_cert_file ->
postmap: dict_eval: const
postmap: dict_eval: expand $smtpd_tls_dcert_file ->
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: expand $smtp_tls_cert_file ->
postmap: dict_eval: const
postmap: dict_eval: expand $smtp_tls_dcert_file ->
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const
postmap: dict_eval: const  10240000
postmap: dict_eval: const  2
postmap: dict_eval: const  no
postmap: dict_eval: const  no
postmap: dict_eval: const  no
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  100s
postmap: dict_eval: const  100s
postmap: dict_eval: const  1000s
postmap: dict_eval: const  1000s
postmap: dict_eval: const  10s
postmap: dict_eval: const  10s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: dict_eval: const  500s
postmap: dict_eval: const  500s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  3600s
postmap: dict_eval: const  18000s
postmap: dict_eval: const  18000s
postmap: dict_eval: const  1s
postmap: dict_eval: const  1s
postmap: name_mask: subnet
postmap: inet_addr_local: configured 2 IPv4 addresses
postmap: inet_addr_local: configured 2 IPv6 addresses
postmap: been_here: 127.0.0.0/8: 0
postmap: been_here: 192.109.135.0/25: 0
postmap: been_here: [::1]/128: 0
postmap: been_here: [fe80::]/64: 0
postmap: mynetworks: 127.0.0.0/8 192.109.135.0/25 [::1]/128 [fe80::]/64
postmap: dict_eval: const  127.0.0.0/8 192.109.135.0/25 [::1]/128 
[fe80::]/64
postmap: dict_ldap_open: Using LDAP source /etc/postfix/ldap-users.cf
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: server_host = 
ldap.hs-bremerhaven.de
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: server_port = 389
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: version = 2
postmap: dict_ldap_open: /etc/postfix/ldap-users.cf server_host URL is 
ldap://ldap.hs-bremerhaven.de:389
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: scope = sub
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: search_base = 
dc=fh-bremerhaven,dc=de
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: domain =
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: timeout = 5
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: query_filter = (uid=%u))
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: result_format = <NULL>
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: result_filter = %s
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: result_attribute = uid
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: special_result_attribute =
postmap: cfg_get_bool: /etc/postfix/ldap-users.cf: bind = off
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: bind_dn =
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: bind_pw =
postmap: cfg_get_bool: /etc/postfix/ldap-users.cf: cache = off
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: cache_expiry = -1
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: cache_size = -1
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: recursion_limit = 1000
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: expansion_limit = 0
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: size_limit = 0
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: dereference = 0
postmap: cfg_get_bool: /etc/postfix/ldap-users.cf: chase_referrals = off
postmap: cfg_get_bool: /etc/postfix/ldap-users.cf: start_tls = off
postmap: cfg_get_bool: /etc/postfix/ldap-users.cf: tls_require_cert = off
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: tls_ca_cert_file =
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: tls_ca_cert_dir =
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: tls_cert =
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: tls_key =
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: tls_random_file =
postmap: cfg_get_str: /etc/postfix/ldap-users.cf: tls_cipher_suite =
postmap: cfg_get_int: /etc/postfix/ldap-users.cf: debuglevel = 0
postmap: dict_open: ldap:/etc/postfix/ldap-users.cf
postmap: dict_ldap_lookup: In dict_ldap_lookup
postmap: dict_ldap_lookup: No existing connection for LDAP source 
/etc/postfix/ldap-users.cf, reopening
postmap: dict_ldap_connect: Connecting to server 
ldap://ldap.hs-bremerhaven.de:389
postmap: dict_ldap_connect: Actual Protocol version used is 2.
postmap: dict_ldap_connect: Cached connection handle for LDAP source 
/etc/postfix/ldap-users.cf
postmap: dict_ldap_lookup: /etc/postfix/ldap-users.cf: Searching with 
filter (uid=ldaptest))
postmap: warning: dict_ldap_lookup: Search error -7: Bad search filter
imap:/etc/postfix #    



Und hier die aktuelle ldap-users.cf:

imap:/etc/postfix # cat ldap-users.cf
server_host = ldap.hs-bremerhaven.de
bind = no
scope = sub
timeout = 5
search_base = dc=fh-bremerhaven,dc=de
query_filter = (uid=%u))
result_attribute = uid





Mehr Informationen über die Mailingliste Postfixbuch-users