On Wed, Nov 3, 2010 at 12:36 PM, Reinaldo de Carvalho <[email protected]>wrote:
> > $ cat /etc/postfix/virtual > > $ cat virtual | grep -v "#" server_host = ldap://ldapserver:389 server_port = 389 search_base = query_filter = (mail=%s) result_attribute = uid version = 3 start_tls = no bind = yes bind_dn = xxxxxx bind_pw = xxxxxx timeout = 30 > IMO /etc/postfix/virtual isn't a good file name for sender login lookups. > > $ postmap -vq [email protected] ldap:/etc/postfix/virtual > > $ postmap -vq [email protected] ldap:/etc/postfix/virtual postmap: dict_eval: const mail postmap: dict_eval: const ipv4 postmap: dict_eval: const postmap: dict_eval: const postmap: dict_eval: const postmap: name_mask: ipv4 postmap: dict_eval: const ommtca008 postmap: dict_eval: const domain.com postmap: dict_eval: const Postfix postmap: dict_eval: expand ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name} -> postfix postmap: dict_eval: const postfix postmap: dict_eval: const postdrop postmap: dict_eval: expand $myhostname, $mydomain, localhost.$mydomain, localhost -> ommtca008, domain.com, localhost.domain.com, localhost postmap: dict_eval: expand $mydomain -> domain.com postmap: dict_eval: const postmap: dict_eval: const /usr/libexec/postfix postmap: dict_eval: const /var/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 dbm:/etc/mail/aliases postmap: dict_eval: const 20100608 postmap: dict_eval: const 2.7.1 postmap: dict_eval: const dbm postmap: dict_eval: const deferred, defer postmap: dict_eval: const postmap: dict_eval: expand $mydestination -> ommtca008, domain.com, localhost.domain.com, localhost postmap: dict_eval: expand $relay_domains -> ommtca008, domain.com, localhost.domain.com, localhost postmap: dict_eval: const TZ MAIL_CONFIG LANG postmap: dict_eval: const MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C 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: const proxymap postmap: dict_eval: const proxywrite postmap: dict_eval: const postmap: dict_eval: const postmap: dict_eval: const 10 postmap: dict_eval: const 51200000 postmap: dict_eval: const 2 postmap: dict_eval: const yes postmap: dict_eval: const yes 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 5s postmap: dict_eval: const 5s 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 18000s postmap: dict_eval: const 18000s postmap: dict_eval: const 1s postmap: dict_eval: const 1s postmap: dict_eval: const 127.0.0.0/8 postmap: inet_addr_local: configured 4 IPv4 addresses postmap: dict_ldap_open: Using LDAP source /etc/postfix/virtual postmap: cfg_get_str: /etc/postfix/virtual: server_host = ldap://ldapserver:389 postmap: cfg_get_int: /etc/postfix/virtual: server_port = 389 postmap: cfg_get_int: /etc/postfix/virtual: version = 3 postmap: dict_ldap_open: /etc/postfix/virtual server_host URL is ldap://ldapserver:389 postmap: cfg_get_str: /etc/postfix/virtual: scope = sub postmap: cfg_get_str: /etc/postfix/virtual: search_base = postmap: cfg_get_int: /etc/postfix/virtual: timeout = 30 postmap: cfg_get_str: /etc/postfix/virtual: query_filter = (mail=%s) postmap: cfg_get_str: /etc/postfix/virtual: result_format = <NULL> postmap: cfg_get_str: /etc/postfix/virtual: result_filter = %s postmap: cfg_get_str: /etc/postfix/virtual: domain = postmap: cfg_get_str: /etc/postfix/virtual: terminal_result_attribute = postmap: cfg_get_str: /etc/postfix/virtual: leaf_result_attribute = postmap: cfg_get_str: /etc/postfix/virtual: result_attribute = uid postmap: cfg_get_str: /etc/postfix/virtual: special_result_attribute = postmap: cfg_get_bool: /etc/postfix/virtual: bind = on postmap: cfg_get_str: /etc/postfix/virtual: bind_dn = xxxxxx postmap: cfg_get_str: /etc/postfix/virtual: bind_pw = xxxxxx postmap: cfg_get_bool: /etc/postfix/virtual: cache = off postmap: cfg_get_int: /etc/postfix/virtual: cache_expiry = -1 postmap: cfg_get_int: /etc/postfix/virtual: cache_size = -1 postmap: cfg_get_int: /etc/postfix/virtual: recursion_limit = 1000 postmap: cfg_get_int: /etc/postfix/virtual: expansion_limit = 0 postmap: cfg_get_int: /etc/postfix/virtual: size_limit = 0 postmap: cfg_get_int: /etc/postfix/virtual: dereference = 0 postmap: cfg_get_bool: /etc/postfix/virtual: chase_referrals = off postmap: cfg_get_bool: /etc/postfix/virtual: start_tls = off postmap: cfg_get_bool: /etc/postfix/virtual: tls_require_cert = off postmap: cfg_get_str: /etc/postfix/virtual: tls_ca_cert_file = postmap: cfg_get_str: /etc/postfix/virtual: tls_ca_cert_dir = postmap: cfg_get_str: /etc/postfix/virtual: tls_cert = postmap: cfg_get_str: /etc/postfix/virtual: tls_key = postmap: cfg_get_str: /etc/postfix/virtual: tls_random_file = postmap: cfg_get_str: /etc/postfix/virtual: tls_cipher_suite = postmap: cfg_get_int: /etc/postfix/virtual: debuglevel = 0 postmap: dict_open: ldap:/etc/postfix/virtual postmap: dict_ldap_lookup: In dict_ldap_lookup postmap: dict_ldap_lookup: No existing connection for LDAP source /etc/postfix/virtual, reopening postmap: dict_ldap_connect: Connecting to server ldap://ldapserver:389 postmap: dict_ldap_connect: Actual Protocol version used is 3. postmap: dict_ldap_connect: Binding to server ldap://ldapserver:389 as dn xxxxxx postmap: dict_ldap_connect: Successful bind to server ldap://ldapserver:389 as xxxxxx postmap: dict_ldap_connect: Cached connection handle for LDAP source /etc/postfix/virtual postmap: dict_ldap_lookup: /etc/postfix/virtual: Searching with filter ([email protected]) postmap: warning: dict_ldap_lookup: /etc/postfix/virtual: Search base '' not found: 32: No such object postmap: dict_ldap_close: Closed connection handle for LDAP source /etc/postfix/virtual
