OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 

From: Diego Rivera (lriveraracsa.co.cr)
Date: Sat Mar 01 2003 - 20:26:08 CST


Hello all,

I've set up postfix to use LDAP-based user maps, but I can't get it to
deliver e-mail to a user's account. The e-mail gets accepted, and by
traffic sniffing I KNOW that the LDAP queries are succeeding in finding
a matching entry, but still the e-mail gets bounced (NOT rejected) with
"unknown user" as the result.

Out of my "stock" postfix configuration, the relevant parameters (for
LDAP) are set as:

alias_maps = hash:/etc/mail-servers/$mydomain/aliases ldap:ldap
local_recipient_maps = $alias_maps ldap:ldap
ldap_query_filter = (uid=%u)
ldap_result_attribute = uid
ldap_scope = sub

I ommitted several ldap-related parameters which are irrelevant (since
they're working), i.e. the search base, the server and port.

My question is: how do I tell postfix to accept mail for a user that
DOES NOT exist on the machine's NSS user database (i.e., getent passwd
<username> does not return an entry for the user)?

Best

Diego