LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-04-2011, 07:38 AM   #1
ross.sysadm
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
dovecot + postfix + kerberos + AD - Multiple mailboxes ???


Hi all.
I have a problem in configuration Mail Server for my company.
Gentoo/Linux, postfix-2.7.3, dovecot-2.0.11, AD-Windows2008R2
main.cf:
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf, ldap:/etc/postfix/ldap-users_oblr.cf
I create a two ldap files for search Multiple mailboxes in attribute AD (mail, othermailbox).
ldap-users.cf:
server_host = srv-ad.cn.energy
search_base = dc=cn,dc=energy
version = 3
bind = yes
bind_dn = admin
bind_pw = passwd
chase_referrals = no
scope = sub
query_filter = (&(objectclass=person)(|(mail=%s))(!(userAccountControl=514)))
result_attribute = mail
result_format = %s/
ldap-users_oblr.cf:
server_host = srv-ad.cn.energy
search_base = dc=cn,dc=energy
version = 3
bind = yes
bind_dn = admin
bind_pw = passwd
chase_referrals = no
scope = sub
query_filter = (&(objectclass=person)(|(otherMailbox=%s))(!(userAccountControl=514)))
result_attribute = otherMailbox

So, you want to know why it was done so stupid?
I'll try to explain. I have an account in AD ( eg Ross).
In the mail attribute is written, my main mailbox ross@energo.cg.ukrtel.net, and attribute otherMailbox my additional mailboxes simbios@oblr.cn.energy.gov.ua,..., Etc.
Postfix does not know how to work with attributes that have multiple meanings.
If I'm wrong correct me. ) ) )
Dovecot, respectively, too... ) ) )
What to do in this situation? Maybe there is some solution?

dovecot-ldap.conf:
user_attrs = mail=mail=maildir:/var/spool/mail/%$, quotaBytes=quota_rule=*:bytes=%$
user_filter = (&(objectClass=Person)(sAMAccountName=%n))
pass_attrs = userPassword=password
pass_filter = (&(objectClass=posixAccount)(uid=%u))

ls /var/mail
ross@energo.cg.ukrtel.net simbios@oblr.cn.energy.gov.ua
This directory create postfix. With ross Dovecot working fine, but with simbios NOT.

Many thanks for your help!
 
  


Reply



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 multipule mailboxes a7mlinux Linux - General 3 08-17-2009 12:13 PM
dovecot & postfix ssl (multiple subdomains for 1 server?) deathsfriend99 Linux - Server 0 07-21-2009 01:34 PM
Postfix & creating multiple mailboxes sckl618 Linux - Newbie 1 06-19-2009 04:42 AM
dovecot not serving all mailboxes lmcilwain Linux - Software 4 11-13-2006 03:11 AM
Postfix multiple domains & mailboxes fatum112 Linux - Software 0 11-21-2005 01:13 PM

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

All times are GMT -5. The time now is 12:13 AM.

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