Re: [Dovecot] Master user ldap config

2014-02-17 Thread Reindl Harald


Am 17.02.2014 20:54, schrieb Roman Gelfand:
> I am using outlook 2010 to login to pop3 mailbox as master user.  The
> user name I provide is j...@domain.tld*t...@domain.tld.  The password
> is that of t...@domain.tld.   I am not quite sure as to how to specify
> ACL.  I guessed the ACL specs as per ldap config, below.  But it is
> not working

ACL's and POP3 won't work as well as you never
receive messages outisde of INBOX our can access
any other folder than INBOX with POP3

IMAP is your way to go



signature.asc
Description: OpenPGP digital signature


[Dovecot] Master user ldap config

2014-02-17 Thread Roman Gelfand
I am using outlook 2010 to login to pop3 mailbox as master user.  The
user name I provide is j...@domain.tld*t...@domain.tld.  The password
is that of t...@domain.tld.   I am not quite sure as to how to specify
ACL.  I guessed the ACL specs as per ldap config, below.  But it is
not working.

The master password is stored in master-users file.

The ldap config is

# debug_level   = 9
hosts   = 192.168.0.22:389
ldap_version= 3
auth_bind   = yes
dn  = dlookup@domain.local
dnpass  = password
base= OU=Test Users,DC=domain,DC=local
scope   = subtree
deref   = never
user_filter = (&(Mail=%u)(objectClass=person)(!(userAccountControl=514)))
pass_filter = (&(Mail=%u)(objectClass=person)(!(userAccountControl=514)))
pass_attrs= uid=user, userPassword=password, =proxy=y,
=destuser=%u*masteruser, =pass=mastpass
default_pass_scheme = CRYPT
user_attrs  =
=uid=999,=gid=8,=home=/vmail/%Ld/%Ln/home/,=mail=maildir:/vmail/%Ld/%Ln/Maildir/

The dovecot.conf is

auth_mechanisms = plain login
disable_plaintext_auth = no
base_dir = /var/run/dovecot/
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.info.log
mail_debug = no
auth_debug = no
auth_verbose = no
auth_debug_passwords = no
first_valid_gid = 8
instance_name = test
last_valid_gid = 8
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:~/Maildir
mail_privileged_group = mail
passdb {
  args = /etc/dovecot/conf.d/users.conf
  driver = passwd-file
}
passdb {
  args = /etc/dovecot/dovecot-ldap-test.conf
  driver = ldap
}
auth_master_user_separator = *
passdb {
  driver = passwd-file
  args = /etc/dovecot/master-users
  master = yes
  pass = yes
}
service auth {
  inet_listener {
 port = 10305
  }
  unix_listener auth-master {
group = mail
mode = 0600
user = mail
  }
}
userdb {
  args = /etc/dovecot/conf.d/users.conf
  driver = passwd-file
}
userdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
}
userdb {
  args = /etc/dovecot/dovecot-ldap-test.conf
  driver = ldap
}
protocol lmtp {
  postmaster_address = postmas...@domain.tld
  mail_plugins = sieve
}
protocol lda {
  postmaster_address = postmas...@domain.tld
hostname = server.domain.tld
# Sieve plugin for local delivery agent
mail_plugins = cmusieve
log_path = /var/log/dovecot-local-deliver.log
}