Hi, I am new to Dovecot and I am trying to link an email account folder to another Maildir(its a backup of the older email). I want the email account to be able to access the older emails. I am assuming this is done by creating a symlink?
Currently reading instructions on this page:- https://wiki.dovecot.org/SharedMailboxes/Symlinks
At the moment I have the folder:- /var/mail/vhosts/example.com/email1/Maildir/.INBOX.newfolder
Inside the folder:-
drwx------. 2 vmail vmail 4096 Feb 23 13:39 cur -rw-------. 1 vmail vmail 232 Feb 23 13:43 dovecot.index.log -rw-------. 1 vmail vmail 51 Feb 23 13:43 dovecot-uidlist -rw-------. 1 vmail vmail 0 Feb 23 13:39 maildirfolder drwx------. 2 vmail vmail 4096 Feb 23 13:39 new lrwxrwxrwx. 1 root root 45 Feb 23 13:46 Other -> /run/media/computer/Storage/Email/mail/Other drwx------. 2 vmail vmail 4096 Feb 23 13:39 tmp lrwxrwxrwx. 1 root root 5 Feb 23 13:46 Users -> Users
I am not able to access the folders in the Other folder structure(inside other there are other email inboxes ie(email1@example.com,email2@example.com,etc.). I want to get access to all the email subfolders. Could someone here advise how to do this or point me to some tutorials for this. Sincere apologies for this and many thanks in advance for helping...
Dovecot -n output :-
# 2.3.3 (dcead646b): /etc/dovecot/dovecot.conf # OS: Linux 4.20.10-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine) # Hostname: computer auth_mechanisms = plain login mail_location = maildir:~/Maildir mail_privileged_group = mail mbox_write_locks = fcntl namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } postmaster_address = postmaster at example.com protocols = imap pop3 service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { port = 995 ssl = yes } } ssl = required ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_cipher_list = PROFILE=SYSTEM ssl_key = # hidden, use -P to show it userdb { driver = passwd } userdb { args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n driver = static }
Hello Kunal,
I've done this once, and it was for bakcup mail too :) in this page (https://ychaouche.informatick.net/dovecotsharefolders) I describe how I shared folders between main e-mail account and backup e-mail account with symlinks and dovecot-acl files pretty easily.
Yassine.
On 2/24/19 6:57 PM, Aki Tuomi via dovecot wrote:
On 24 February 2019 18:17 "Kunal A. via dovecot" <dovecot@dovecot.org> wrote:
Hi, I am new to Dovecot and I am trying to link an email account folder to another Maildir(its a backup of the older email). I want the email account to be able to access the older emails. I am assuming this is done by creating a symlink?
Currently reading instructions on this page:- https://wiki.dovecot.org/SharedMailboxes/Symlinks
At the moment I have the folder:- /var/mail/vhosts/ example.com/email1/Maildir/.INBOX.newfolder <http://example.com/email1/Maildir/.INBOX.newfolder>
Inside the folder:-
drwx------. 2 vmail vmail 4096 Feb 23 13:39 cur -rw-------. 1 vmail vmail 232 Feb 23 13:43 dovecot.index.log -rw-------. 1 vmail vmail 51 Feb 23 13:43 dovecot-uidlist -rw-------. 1 vmail vmail 0 Feb 23 13:39 maildirfolder drwx------. 2 vmail vmail 4096 Feb 23 13:39 new lrwxrwxrwx. 1 root root 45 Feb 23 13:46 Other -> /run/media/computer/Storage/Email/mail/Other drwx------. 2 vmail vmail 4096 Feb 23 13:39 tmp lrwxrwxrwx. 1 root root 5 Feb 23 13:46 Users -> Users
I am not able to access the folders in the Other folder structure(inside other there are other email inboxes ie( email1@example.com <mailto:email1@example.com>, email2@example.com <mailto:email2@example.com>,etc.). I want to get access to all the email subfolders. Could someone here advise how to do this or point me to some tutorials for this. Sincere apologies for this and many thanks in advance for helping...
Dovecot -n output :-
# 2.3.3 (dcead646b): /etc/dovecot/dovecot.conf # OS: Linux 4.20.10-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine) # Hostname: computer auth_mechanisms = plain login mail_location = maildir:~/Maildir mail_privileged_group = mail mbox_write_locks = fcntl namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } postmaster_address = postmaster at example.com <http://example.com> protocols = imap pop3 service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { port = 995 ssl = yes } } ssl = required ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_cipher_list = PROFILE=SYSTEM ssl_key = # hidden, use -P to show it userdb { driver = passwd } userdb { args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n driver = static }
Try setting mail_debug=yes and provide logs. This gives better insight as to what happens.
Aki Tuomi
Hey Guys! Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance.
My error msg is listed below : -
doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0
dovecot -n output:- # 2.3.3 (dcead646b): /etc/dovecot/dovecot.conf # OS: Linux 4.20.10-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine) # Hostname: computer auth_mechanisms = plain login mail_location = maildir:~/Maildir mail_plugins = acl mail_privileged_group = mail mbox_write_locks = fcntl namespace { list = children location = maildir:/run/media/computer/Storage/Email/:CONTROL=~/Maildir/public:INDEX=~/Maildir/public prefix = Storage/Email. subscriptions = yes type = public } namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { acl = vfile } postmaster_address = postmaster at example.com protocols = imap pop3 service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { port = 995 ssl = yes } } ssl = required ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_cipher_list = PROFILE=SYSTEM ssl_key = # hidden, use -P to show it userdb { driver = passwd } userdb { args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n driver = static } protocol imap { mail_plugins = acl imap_acl }
On Mon, Feb 25, 2019 at 4:03 AM Yassine Chaouche via dovecot < dovecot@dovecot.org> wrote:
Hello Kunal,
I've done this once, and it was for bakcup mail too :) in this page ( https://ychaouche.informatick.net/dovecotsharefolders) I describe how I shared folders between main e-mail account and backup e-mail account with symlinks and dovecot-acl files pretty easily.
Yassine. On 2/24/19 6:57 PM, Aki Tuomi via dovecot wrote:
On 24 February 2019 18:17 "Kunal A. via dovecot" <dovecot@dovecot.org> <dovecot@dovecot.org> wrote:
Hi, I am new to Dovecot and I am trying to link an email account folder to another Maildir(its a backup of the older email). I want the email account to be able to access the older emails. I am assuming this is done by creating a symlink?
Currently reading instructions on this page:- https://wiki.dovecot.org/SharedMailboxes/Symlinks
At the moment I have the folder:- /var/mail/vhosts/ example.com/email1/Maildir/.INBOX.newfolder
Inside the folder:-
drwx------. 2 vmail vmail 4096 Feb 23 13:39 cur -rw-------. 1 vmail vmail 232 Feb 23 13:43 dovecot.index.log -rw-------. 1 vmail vmail 51 Feb 23 13:43 dovecot-uidlist -rw-------. 1 vmail vmail 0 Feb 23 13:39 maildirfolder drwx------. 2 vmail vmail 4096 Feb 23 13:39 new lrwxrwxrwx. 1 root root 45 Feb 23 13:46 Other -> /run/media/computer/Storage/Email/mail/Other drwx------. 2 vmail vmail 4096 Feb 23 13:39 tmp lrwxrwxrwx. 1 root root 5 Feb 23 13:46 Users -> Users
I am not able to access the folders in the Other folder structure(inside other there are other email inboxes ie( email1@example.com, email2@example.com,etc.). I want to get access to all the email subfolders. Could someone here advise how to do this or point me to some tutorials for this. Sincere apologies for this and many thanks in advance for helping...
Dovecot -n output :-
# 2.3.3 (dcead646b): /etc/dovecot/dovecot.conf # OS: Linux 4.20.10-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine) # Hostname: computer auth_mechanisms = plain login mail_location = maildir:~/Maildir mail_privileged_group = mail mbox_write_locks = fcntl namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } postmaster_address = postmaster at example.com protocols = imap pop3 service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = dovecot } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { port = 995 ssl = yes } } ssl = required ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_cipher_list = PROFILE=SYSTEM ssl_key = # hidden, use -P to show it userdb { driver = passwd } userdb { args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n driver = static }
Try setting mail_debug=yes and provide logs. This gives better insight as to what happens.
Aki Tuomi
On 25 February 2019 17:56 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Hey Guys! Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance.
My error msg is listed below : -
doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0
You need to give write permissions to vmail on /run/media/computer/Storage/Email
You can
- change owner to vmail
- change group to vmail and add rwx for group
- use posix ACLs
- change mode to 0777 (unsafe)
Aki
On 25 February 2019 18:19 Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
On 25 February 2019 17:56 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Hey Guys! Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance.
My error msg is listed below : -
doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0
You need to give write permissions to vmail on /run/media/computer/Storage/Email
You can
- change owner to vmail
- change group to vmail and add rwx for group
- use posix ACLs
- change mode to 0777 (unsafe)
Aki
And the same applies for all files & directories under /run/media/computer/Storage/Email
Aki
Dear Aki, Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was. Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? sudo chown -R vmail:vmail to the /run folder ?
Also if this practice is safe to perform?
Thanks Kunal A
On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 25 February 2019 18:19 Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
On 25 February 2019 17:56 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Hey Guys! Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance.
My error msg is listed below : -
doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0
You need to give write permissions to vmail on /run/media/computer/Storage/Email
You can
- change owner to vmail
- change group to vmail and add rwx for group
- use posix ACLs
- change mode to 0777 (unsafe)
Aki
And the same applies for all files & directories under /run/media/computer/Storage/Email
Aki
I would only run it for the mail folders to be safe.
Aki
On 25 February 2019 18:34 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was.
Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? sudo chown -R vmail:vmail to the /run folder ?
Also if this practice is safe to perform?
Thanks Kunal A
On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 25 February 2019 18:19 Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
On 25 February 2019 17:56 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Hey Guys! Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance.
My error msg is listed below : -
doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0
You need to give write permissions to vmail on /run/media/computer/Storage/Email
You can
- change owner to vmail
- change group to vmail and add rwx for group
- use posix ACLs
- change mode to 0777 (unsafe)
Aki
And the same applies for all files & directories under /run/media/computer/Storage/Email
Aki
Dear Aki, I have given permission to the folders Storage/Email to vmail. But the upper hierarchy is not under vmail .
Full directory = /run/media/computer/Storage/Email
/run/media/computer = not vmail Storage/Email = vmail
How do I get this corrected ? It seems like vmail needs access through all through run/media/computer .
Please excuse my ignorance as I am not very familiar with filesystem permissions. :-/
Sincere apologies for the trouble.
Thanks Kunal A.
On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
I would only run it for the mail folders to be safe.
Aki
On 25 February 2019 18:34 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was.
Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? sudo chown -R vmail:vmail to the /run folder ?
Also if this practice is safe to perform?
Thanks Kunal A
On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 25 February 2019 18:19 Aki Tuomi via dovecot <
On 25 February 2019 17:56 Kunal A. via dovecot <
dovecot@dovecot.org> wrote:
Hey Guys! Many thanks for your feedback. I have kind of gotten it to work
but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance.
My error msg is listed below : -
doveadm(vmail): Error:
stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer,
doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer,
dovecot@dovecot.org> wrote: dir owned by 0:0 mode=0750) dir owned by 0:0
You need to give write permissions to vmail on /run/media/computer/Storage/Email
You can
- change owner to vmail
- change group to vmail and add rwx for group
- use posix ACLs
- change mode to 0777 (unsafe)
Aki
And the same applies for all files & directories under /run/media/computer/Storage/Email
Aki
At minimum directories
/run/media/computer/Storage/
need to have o+x, so you can do
chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage
and
chown -R vmail:vmail /run/media/computer/Storage/Email
Aki
On 25 February 2019 18:47 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, I have given permission to the folders Storage/Email to vmail. But the upper hierarchy is not under vmail .
Full directory = /run/media/computer/Storage/Email
/run/media/computer = not vmail Storage/Email = vmail
How do I get this corrected ? It seems like vmail needs access through all through run/media/computer .
Please excuse my ignorance as I am not very familiar with filesystem permissions. :-/
Sincere apologies for the trouble.
Thanks Kunal A.
On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
I would only run it for the mail folders to be safe.
Aki
On 25 February 2019 18:34 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was.
Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? sudo chown -R vmail:vmail to the /run folder ?
Also if this practice is safe to perform?
Thanks Kunal A
On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 25 February 2019 18:19 Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
On 25 February 2019 17:56 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Hey Guys! Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance.
My error msg is listed below : -
doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0
You need to give write permissions to vmail on /run/media/computer/Storage/Email
You can
- change owner to vmail
- change group to vmail and add rwx for group
- use posix ACLs
- change mode to 0777 (unsafe)
Aki
And the same applies for all files & directories under /run/media/computer/Storage/Email
Aki
Dear Aki, Many thanks again. Thanks for explaining this. Very grateful for your assistance. Thanks a bunch ! Kunal
On Mon, Feb 25, 2019 at 11:56 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
At minimum directories
/run/media/computer/Storage/
need to have o+x, so you can do
chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage
and
chown -R vmail:vmail /run/media/computer/Storage/Email
Aki
On 25 February 2019 18:47 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, I have given permission to the folders Storage/Email to vmail. But the upper hierarchy is not under vmail .
Full directory = /run/media/computer/Storage/Email
/run/media/computer = not vmail Storage/Email = vmail
How do I get this corrected ? It seems like vmail needs access through all through run/media/computer .
Please excuse my ignorance as I am not very familiar with filesystem permissions. :-/
Sincere apologies for the trouble.
Thanks Kunal A.
I would only run it for the mail folders to be safe.
Aki
On 25 February 2019 18:34 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was.
Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? sudo chown -R vmail:vmail to the /run folder ?
Also if this practice is safe to perform?
Thanks Kunal A
On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
On 25 February 2019 18:19 Aki Tuomi via dovecot <
dovecot@dovecot.org> wrote:
> On 25 February 2019 17:56 Kunal A. via dovecot <
dovecot@dovecot.org> wrote:
> > > Hey Guys! > Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance. > > My error msg is listed below : - > > doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer,
> doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer,
On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote: dir owned by 0:0 mode=0750) dir owned by 0:0
>
You need to give write permissions to vmail on /run/media/computer/Storage/Email
You can
- change owner to vmail
- change group to vmail and add rwx for group
- use posix ACLs
- change mode to 0777 (unsafe)
Aki
And the same applies for all files & directories under /run/media/computer/Storage/Email
Aki
Hey Aki, Sorry for the trouble but I am still unable to get it working. The file permissions for upper files are now drwxr-xr-x. but I think they need to be drwxr-x--x+ ? Any idea how to change it to that?
Error log is below:-
doveadm(lightdm): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=976(lightdm) egid=976(lightdm) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(setroubleshoot): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(setroubleshoot): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(dovenull): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=974(dovenull) egid=973(dovenull) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) ~
On Mon, Feb 25, 2019 at 11:58 AM Kunal A. <kunal.oa@gmail.com> wrote:
Dear Aki, Many thanks again. Thanks for explaining this. Very grateful for your assistance. Thanks a bunch ! Kunal
On Mon, Feb 25, 2019 at 11:56 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
At minimum directories
/run/media/computer/Storage/
need to have o+x, so you can do
chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage
and
chown -R vmail:vmail /run/media/computer/Storage/Email
Aki
On 25 February 2019 18:47 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, I have given permission to the folders Storage/Email to vmail. But the upper hierarchy is not under vmail .
Full directory = /run/media/computer/Storage/Email
/run/media/computer = not vmail Storage/Email = vmail
How do I get this corrected ? It seems like vmail needs access through all through run/media/computer .
Please excuse my ignorance as I am not very familiar with filesystem permissions. :-/
Sincere apologies for the trouble.
Thanks Kunal A.
I would only run it for the mail folders to be safe.
Aki
On 25 February 2019 18:34 Kunal A. via dovecot < dovecot@dovecot.org> wrote:
Dear Aki, Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was.
Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? sudo chown -R vmail:vmail to the /run folder ?
Also if this practice is safe to perform?
Thanks Kunal A
On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
> On 25 February 2019 18:19 Aki Tuomi via dovecot <
dovecot@dovecot.org> wrote:
> > > > On 25 February 2019 17:56 Kunal A. via dovecot < dovecot@dovecot.org> wrote: > > > > > > Hey Guys! > > Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance. > > > > My error msg is listed below : - > > > > doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer,
> > doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer,
On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote: dir owned by 0:0 mode=0750) dir owned by 0:0
> > > > You need to give write permissions to vmail on /run/media/computer/Storage/Email > > You can > - change owner to vmail > - change group to vmail and add rwx for group > - use posix ACLs > - change mode to 0777 (unsafe) > > Aki
And the same applies for all files & directories under /run/media/computer/Storage/Email
Aki
Can you run
namei -vl /run/media/computer/Storage/Email/tmp
the + at the end does not mean that, it means there is an extended POSIX ACL.
Aki
On 25 February 2019 19:50 Kunal A. <kunal.oa@gmail.com> wrote:
Hey Aki, Sorry for the trouble but I am still unable to get it working. The file permissions for upper files are now drwxr-xr-x. but I think they need to be drwxr-x--x+ ? Any idea how to change it to that?
Error log is below:-
doveadm(lightdm): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=976(lightdm) egid=976(lightdm) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(setroubleshoot): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(setroubleshoot): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=975(setroubleshoot) egid=975(setroubleshoot) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) doveadm(dovenull): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=974(dovenull) egid=973(dovenull) missing +x perm: /run/media/computer/Storage/Email, dir owned by 5000:5000 mode=0700) ~
On Mon, Feb 25, 2019 at 11:58 AM Kunal A. <kunal.oa@gmail.com> wrote:
Dear Aki, Many thanks again. Thanks for explaining this. Very grateful for your assistance. Thanks a bunch ! Kunal
On Mon, Feb 25, 2019 at 11:56 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
At minimum directories
/run/media/computer/Storage/
need to have o+x, so you can do
chmod o+x /run /run/media /run/media/computer /run/media/computer/Storage
and
chown -R vmail:vmail /run/media/computer/Storage/Email
Aki
On 25 February 2019 18:47 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, I have given permission to the folders Storage/Email to vmail. But the upper hierarchy is not under vmail .
Full directory = /run/media/computer/Storage/Email
/run/media/computer = not vmail Storage/Email = vmail
How do I get this corrected ? It seems like vmail needs access through all through run/media/computer .
Please excuse my ignorance as I am not very familiar with filesystem permissions. :-/
Sincere apologies for the trouble.
Thanks Kunal A.
On Mon, Feb 25, 2019 at 11:36 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
I would only run it for the mail folders to be safe.
Aki
On 25 February 2019 18:34 Kunal A. via dovecot <dovecot@dovecot.org> wrote:
Dear Aki, Many thanks for your feedback. Its what I figured I should do but I was not sure how safe it was.
Would it make sense to execute the following to /run/media/computer so that the user/group is vmail? sudo chown -R vmail:vmail to the /run folder ?
Also if this practice is safe to perform?
Thanks Kunal A
On Mon, Feb 25, 2019 at 11:20 AM Aki Tuomi <aki.tuomi@open-xchange.com> wrote: > > > On 25 February 2019 18:19 Aki Tuomi via dovecot <dovecot@dovecot.org> wrote: > > > > > > > On 25 February 2019 17:56 Kunal A. via dovecot <dovecot@dovecot.org> wrote: > > > > > > > > > Hey Guys! > > > Many thanks for your feedback. I have kind of gotten it to work but I just struggling to get the permissions of the folder correct. Highly appreciate if someone could help me set the correct permission settings for it . Terribly sorry for my ignorance. > > > > > > My error msg is listed below : - > > > > > > doveadm(vmail): Error: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 mode=0750) > > > doveadm(vmail): Error: Can't open mailbox Storage/Email: stat(/run/media/computer/Storage/Email/tmp) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /run/media/computer, dir owned by 0:0 > > > > > > > You need to give write permissions to vmail on /run/media/computer/Storage/Email > > > > You can > > - change owner to vmail > > - change group to vmail and add rwx for group > > - use posix ACLs > > - change mode to 0777 (unsafe) > > > > Aki > > And the same applies for all files & directories under /run/media/computer/Storage/Email > > Aki >
participants (3)
-
Aki Tuomi
-
Kunal A.
-
Yassine Chaouche