10 msgheader check question
12 msgverify parameters
4 msgConfigure postfix in big env
2 msgenvelope sender '<>' via uucp gets rewrit...
2 msgSpam filtering only for specific email accounts
3 msgPostfix 2.4 to 2.5: smtp(d)_tls_session_cache_d...
15 msgQuestion about 'standards' WRT BATV and SAV
7 msgmy solution to fight backscatter email
2 msgAUTO: Joe Grastara is out of the office (return...
12 msgQ about sender_dependent_relayhost_maps inbound...
16 msgMilter Suggestions
9 msgTransport table and postmap
3 msgArchiving e-mail?
8 msgError 550: unable to relay
1 msgFW: new subject
13 msgTLS handshake error
6 msgSeperating SMTP and POP/IMAP services
3 msgTest 2
1 msgTesting

[Fwd: ldap users & aliases config]
\ Wojtek Bogusz (8 May 2008)
. \ Brian Evans (8 May 2008)
. . \ Wojtek Bogusz (8 May 2008)
. . . \ Victor Duchovni (8 May 2008)
. . . . \ Wojtek Bogusz (8 May 2008)
. . . . . \ Victor Duchovni (8 May 2008)
. . . . . . \ Wojtek Bogusz (8 May 2008)
. . . . . . . \ Victor Duchovni (8 May 2008)
. . . . . . . . \ Wojtek Bogusz (8 May 2008)
. . . . . . . . . \ Victor Duchovni (8 May 2008)
. . . . . . . . . . \ Wojtek Bogusz (8 May 2008)
. . . . . . . . . . . \ Victor Duchovni (8 May 2008)

Subject:[Fwd: ldap users & aliases config]
Group:Postfix-users
From:Wojtek Bogusz
Date:8 May 2008


 
dear postfix'ers, please help. i cannot find the solution to my problem.
i do not understand what am i doing wrong. Wojtek

-------- Original Message --------
Subject: ldap users & aliases config
Date: Fri, 02 May 2008 17:18:45 +0100
From: Wojtek Bogusz <Wojtek>
To: postfix-users

hi. i am looking for help in setting up users and aliases in ldap for
postfix. i am running on Ubuntu 7.10 with postfix 2.3.8-2

in main.cf i defined source for user accounts as:

accounts_server_host = localhost
accounts_search_base = ou=Users,dc=frontline
accounts_query_filter = (&(objectClass=posixAccount)(uid=%u))
accounts_result_attribute = uid
accounts_bind = no
virtual_transport = dovecot
virtual_mailbox_base = /home/vmail/domains
virtual_mailbox_maps = ldap:accounts
virtual_mailbox_domains = frontlinedefenders.org
virtual_domain = frontlinedefenders.org
virtual_minimum_uid = 30000
virtual_uid_maps = static:30000
virtual_gid_maps = static:33

and source for user aliases as:
aliases_server_host = localhost
aliases_search_base = ou=EmailAliases,dc=frontline
aliases_query_filter = (&(objectClass=inetOrgPerson)(sn=%u))
aliases_result_attribute = cn
aliases_bind = no
virtual_alias_maps = ldap:aliases, hash:/etc/aliases

i defined ou=EmailAliases,dc=frontline records as inetOrgPerson class
type. so i have as 'cn' a user name (eg. 'wojtek') and as 'sn' different
aliases for this user name (eg. 'wojtekbogusz', 'admin', ...). so for
example you can do anonymous ldapsearch like this from command line:

$ ldapsearch -b 'ou=EmailAliases,dc=frontline' -x 'sn=admin' cn
# extended LDIF
#
# LDAPv3
# base <ou=EmailAliases,dc=frontline> with scope subtree
# filter: sn=admin
# requesting: cn
#

# wojtek, EmailAliases, frontline
dn: cn=wojtek,ou=EmailAliases,dc=frontline

# john, EmailAliases, frontline
dn: cn=john,ou=EmailAliases,dc=frontline

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2


i was trying to debug ldap by specifying 'loglevel acl filter' in
/etc/ldap/slapd.conf. but most bizarre is that when i am feeding postfix
by hand over smtp and give 'rcpt to:
wojtekbogusz'. 'wojtekbogusz' does not appear in
the /var/log/syslog (or debug or mail.info) at all. i can see a lot of
activity, looking through the entries in ldap but nothing corresponding
to query_filer specified above '(&(objectClass=inetOrgPerson)(sn=%u))' -
where i believe %u should be set to 'wojtekbogusz'........?

i do not understand this all and i am a bit crossed :-)
can anybody advice please?

best regards, Wojtek




© 2004-2008 readlist.com