[Dovecot] LDAP for Virtual Domains

Pascal S. de Kloe pascal at quies.net
Thu May 17 14:44:33 EEST 2007


On Thursday 17 May 2007 04:06:52 Bryan Vyhmeister wrote:
> Is anyone using LDAP along with Dovecot where mail is being accessed
> in the form of /var/vmail/${domain}/${user}? I have not figured out
> how to extract the domain from LDAP in order to make this work. I
> know this is sparse information but maybe there is an easy fix. If
> not, I can post more information.
>
> Bryan


The attachments contain my configuration. Maybe you could document some 
more on the wiki?


dn: dc=mail,dc=quies,dc=net
objectClass: top
objectClass: dcObject
objectClass: organizationalRole
dc: mail
cn: Quies Net mail division

dn: cn=dovecot,dc=mail,dc=quies,dc=net
objectClass: top
objectClass: organizationalRole
objectClass: simpleSecurityObject
cn: dovecot
description: Dovecot daemon
userPassword: not public

dn: ou=accounts,dc=mail,dc=quies,dc=net
objectClass: top
objectClass: organizationalUnit
ou: accounts

dn: cn=quies.net,ou=accounts,dc=mail,dc=quies,dc=net
objectClass: top
objectClass: posixGroup
cn: quies.net
gidNumber: 10000

dn: 
uid=pascal at quies.net,cn=quies.net,ou=accounts,dc=mail,dc=quies,dc=net
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
uid: pascal at quies.net
uidNumber: 10000
gidNumber: 10000
homeDirectory: /var/spool/imap/net.quies/pascal
userPassword: not public
cn: Pascal de Kloe
givenName: Pascal
sn: de Kloe
etc.
-------------- next part --------------
protocols = imap
shutdown_clients = no

log_timestamp = "%y-%m-%d %H:%M:%S "

login_greeting = Quies Net IMAP service.

mail_location = maildir:~/Maildir
mmap_no_write = yes

first_valid_uid = 10000
last_valid_uid = 99999
first_valid_gid = 10000
last_valid_gid = 99999

ssl_cert_file = /etc/ssl/lib/cert.pem
ssl_key_file = /etc/ssl/private/key.pem
ssl_cipher_list = TLSv1+HIGH:TLSv1+MEDIUM

auth default {
	user = dovecot-auth
	mechanisms = plain
	passdb ldap {
		args = /etc/dovecot-ldap.conf
	}
	userdb ldap {
		args = /etc/dovecot-ldap.conf
	}
	socket listen {
		client {
			path = /var/postfix/private/auth
			mode = 0660
			user = postfix
			group = postfix
		}
		master {
			path = /var/run/dovecot/auth-master
			mode = 0660
			user = dovecot
			group = dovecot
		}
	}
}

protocol lda {
	postmaster_address = postmaster at quies.net
	sendmail_path = /usr/local/sbin/sendmail
	mail_plugins = cmusieve quota
}

protocol imap {
	mail_plugins = quota imap_quota
}


plugin {
	quota = maildir:storage=2097152:messages=100000
}
-------------- next part --------------
hosts = localhost
ldap_version = 3
dn = cn=dovecot,dc=mail,dc=quies,dc=net
dnpass = not public
deref = never
base = ou=accounts,dc=mail,dc=quies,dc=net
scope = subtree
user_filter = (&(objectClass=posixAccount)(uid=%u))
user_attrs = uid,homeDirectory,,uid,uidNumber,gidNumber
pass_attrs = uid,userPassword
pass_filter = (&(objectClass=posixAccount)(uid=%u))
default_pass_scheme = PLAIN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://dovecot.org/pipermail/dovecot/attachments/20070517/7ef40995/attachment.pgp 


More information about the dovecot mailing list