1

Topic: cannot doveadm mailbox list

==== Required information ====
- iRedMail version: 0.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): nginx
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

Hi,
Anyone here deal with a similar problem. I am trying to use doveadm to set permissions for mailboxes. Anyone get a similar error as shown below? If so how did you solve this problem. Appreciate your feedback/help.
Thanks
Kevin

[root@mail ]#doveadm(mudhir):doveadm mailbox list
doveadm(admin): Error: chdir(/root/) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +x perm: /root, we're not in group 0(root), dir owned by 0:0 mode=0750)
doveadm(admin): Error: chdir(/root) failed: Permission denied
doveadm(mudhir): Error: user mudhir: Initialization failed: Namespace '': stat(//root/Maildir) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +x perm: //root, we're not in group 0(root), dir owned by 0:0 mode=0750)
doveadm(admin): Fatal: User init failed

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: cannot doveadm mailbox list

Try:

# doveadm mailbox list -A

3 (edited by superinterstellar 2015-05-08 18:24:27)

Re: cannot doveadm mailbox list

hi Zhang,
Thanks. That worked.
Appreciate yr feedback man!

Would you know what should the socket be for iredmail?
not sure what is the general socket path thats set in iredmail.
Trying to use the command below:-

doveadm acl get [-u <user>|-A] [-S <socket_path>] [-m] <mailbox>

Regards
Kevin

4

Re: cannot doveadm mailbox list

Check Dovecot config file please:

# grep 'socket_path' /etc/dovecot/dovecot.conf

5 (edited by superinterstellar 2015-05-08 22:37:53)

Re: cannot doveadm mailbox list

hi Zhang,
Could you advise if my socket is correct?
Appreciate if you could advise if the path looks correct.

Below is the output for grep 'socket_path' :-

grep 'socket_path' /etc/dovecot/dovecot.conf
    auth_socket_path = /var/run/dovecot/auth-master
    auth_socket_path = /var/run/dovecot/auth-master


[root@mail root]# doveadm acl get -u bob@mydomain.net -S /var/run/dovecot/auth-master -m Inbox
doveadm(bob@mydomain.net): Error: doveadm server sent invalid handshake: VERSION    1    1
doveadm(bob@mydomain.net): Error: /var/run/dovecot/auth-master: Internal failure for bob@mydomain.net
ID Global Rights