<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hey Guys!<br></div><div>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. <br></div><div><br></div><div>My error msg is listed below : -<br></div><div><br></div><div>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)<br>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 <br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>dovecot -n output:-</div><div># 2.3.3 (dcead646b): /etc/dovecot/dovecot.conf<br># OS: Linux 4.20.10-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine) <br># Hostname: computer<br>auth_mechanisms = plain login<br>mail_location = maildir:~/Maildir<br>mail_plugins = acl<br>mail_privileged_group = mail<br>mbox_write_locks = fcntl<br>namespace {<br>  list = children<br>  location = maildir:/run/media/computer/Storage/Email/:CONTROL=~/Maildir/public:INDEX=~/Maildir/public<br>  prefix = Storage/Email.<br>  subscriptions = yes<br>  type = public<br>}<br>namespace inbox {<br>  inbox = yes<br>  location = <br>  mailbox Drafts {<br>    special_use = \Drafts<br>  }<br>  mailbox Junk {<br>    special_use = \Junk<br>  }<br>  mailbox Sent {<br>    special_use = \Sent<br>  }<br>  mailbox "Sent Messages" {<br>    special_use = \Sent<br>  }<br>  mailbox Trash {<br>    special_use = \Trash<br>  }<br>  prefix = <br>}<br>passdb {<br>  driver = pam<br>}<br>passdb {<br>  args = /etc/dovecot/dovecot-sql.conf.ext<br>  driver = sql<br>}<br>plugin {<br>  acl = vfile<br>}<br>postmaster_address = postmaster at <a href="http://example.com">example.com</a><br>protocols = imap pop3<br>service auth-worker {<br>  user = vmail<br>}<br>service auth {<br>  unix_listener /var/spool/postfix/private/auth {<br>    group = postfix<br>    mode = 0666<br>    user = postfix<br>  }<br>  unix_listener auth-userdb {<br>    mode = 0600<br>    user = vmail<br>  }<br>  user = dovecot<br>}<br>service imap-login {<br>  inet_listener imap {<br>    port = 143<br>  }<br>  inet_listener imaps {<br>    port = 993<br>    ssl = yes<br>  }<br>}<br>service lmtp {<br>  unix_listener /var/spool/postfix/private/dovecot-lmtp {<br>    group = postfix<br>    mode = 0600<br>    user = postfix<br>  }<br>}<br>service pop3-login {<br>  inet_listener pop3 {<br>    port = 0<br>  }<br>  inet_listener pop3s {<br>    port = 995<br>    ssl = yes<br>  }<br>}<br>ssl = required<br>ssl_cert = </etc/pki/dovecot/certs/dovecot.pem<br>ssl_cipher_list = PROFILE=SYSTEM<br>ssl_key = # hidden, use -P to show it<br>userdb {<br>  driver = passwd<br>}<br>userdb {<br>  args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n<br>  driver = static<br>}<br>protocol imap {<br>  mail_plugins = acl imap_acl<br>}<br><br></div><div><br></div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 4:03 AM Yassine Chaouche via dovecot <<a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hello Kunal,</p>
    <p>I've done this once, and it was for bakcup mail too :) in this
      page (<a class="gmail-m_-435356906353267863moz-txt-link-freetext" href="https://ychaouche.informatick.net/dovecotsharefolders" target="_blank">https://ychaouche.informatick.net/dovecotsharefolders</a>) I
      describe how I shared folders between main e-mail account and
      backup e-mail account with symlinks and dovecot-acl files pretty
      easily. <br>
    </p>
    <p>Yassine.<br>
    </p>
    <div class="gmail-m_-435356906353267863moz-cite-prefix">On 2/24/19 6:57 PM, Aki Tuomi via
      dovecot wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      <div> <br>
      </div>
      <blockquote type="cite">
        <div> On 24 February 2019 18:17 "Kunal A. via dovecot"
          <a class="gmail-m_-435356906353267863moz-txt-link-rfc2396E" href="mailto:dovecot@dovecot.org" target="_blank"><dovecot@dovecot.org></a> wrote: </div>
        <div> <br>
        </div>
        <div> <br>
        </div>
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div> Hi, </div>
                  <div> 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. <br>
                  </div>
                  <div> I am assuming this is done by creating a
                    symlink? <br>
                  </div>
                  <div> <br>
                  </div>
                  <div> Currently reading instructions on this page:- <br>
                  </div>
                  <a href="https://wiki.dovecot.org/SharedMailboxes/Symlinks" target="_blank">https://wiki.dovecot.org/SharedMailboxes/Symlinks</a>
                </div>
                <div dir="ltr"> <br>
                </div>
                <div> At the moment I have the folder:- </div>
                <div> /var/mail/vhosts/ <a href="http://example.com/email1/Maildir/.INBOX.newfolder" target="_blank">example.com/email1/Maildir/.INBOX.newfolder</a>
                </div>
                <div> <br>
                </div>
                <div> Inside the folder:- </div>
                <div> <br>
                </div>
                <div> drwx------. 2 vmail vmail 4096 Feb 23 13:39 cur <br>
                  -rw-------. 1 vmail vmail  232 Feb 23 13:43
                  dovecot.index.log <br>
                  -rw-------. 1 vmail vmail   51 Feb 23 13:43
                  dovecot-uidlist <br>
                  -rw-------. 1 vmail vmail    0 Feb 23 13:39
                  maildirfolder <br>
                  drwx------. 2 vmail vmail 4096 Feb 23 13:39 new <br>
                  lrwxrwxrwx. 1 root  root    45 Feb 23 13:46 Other
                  -> /run/media/computer/Storage/Email/mail/Other <br>
                  drwx------. 2 vmail vmail 4096 Feb 23 13:39 tmp <br>
                  lrwxrwxrwx. 1 root  root     5 Feb 23 13:46 Users
                  -> Users <br>
                </div>
                <div> <br>
                </div>
                <div> I am not able to access the folders in the Other
                  folder structure(inside other there are other email
                  inboxes ie( <a href="mailto:email1@example.com" target="_blank">email1@example.com</a>, <a href="mailto:email2@example.com" target="_blank">email2@example.com</a>,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... <br>
                </div>
                <div> <br>
                </div>
                <div> <br>
                </div>
                <div> Dovecot -n output :- </div>
                <div> <br>
                </div>
                <div> # 2.3.3 (dcead646b): /etc/dovecot/dovecot.conf <br>
                  # OS: Linux 4.20.10-200.fc29.x86_64 x86_64 Fedora
                  release 29 (Twenty Nine) <br>
                  # Hostname: computer <br>
                  auth_mechanisms = plain login <br>
                  mail_location = maildir:~/Maildir <br>
                  mail_privileged_group = mail <br>
                  mbox_write_locks = fcntl <br>
                  namespace inbox { <br>
                    inbox = yes <br>
                    location = <br>
                    mailbox Drafts { <br>
                      special_use = \Drafts <br>
                    } <br>
                    mailbox Junk { <br>
                      special_use = \Junk <br>
                    } <br>
                    mailbox Sent { <br>
                      special_use = \Sent <br>
                    } <br>
                    mailbox "Sent Messages" { <br>
                      special_use = \Sent <br>
                    } <br>
                    mailbox Trash { <br>
                      special_use = \Trash <br>
                    } <br>
                    prefix = <br>
                  } <br>
                  passdb { <br>
                    driver = pam <br>
                  } <br>
                  passdb { <br>
                    args = /etc/dovecot/dovecot-sql.conf.ext <br>
                    driver = sql <br>
                  } <br>
                  postmaster_address = postmaster at <a href="http://example.com" target="_blank">example.com</a>
                  <br>
                  protocols = imap pop3 <br>
                  service auth-worker { <br>
                    user = vmail <br>
                  } <br>
                  service auth { <br>
                    unix_listener /var/spool/postfix/private/auth { <br>
                      group = postfix <br>
                      mode = 0666 <br>
                      user = postfix <br>
                    } <br>
                    unix_listener auth-userdb { <br>
                      mode = 0600 <br>
                      user = vmail <br>
                    } <br>
                    user = dovecot <br>
                  } <br>
                  service imap-login { <br>
                    inet_listener imap { <br>
                      port = 143 <br>
                    } <br>
                    inet_listener imaps { <br>
                      port = 993 <br>
                      ssl = yes <br>
                    } <br>
                  } <br>
                  service lmtp { <br>
                    unix_listener
                  /var/spool/postfix/private/dovecot-lmtp { <br>
                      group = postfix <br>
                      mode = 0600 <br>
                      user = postfix <br>
                    } <br>
                  } <br>
                  service pop3-login { <br>
                    inet_listener pop3 { <br>
                      port = 0 <br>
                    } <br>
                    inet_listener pop3s { <br>
                      port = 995 <br>
                      ssl = yes <br>
                    } <br>
                  } <br>
                  ssl = required <br>
                  ssl_cert = </etc/pki/dovecot/certs/dovecot.pem <br>
                  ssl_cipher_list = PROFILE=SYSTEM <br>
                  ssl_key = # hidden, use -P to show it <br>
                  userdb { <br>
                    driver = passwd <br>
                  } <br>
                  userdb { <br>
                    args = uid=vmail gid=vmail
                  home=/var/mail/vhosts/%d/%n <br>
                    driver = static <br>
                  } <br>
                  <br>
                </div>
                <div> <br>
                </div>
                <div> <br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </blockquote>
      <div> <br>
      </div>
      <div> Try setting mail_debug=yes and provide logs. This gives
        better insight as to what happens. </div>
      <div> <br>
      </div>
      <div class="gmail-m_-435356906353267863io-ox-signature"> --- <br>
        Aki Tuomi </div>
    </blockquote>
  </div>

</blockquote></div>