Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

dovecot+ldap+postfix

Reply to Post Add a New Topic
UserPost

12:42 pm
December 27, 2011


learnbash

New Member

posts 1

Post edited 12:43 pm – December 27, 2011 by learnbash


First of all i am i tell you about setup, i am using fedora-15

 

1. i have install 389 server, that is working fine.

 

my hostname is server1.example.com

dc=example,dc=com

 

2. i have configure dovecot.conf and conf.d/10-auth.conf configure properly but dovecot-ldap.conf having problem.

 

Below is my /etc/dovecot.conf

 

auth_verbose = yes
mail_debug = no

base_dir = /var/run/dovecot/
protocols = imap imaps pop3 pop3s
protocol lda {
  mail_plugins = quota
  postmaster_address = postmaster@example.com
  auth_socket_path = /var/run/dovecot/auth-master
  }
listen = *
shutdown_clients = yes
log_timestamp = "%b %d %H:%M:%S "
syslog_facility = mail
disable_plaintext_auth = no
login_chroot = yes
login_user = postfix
login_process_per_connection = yes
login_processes_count = 2
login_max_processes_count = 128
login_max_connections = 256
login_greeting = Welcome to Dovecot eMail Server.
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
login_log_format = %$: %s
#default_mail_env = maildir:/home/vmail/%d/%u
mail_location = maildir:/var/vmail/%d/%u
first_valid_uid = 108 # REMEBER THIS MUST BE CHANGED TO YOUR UID FOR "postfix" FROM /etc/passwd
mail_uid = 5000
mail_gid = 5000
pop3_uidl_format = %08Xu%08Xv
auth default {
    mechanisms = PLAIN LOGIN
    passdb ldap {
        args = /etc/dovecot/dovecot-ldap.conf
    }
    userdb ldap {
        args = /etc/dovecot/dovecot-ldap.conf
    }
socket listen {
                master {
                        path = /var/run/dovecot/auth-master
                                mode = 0600
                        user = vmail
                        group = vmail
                }
                client {
                        path = /var/spool/postfix/private/auth
                        mode = 0660
                        user = postfix
                        group = postfix
                }
        }
        user = vmail
}

 

/etc/dovecot/dovecot-ldap.conf

 

hosts = server1.example.com
auth_bind = yes
auth_bind_userdn = mail=%u,ou=People,dc=example,dc=com
ldap_version = 3
base = ou=People,dc=example,dc=com
dn = cn="Directory Manager,dc=example,dc=com"
dnpass = mypassword
#deref = never
scope = subtree
user_attrs = quota=quota=maildir:storage
user_filter = (&(objectClass=VirtualMailAccount)(accountActive=TRUE)(mail=%u))
pass_attrs = mail,userPassword
pass_filter = (&(objectClass=VirtualMailAccount)(accountActive=TRUE)(mail=%u))
default_pass_scheme = MD5

 

When i use configuration and checking pop for chris@example.com which have password 123. But it is not working, it is giving me error.

 

Dec 27 22:35:24 server1 dovecot: auth: Error: LDAP: binding failed (dn cn="Directory Manager,dc=example,dc=com"): No such object
Dec 27 22:35:24 server1 dovecot: auth: Error: LDAP: binding failed (dn cn="Directory Manager,dc=example,dc=com"): No such object

———————————————————————————————————

Below is postfix entry for chris user

 

# chris, Groups, example.com
dn: cn=chris,ou=Groups,dc=example,dc=com
objectClass: posixGroup
objectClass: top
cn: chris
gidNumber: 5051
userPassword:: e1NTSEF9TzdzbjNMejViWnI5N1RZbGNMenZEMXZIR1kzLy9iVjk=

# chris, People, example.com
dn: uid=chris,ou=People,dc=example,dc=com
mailMessageStore: /var/vmail/example.com/chris
mail: chris@example.com
givenName: chris
sn: chris
uidNumber: 5051
gidNumber: 5051
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: shadowaccount
objectClass: posixaccount
objectClass: mailrecipient
uid: chris
cn: chris chris
homeDirectory: /home/chris
userPassword:: e1NTSEF9RUgwNm11MmplVEtINGZjWisweWY2OTI1MU0vYmxaY0s=

Please help me out where i am doing mistake. After fixing it i will go to postfix part, one thing, /var/vmail/example.com/chris directory not exist. Should i create it manually.

7:57 am
December 28, 2011


consultant

Admin

posts 353

Hi,

 

It looks like you do not have a Directory Manager ldap entry.

Reply to Post

Reply to Topic:
dovecot+ldap+postfix

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
10 + 5
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 343
Posts: 1062

Membership:

There are 966 Members
There have been 91 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 46
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: waveney, achal, niesul14, hesaum, sreevinodss, nasonov

Administrators: consultant (353 Posts)