Hello everyone Happy new year .
This is the first time I address to the list
I have the following situation and I need help from all you people
I have dovecot 0.9-11 and i want to migrate to a superior version
like dovecot 1.0 looking forward to implement quotas in my system ,
and use the function deliver with postfix.
My Scenario is as follow
Dovecot + LDAP (ADS) + postfix
My actual version is : 0.99.11
This is my actual configuration: Protocols = imap pop3 imap_listen = * pop3_listen = * login_dir = /var/run/dovecot-login login = imap login = pop3 default_mail_env = maildir:/var/spool/virtualmail/%d/%n mbox_locks = fcntl auth = dovecot-auth auth_mechanisms = plain auth_default_realm = CASA.CULT.CU auth_userdb = ldap /etc/dovecot-ldap.conf auth_passdb = pam dovecot auth_user = root auth_verbose = yes auth_debug = yes
dovecot-ldap.conf
hosts = ldap.casa.cult.cu
base = ou=CASA,dc=casa,dc=cult,dc=cu
dn = cn=unix-conector,cn=Users,dc=casa,dc=cult,dc=cu
dnpass = *****
ldap_version = 3
deref = never
scope = subtree
user_global_uid = 500
user_global_gid = 500
user_attrs = mail,/var/spool/virtualmail/%d/%n,,,,
user_filter =
(&(objectClass=user)(!(objectClass=computer))(sAMAccountName=%n))
I see many changes in this new version. One of them is : -Renamed default_mail_env to mail_location
- many changes in ldap queries
With the new version my problem is when to dovecot tries to detect or
builds the way where it´s stored the mailbox of my users. In
/var/spool/virtualmail/%d/%u , it does not detect the domain when
asking to my active directory (w2k) and consequently takes a value of
my default realm = casa.cult.cu in this case the default domain where
authenticate my users.
My configuration in the new version of dovecot: protocols = imap pop3 protocol imap { listen = * } protocol pop3 { listen = * } login_dir = /var/run/dovecot/login login_chroot = yes login_greeting = Dovecot ready. mail_location = maildir:/var/spool/virtualmail/%d/%u mail_debug = yes mbox_read_locks = fcntl mbox_write_locks = fcntl protocol imap { mail_plugins = quota imap_quota } protocol pop3 { mail_plugins = quota } protocol lda { postmaster_address = postmaster@example.com mail_plugins = quota auth_socket_path = /var/run/dovecot/auth-master } auth_executable = /usr/libexec/dovecot/dovecot-auth auth_verbose = yes auth_debug = yes auth default { mechanisms = plain passdb pam { args = dovecot } userdb ldap { args = /etc/dovecot-ldap.conf } userdb prefetch { } user = root socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = virtualmail group = virtualmail } } } dict { } plugin { quota = maildir:storage=10240 }
user_attrs = mail,/var/spool/virtualmail/%d/%n,,,,
The attribute mail in the old version returns to me user@casa.com or
user@casa.cult.cu this way dovecot can build the way with no problems
at all.
But in this late version something is happening, it only takes the
value %n= user , but not %d = domain . It´s not working. do you have
any idea how I can solve this
I beg your pardon for my poor English.
This message was sent using IMP, the Internet Messaging Program.
On Mon, 2007-12-31 at 18:29 -0500, Michel Bulgado wrote:
user_attrs = mail,/var/spool/virtualmail/%d/%n,,,,
I don't know why this worked even with v0.99. :) What does "mail" contain?
mail_location = maildir:/var/spool/virtualmail/%d/%u
Use %n instead of %u.
passdb pam { args = dovecot }
So you're using PAM for authentication.
userdb ldap { args = /etc/dovecot-ldap.conf }
I don't think you even need userdb ldap. Wouldn't this work better:
userdb static { args = uid=500 gid=500 }
userdb prefetch { }
This doesn't do anything here.
participants (2)
-
Michel Bulgado
-
Timo Sirainen