Topic: Change default Maildir with AD integrated/iRedAdmin Login not working
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 OPENLDAP edition
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I have the problem that I can't figure out where to change the settings that all old and new AD users get a specific home and Maildir.
I'm running the iRedMail Mailserver, the Samba Active Diretory Server and a Fileserver all on Ubuntu 16.04, all servers have a NFS share from the Fileserver mapped on /home/domainname_without_toplevel/profiles/. I installed iRedMail normally on an AD joined server and later configured AD connect with the official guide.
I want that the default homedir=/home/domainname_without_toplevel/profiles/username_without_domain and the maildir=/home/domainname_without_toplevel/profiles/username_without_domain/Maildir.
I tried many different settings in postfix(main.cf, ad***.cf) and dovecot(dovecot.conf, settings.py,default_settings.py, iredutils.py) but still the home and maildir are set to /var/vmail/vmail1/...
I'm using vmail as AD connect user with Domain Admin permissions and full rights on the mapped NFS share.
Best would be to extract the home/maildir from the AD account itself but I doubt it is possible?
Extract of the dovecot.log from first login of a new AD user:
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/domain.tld/mail2/Maildir/
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/domain.tld/mail2/Maildir/
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Home dir not found: /var/vmail/vmail1/domain.tld/mail2/Maildir/
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 mail2@domain.tld
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 mail2@domain.tld
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 mail2@domain.tld
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 mail2@domain.tld
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Quota grace: root=user bytes=107374182 (10%)
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: dict quota: user=mail2@domain.tld, uri=proxy::quotadict, noenforcing=0
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/domain.tld/mail2/Maildir/
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: maildir++: root=/var/vmail/vmail1/domain.tld/mail2/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/domain.tld/mail2/Maildir, alt=
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Namespace : /var/vmail/vmail1/domain.tld/mail2/Maildir doesn't exist yet, using default permissions
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Namespace : Using permissions from /var/vmail/vmail1/domain.tld/mail2/Maildir: mode=0700 gid=default
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: acl: initializing backend with data: vfile
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: acl: acl username = mail2@domain.tld
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: acl: owner = 1
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: acl vfile: Global ACLs disabled
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:/home/domain/profiles/mail2@domain.tld/Maildir/:INDEX=/home/domain/profiles/mail2@domain.tld/Maildir/Shared/%Ld/%Ln
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: acl: initializing backend with data: vfile
Feb 1 15:04:00 mailserver dovecot: imap(mail2@domain.tld): Debug: acl: acl username = mail2@domain.tld
Output of :~# doveadm user -u mail2@domain.tld
userdb: mail2@domain.tld
user : mail2@domain.tld
home : /var/vmail/vmail1/domain.tld/mail2/Maildir/
mail : maildir:/var/vmail/vmail1/domain.tld/mail2/Maildir/
I hope someone can help me in this,
Thanks in advance!
Alu
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.