Re: mbsync updating new emails but dovecot not reading them ? [2.3.3]

2019-04-21 Thread Kunal A. via dovecot
Hi Everyone,
I think i found the problem. It has to do with mbsync.
many apologies.
regards
kunal

On Sun, Apr 21, 2019 at 8:57 AM Kunal A.  wrote:

> Hi,
> Once again sincere apologies for emailing here.
> My dovecot isn't reading the newly updated e-mails from the mbsync.
> I have tried running doveadm -D -v force-resync -u ema...@example.com
> "Inbox/Public/Other Users/us...@example.com"
>
> Plese help if possible. Highly appreciate if someone could help here...
>
> Below is the debug log :-
>
> Debug: Loading modules from directory: /usr/lib64/dovecot
> Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
> Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
> Debug: Loading modules from directory: /usr/lib64/dovecot/doveadm
> Debug: Module loaded:
> /usr/lib64/dovecot/doveadm/lib10_doveadm_acl_plugin.so
> Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:
> /usr/lib64/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined
> symbol: expire_set_deinit (this is usually intentional, so just ignore this
> message)
> Debug: Module loaded:
> /usr/lib64/dovecot/doveadm/lib10_doveadm_quota_plugin.so
> Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed:
> /usr/lib64/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined
> symbol: lucene_index_iter_deinit (this is usually intentional, so just
> ignore this message)
> Debug: Skipping module doveadm_fts_plugin, because dlopen() failed:
> /usr/lib64/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol:
> fts_user_get_language_list (this is usually intentional, so just ignore
> this message)
> Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed:
> /usr/lib64/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so: undefined
> symbol: mail_crypt_box_get_pvt_digests (this is usually intentional, so
> just ignore this message)
> doveadm(ema...@example.com)<20402><>: Debug: auth USER input:
> ema...@example.com uid=5000 gid=5000 home=/var/mail/vhosts/
> example.com/email1
> doveadm(ema...@example.com): Debug: Effective uid=5000, gid=5000,
> home=/var/mail/vhosts/example.com/email1
> doveadm(ema...@example.com): Debug: quota: No quota setting - plugin
> disabled
> doveadm(ema...@example.com): Debug: Namespace inbox: type=private,
> prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
> location=maildir:~/Maildir
> doveadm(ema...@example.com): Debug: maildir++: root=/var/mail/vhosts/
> example.com/email1/Maildir, index=, indexpvt=, control=,
> inbox=/var/mail/vhosts/example.com/email1/Maildir, alt=
> doveadm(ema...@example.com): Debug: acl: initializing backend with data:
> vfile
> doveadm(ema...@example.com): Debug: acl: acl username = ema...@example.com
> doveadm(ema...@example.com): Debug: acl: owner = 1
> doveadm(ema...@example.com): Debug: acl vfile: Global ACLs disabled
> doveadm(ema...@example.com): Debug: Namespace : type=public,
> prefix=Public/, sep=/, inbox=no, hidden=no, list=children,
> subscriptions=yes
> location=maildir:/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail:LAYOUT=fs
> doveadm(ema...@example.com): Debug: fs:
> root=/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail, index=,
> indexpvt=, control=, inbox=, alt=
> doveadm(ema...@example.com): Debug: acl: initializing backend with data:
> vfile
> doveadm(ema...@example.com): Debug: acl: acl username = ema...@example.com
> doveadm(ema...@example.com): Debug: acl: owner = 0
> doveadm(ema...@example.com): Debug: acl vfile: Global ACLs disabled
> doveadm(ema...@example.com): Debug: Namespace : type=private, prefix=,
> sep=, inbox=no, hidden=yes, list=no, subscriptions=no
> location=fail::LAYOUT=none
> doveadm(ema...@example.com): Debug: none: root=, index=, indexpvt=,
> control=, inbox=, alt=
> doveadm(ema...@example.com): Debug: acl vfile: file /var/mail/vhosts/
> example.com/email1/Maildir/dovecot-acl not found
>
>
> Doveconf output :-
>
>
> # 2.3.5 (513208660): /etc/dovecot/dovecot.conf
> # OS: Linux 5.0.7-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine)
> # Hostname: machine
> auth_mechanisms = plain login
> mail_debug = yes
> mail_gid = vmail
> mail_location = maildir:~/Maildir
> mail_plugins = acl quota
> mail_privileged_group = mail
> mail_uid = vmail
> mbox_write_locks = fcntl
> namespace {
>   list = children
>   location =
> maildir:/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail:LAYOUT=fs
>   prefix = Public/
>   separator = /
>   subscriptions = yes
>   type = public
> }
> namespace inbox {
>   inbox = yes
>   list = 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 = INBOX/
>   separator = /
> }
> passdb {
>   driver = pam
> }
> passdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }

mbsync updating new emails but dovecot not reading them ? [2.3.3]

2019-04-21 Thread Kunal A. via dovecot
Hi,
Once again sincere apologies for emailing here.
My dovecot isn't reading the newly updated e-mails from the mbsync.
I have tried running doveadm -D -v force-resync -u ema...@example.com
"Inbox/Public/Other Users/us...@example.com"

Plese help if possible. Highly appreciate if someone could help here...

Below is the debug log :-

Debug: Loading modules from directory: /usr/lib64/dovecot
Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Debug: Loading modules from directory: /usr/lib64/dovecot/doveadm
Debug: Module loaded: /usr/lib64/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:
/usr/lib64/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined
symbol: expire_set_deinit (this is usually intentional, so just ignore this
message)
Debug: Module loaded:
/usr/lib64/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed:
/usr/lib64/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined
symbol: lucene_index_iter_deinit (this is usually intentional, so just
ignore this message)
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed:
/usr/lib64/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol:
fts_user_get_language_list (this is usually intentional, so just ignore
this message)
Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed:
/usr/lib64/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so: undefined
symbol: mail_crypt_box_get_pvt_digests (this is usually intentional, so
just ignore this message)
doveadm(ema...@example.com)<20402><>: Debug: auth USER input:
ema...@example.com uid=5000 gid=5000 home=/var/mail/vhosts/
example.com/email1
doveadm(ema...@example.com): Debug: Effective uid=5000, gid=5000,
home=/var/mail/vhosts/example.com/email1
doveadm(ema...@example.com): Debug: quota: No quota setting - plugin
disabled
doveadm(ema...@example.com): Debug: Namespace inbox: type=private,
prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:~/Maildir
doveadm(ema...@example.com): Debug: maildir++: root=/var/mail/vhosts/
example.com/email1/Maildir, index=, indexpvt=, control=,
inbox=/var/mail/vhosts/example.com/email1/Maildir, alt=
doveadm(ema...@example.com): Debug: acl: initializing backend with data:
vfile
doveadm(ema...@example.com): Debug: acl: acl username = ema...@example.com
doveadm(ema...@example.com): Debug: acl: owner = 1
doveadm(ema...@example.com): Debug: acl vfile: Global ACLs disabled
doveadm(ema...@example.com): Debug: Namespace : type=public,
prefix=Public/, sep=/, inbox=no, hidden=no, list=children,
subscriptions=yes
location=maildir:/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail:LAYOUT=fs
doveadm(ema...@example.com): Debug: fs:
root=/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail, index=,
indexpvt=, control=, inbox=, alt=
doveadm(ema...@example.com): Debug: acl: initializing backend with data:
vfile
doveadm(ema...@example.com): Debug: acl: acl username = ema...@example.com
doveadm(ema...@example.com): Debug: acl: owner = 0
doveadm(ema...@example.com): Debug: acl vfile: Global ACLs disabled
doveadm(ema...@example.com): Debug: Namespace : type=private, prefix=,
sep=, inbox=no, hidden=yes, list=no, subscriptions=no
location=fail::LAYOUT=none
doveadm(ema...@example.com): Debug: none: root=, index=, indexpvt=,
control=, inbox=, alt=
doveadm(ema...@example.com): Debug: acl vfile: file /var/mail/vhosts/
example.com/email1/Maildir/dovecot-acl not found


Doveconf output :-


# 2.3.5 (513208660): /etc/dovecot/dovecot.conf
# OS: Linux 5.0.7-200.fc29.x86_64 x86_64 Fedora release 29 (Twenty Nine)
# Hostname: machine
auth_mechanisms = plain login
mail_debug = yes
mail_gid = vmail
mail_location = maildir:~/Maildir
mail_plugins = acl quota
mail_privileged_group = mail
mail_uid = vmail
mbox_write_locks = fcntl
namespace {
  list = children
  location =
maildir:/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail:LAYOUT=fs
  prefix = Public/
  separator = /
  subscriptions = yes
  type = public
}
namespace inbox {
  inbox = yes
  list = 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 = INBOX/
  separator = /
}
passdb {
  driver = pam
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/mail/vhosts/example.com/Sharedbox
}
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
  }
  

Re: ACL Folders are open but not being displayed ? [2.3.3]

2019-03-15 Thread Kunal A. via dovecot
Hey Aki,
Many thanks for helping out. All the error messages are gone but it still
isn't working. Is it possible for you to see the debug message and advise?
Many Thanks

Maillog Output:

Mar 15 05:57:18 e480machine dovecot[6364]: master: Dovecot v2.3.3
(dcead646b) starting up for imap, pop3
Mar 15 14:37:41 e480machine dovecot[6368]: imap-login: Login: user=<
ema...@example.com>, method=PLAIN, rip=::1, lip=::1, mpid=7044, secured,
session=
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Loading modules from directory: /usr/lib64/dovecot
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Effective uid=5000, gid=5000, home=/var/mail/vhosts/
example.com/email1
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: quota: No quota setting - plugin disabled
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes,
hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: maildir++: root=/var/mail/vhosts/example.com/email1/Maildir, index=,
indexpvt=, control=, inbox=/var/mail/vhosts/example.com/email1/Maildir, alt=
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl: initializing backend with data: vfile
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl: acl username = ema...@example.com
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl: owner = 1
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl vfile: Global ACLs disabled
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Namespace : type=public, prefix=Public/, sep=/, inbox=no, hidden=no,
list=children, subscriptions=yes
location=maildir:/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail:LAYOUT=fs
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: fs: root=/mnt/5ea86261-cfae-4e17-b21f-3a6c1a03d795/Email/fastmail,
index=, indexpvt=, control=, inbox=, alt=
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl: initializing backend with data: vfile
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl: acl username = ema...@example.com
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl: owner = 0
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl vfile: Global ACLs disabled
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes,
list=no, subscriptions=no location=fail::LAYOUT=none
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: Mailbox INBOX: Mailbox opened because: SELECT
Mar 15 14:37:41 e480machine dovecot[6368]:
imap(ema...@example.com)<7044>:
Debug: acl vfile: file /var/mail/vhosts/
example.com/email1/Maildir/dovecot-acl not found



On Fri, Mar 15, 2019 at 5:36 AM Aki Tuomi 
wrote:

> It's a file, `touch subscriptions`
>
> Aki
> On 15.3.2019 11.36, Kunal A. wrote:
>
> Oh okay. How do correct this? Create the file/folder for this?  ie mkdir
> suscriptions ?
>
>
> On Fri, Mar 15, 2019 at 5:29 AM Aki Tuomi 
> wrote:
>
>> Nevertheless, the subscriptions file needs to be there.
>>
>> Aki
>> On 15.3.201911.28, Kunal A. wrote:
>>
>> Dear Aki,
>> Got it corrected. Many thanks for pointing it out. There is another error
>> about suscriptions. I don't have any folder with subscriptions. See the
>> error below :-
>>
>> Mar 15 05:22:10 machine dovecot[4804]: 
>> imap(ema...@example.com)<4970>:
>> Error: stat(/mnt/computer/Email/fastmail/subscriptions) failed: Permission
>> denied
>>
>> dr-xr-xr-x root  root  /
>> drwxr-xr-x root  root  mnt
>> drwxr-xr-x vmail vmail 

ACL Folders are open but not being displayed ? [2.3.3]

2019-03-15 Thread Kunal A. via dovecot
Hey,
Could someone help figure out whats wrong with my config based on the debug
below?

What I am trying to achieve is to get ema...@example.com to read emails in
the Public directory that is stored on
/run/media/computer/Storage/Email/fastmail/Archive with the preface
Public/Archive  .

The ACL has been set for anyone with permissions to lookup,read,write as
shown below:-

doveadm acl get -u ema...@example.com Public/Archive
ID Global Rights
anyonelookup read write

But when I try to access the emails for ema...@example.com , there are no
folders.
Could someone here help review my debug log and advise what could be
causing this (dovecot -n output is provided below the debug message)

Many thanks for assistance.
Thanks


Debug Message:

Mar 15 01:26:47 machine dovecot[2100]: imap-login: Login: user=<
ema...@example.com>, method=PLAIN, rip=::1, lip=::1, mpid=5167, secured,
session=
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Loading modules from directory: /usr/lib64/dovecot
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Effective uid=5000, gid=5000, home=/var/mail/vhosts/
example.com/email1
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: quota: No quota setting - plugin disabled
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes,
hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: maildir++: root=/var/mail/vhosts/example.com/email1/Maildir, index=,
indexpvt=, control=, inbox=/var/mail/vhosts/example.com/email1/Maildir, alt=
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl: initializing backend with data: vfile
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl: acl username = ema...@example.com
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl: owner = 1
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl vfile: Global ACLs disabled
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Namespace : type=public, prefix=Public/, sep=/, inbox=no, hidden=no,
list=children, subscriptions=yes
location=maildir:/run/media/computer/Storage/Email/fastmail:LAYOUT=fs
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: fs: root=/run/media/computer/Storage/Email/fastmail, index=,
indexpvt=, control=, inbox=, alt=
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl: initializing backend with data: vfile
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl: acl username = ema...@example.com
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl: owner = 0
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl vfile: Global ACLs disabled
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes,
list=no, subscriptions=no location=fail::LAYOUT=none
Mar 15 01:26:47 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Mar 15 01:28:37 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Mailbox INBOX: Mailbox opened because: SELECT
Mar 15 01:28:37 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl vfile: file /var/mail/vhosts/
example.com/email1/Maildir/dovecot-acl not found
Mar 15 01:29:28 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: Mailbox Public/Archive: Mailbox opened because: SELECT
Mar 15 01:29:28 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Debug: acl vfile: no access to file
/run/media/computer/Storage/Email/fastmail/Archive/dovecot-acl
Mar 15 01:29:28 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Error: open(/run/media/computer/Storage/Email/fastmail/dovecot-acl-list)
failed: Permission denied
Mar 15 01:29:28 machine dovecot[2100]:
imap(ema...@example.com)<5167>:
Error: stat(/run/media/computer/Storage/Email/fastmail) failed: Permission
denied (euid=5000(vmail) egid=5000(vmail) missing +w perm:
/run/media/computer/Storage/Email/fastmail
stat(/run/media/computer/Storage/Email/fastmail) failed: Permission denied,
dir 

Re: Dovecot 2.3.3 Mailbox does not exist

2019-02-27 Thread Kunal A. via dovecot
Dear Martin,
Many thanks for the advise and yes I agree I should set debug mode to on
and work from there.
Thanks!
Kunal


On Wed, Feb 27, 2019 at 4:11 AM Martin Johannes Dauser via dovecot <
dovecot@dovecot.org> wrote:

> Never done shared/public folders but perhaps Debug mode will give a hint.
>
> doveadm -Dv acl get -A Public/Archive
>
> On Tue, 2019-02-26 at 10:21 -0500, Kunal A. via dovecot wrote:
>
> HI,
> I would deeply aprechiate if someone here could help me address a problem
> with ACL. I would personally refrain from e-mailing ever so often as I
> understand other users have more important issues to discuss about. Anyways
> I hope someone here could help.
>
> When I run ;-
>  doveadm acl get -A Public/Archive
> I keep getting an error that says Mailbox does not exist . See erorr
> message below : -
>
> Error: Can't open mailbox Public/Archive: Mailbox doesn't exist:
> Public/Archive
>
> In the fastmail folder there is a folder called Archive, why isn't it
> being read?  The folder is drwxr-xr-x. with vmail as owner.
>
> Deeply appreciate if someone could help with this.
> Many  thanks
>
> 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: machine
> 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/fastmail/
>   prefix = Public/
>   separator = /
>   subscriptions = yes
>   type = public
> }
> namespace inbox {
>   inbox = yes
>   list = 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 = INBOX/
>   separator = /
> }
> 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 =  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
> }
>
>


Dovecot 2.3.3 Mailbox does not exist

2019-02-26 Thread Kunal A. via dovecot
HI,
I would deeply aprechiate if someone here could help me address a problem
with ACL. I would personally refrain from e-mailing ever so often as I
understand other users have more important issues to discuss about. Anyways
I hope someone here could help.

When I run ;-
 doveadm acl get -A Public/Archive
I keep getting an error that says Mailbox does not exist . See erorr
message below : -

Error: Can't open mailbox Public/Archive: Mailbox doesn't exist:
Public/Archive

In the fastmail folder there is a folder called Archive, why isn't it being
read?  The folder is drwxr-xr-x. with vmail as owner.

Deeply appreciate if someone could help with this.
Many  thanks

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: machine
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/fastmail/
  prefix = Public/
  separator = /
  subscriptions = yes
  type = public
}
namespace inbox {
  inbox = yes
  list = 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 = INBOX/
  separator = /
}
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 = 

Re: Linking mailboxes

2019-02-25 Thread Kunal A. via dovecot
Dear Aki,
i think I got it.
Many thanks.  it has to do with the permission settings.


On Mon, Feb 25, 2019 at 12:59 PM Aki Tuomi 
wrote:

> drwx-x kunal kunal Storage
>
> I'm guessing this point is being more restrictive. Can you try changing
> this into 0755?
>
> Also suddenly you are no longer using vmail but random user IDs. This only
> works with vmail.
>
> Aki
>
> > On 25 February 2019 19:56 Kunal A.  wrote:
> >
> >
> > Hi,
> > Yes. Output ;-
> >
> > dr-xr-xr-x root root /
> > drwxr-xr-x root root run
> > drwxr-xr-x root root media
> > drwxr-x--x root root computer
> > drwx-x kunal kunal Storage
> > drwx-- vmail vmail Email
> > drwx-- vmail vmail tmp
> >
> >
> >
> > On Mon, Feb 25, 2019 at 12:53 PM Aki Tuomi 
> wrote:
> > > 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.  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. 
> 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.tu...@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 .
> > >  > > > >
> > &

Re: Linking mailboxes

2019-02-25 Thread Kunal A. via dovecot
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.  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 
> 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 
>> 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 
>> 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.tu...@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
>> > >  > >
>> > >
>>
>


Re: Linking mailboxes

2019-02-25 Thread Kunal A. via dovecot
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 
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 
> 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 
> wrote:
> > > I would only run it for the mail folders to be safe.
> > >
> > >  Aki
> > >
> > >  > On 25 February 2019 18:34 Kunal A. via dovecot 
> 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.tu...@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
> > >  > >
> > >
>


Re: Linking mailboxes

2019-02-25 Thread Kunal A. via dovecot
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 
wrote:

> I would only run it for the mail folders to be safe.
>
> Aki
>
> > On 25 February 2019 18:34 Kunal A. via dovecot 
> 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 
> 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
> > >
>


Re: Linking mailboxes

2019-02-25 Thread Kunal A. via dovecot
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 
wrote:

>
> > On 25 February 2019 18:19 Aki Tuomi via dovecot 
> wrote:
> >
> >
> > > On 25 February 2019 17:56 Kunal A. via dovecot 
> 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
>


Re: Linking mailboxes

2019-02-25 Thread Kunal A. via dovecot
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 =  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" 
>  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 vmail0 Feb 23 13:39 maildirfolder
> drwx--. 2 vmail vmail 4096 Feb 23 13:39 new
> lrwxrwxrwx. 1 root  root45 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( ema...@example.com,
> ema...@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 {
> spe

Linking mailboxes

2019-02-24 Thread Kunal A. via dovecot
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 vmail0 Feb 23 13:39 maildirfolder
drwx--. 2 vmail vmail 4096 Feb 23 13:39 new
lrwxrwxrwx. 1 root  root45 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(ema...@example.com,ema...@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 = 

Re: Troubles with Dovecot 2.3.3 - mkdir permission denied due to +w perm: /var, dir owned by 0:0 mode=0755)

2019-02-22 Thread Kunal A. via dovecot
Dear Ralph,
Ah! You are right. My eyes are not working correctly. I kept thinking I was
reading /va/mail/vmail etc.
Sorry for this and thank you very much for catching it!
Cheers

On Fri, Feb 22, 2019 at 2:17 PM Ralph Seichter via dovecot <
dovecot@dovecot.org> wrote:

> * Kunal A. via dovecot:
>
> > Error: mkdir(/var/vmail/ema...@example.com/Maildir) failed: Permission
> > denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var, dir
> owned
> > by 0:0 mode=0755)
>
> The error message seems pretty clear. User 'vmail' does not have write
> permissions for /var, which is owned by 'root'. I suggest you create
> /var/vmail and grant the necessary permissions there.
>
> -Ralph
>


Troubles with Dovecot 2.3.3 - mkdir permission denied due to +w perm: /var, dir owned by 0:0 mode=0755)

2019-02-22 Thread Kunal A. via dovecot
Hi,
I am quite new to Dovecot and I followed a tutorial on Linode to set up
Dovecot, Postfix and MySql on the following site:-
https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql/

Everything seems to work fine(telnet etc) except dovecot does not create
mailboxes.
Highly appreciate if someone could check the error messages and the dovecot
-n on the bottom and provide some advise. I was unable to get the SQL
config but I don't think its related to SQL but more of permission related.
Please help

Thanks
Kevin



Dovecot Version: 2.3.3
Error Message:
Feb 22 08:54:42 computer dovecot[2224]:
imap(ema...@example.com)<4452>:
Server shutting down. in=16 out=539 deleted=0 expunged=0 trashed=0
hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 22 08:54:42 computer dovecot[4870]: master: Dovecot v2.3.3 (dcead646b)
starting up for imap, pop3
Feb 22 08:55:06 computer dovecot[4872]: imap-login: Login: user=<
ema...@example.com>, method=PLAIN, rip=::1, lip=::1, mpid=4878, secured,
session=
Feb 22 08:55:14 computer dovecot[4872]:
imap(ema...@example.com)<4878>:
Error: mkdir(/var/vmail/ema...@example.com/Maildir) failed: Permission
denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var, dir owned
by 0:0 mode=0755)
Feb 22 08:55:14 computer dovecot[4872]:
imap(ema...@example.com)<4878>:
Error: mkdir(/var/vmail/ema...@example.com/Maildir) failed: Permission
denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var, dir owned
by 0:0 mode=0755)
Feb 22 08:55:14 computer dovecot[4872]:
imap(ema...@example.com)<4878>:
Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error
occurred. Refer to server log for more information. [2019-02-22 08:55:14]
Feb 22 09:25:14 computer dovecot[4872]:
imap(ema...@example.com)<4878>:
Disconnected for inactivity in=16 out=546 deleted=0 expunged=0 trashed=0
hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0



Output of dovecot -n :

# 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 =