LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-31-2011, 07:24 AM   #1
ross.sysadm
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
AD + Postfix + Dovecot problems with query_filter


Hi all
I set up a mail server AD + Postfix + Dovecot + Kerberos
This works fine for only one domain
In the attribute mail=test@test.com, in otherMailbox=vasya@otherdoamin.com,petya@another.net

Config files:
Postfix
ldap-users.cf
server_host = server
search_base = dc=cn,dc=energy
version = 3
bind = yes
bind_dn = ldapmail@cn.energy
bind_pw = passwd

query_filter = (&(objectCategory=person)(|(mail=%s)(otherMailbox=%s))(!(userAccountControl=514)))
result_attribute = mail otherMailbox
result_format = %d/%u

dovecot-ldap.conf
hosts = server:3268
debug_level = 2
dn = ldapmail
dnpass = passwd
tls = no
auth_bind = yes
auth_bind_userdn = cn.energy\%u
ldap_version = 3
base = dc=cn, dc=energy
deref = searching
scope = subtree
user_attrs = mail=user,uid=vmail, gid=vmail
user_filter = (&(objectclass=person)(|(sAMAccountName=%n)(otherMailbox=%n))(!(userAccountControl=514)))
default_pass_scheme = CRYPT

postconf:
attribute mail
postmap -q ross@test.com ldap:/etc/postfix/ldap-users.cf
another.net/petya,otherdoamin.com/vasya,test@test.com/ross

attribute otherMailbox
postmap -q ross@otherdoamin.com ldap:/etc/postfix/ldap-users.cf
another.net/petya,otherdoamin.com/vasya,test@test.com/ross

The filter searches and finds the correct.
Just does not work result_format ???

example:
another.net/petya,otherdoamin.com/vasya,test@test.com/ross
this name one directory ! hmmm dovecot dont find it

Many thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dovecot/postfix trscookie Linux - Server 4 04-15-2011 12:21 PM
Postfix, Dovecot, Postfixadmin and Vacation (auto Response) problems.. Patric.F Linux - Server 2 02-18-2010 02:20 AM
Dovecot+Postfix+Apple IMAP+Pine Problems dilseymgr Linux - Software 0 09-10-2007 04:40 PM
Postfix and Dovecot mail problems michaelsr Linux - Software 6 06-09-2006 11:06 AM
Postfix and Dovecot umbraeOtheisles Linux - Software 3 11-23-2004 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration