Re: How to unsubscribe

2018-12-01 Thread Keith Edmunds
> I am very sorry that I had to enable the delivery for people who had
> intentionally disabled delivery, but I didn't want to spend days
> figuring out the best possible way to fix the situation and in the end
> it's not a horrible bother to disable yourself again


I have disabled mail delivery in Mailman.

I'm still receiving the list mails.
-- 


Re: How to unsubscribe

2018-11-30 Thread Keith Edmunds
> b) go to https://https://dovecot.org/mailman/listinfo/dovecot and click
> unsubscribe, don't change your delivery options to notmail.


That's not at all clear (quite apart from the double protocol prefix). A
lot of the potential audience of this list "know" how Mailman works, so
why have you broken that knowledge by delivering to those who have
disabled mail delivery?


Re: DMARC policies

2018-11-30 Thread Keith Edmunds
At the risk of being AOLish, me too. Unsubbed from Mailman, but still
receiving mails.

Where do I go to stop them (and why have they suddenly started arriving)?
-- 
"Never, never, never give up" - Winston Churchill


Problem (bug?) copying mail folders

2016-01-24 Thread Keith Edmunds
I have reported a bug to Claws Mail
(http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3601);
however, I see some behaviour from Dovecot that looks odd to me.

Background: I am trying to copy a folder to another part of the IMAP
folder hierarchy. The destination parent folder is ACL protected; I
have lirwstpeak rights. Claws initially tries to create the destination
folder and then copy the mails from the source to destination.

The destination parent folder is 'public/accounts'; the folder being
moved there is 'test' and 'public/accounts/test' does not exist at the
start of the process. This is from Dovecot's rawlog:

11 LIST "" "public/accounts/test"
11 OK List completed.
12 CREATE "public/accounts/test"
12 OK Create completed.
13 LIST "" "public/accounts/test"
13 OK List completed.
14 SUBSCRIBE "public/accounts/test"
14 NO Mailbox doesn't exist: public/accounts/test
15 UID COPY 1:2 "public/accounts/test"
15 NO [TRYCREATE] Mailbox doesn't exist: public/accounts/test

What I don't understand: the response to command 12 suggests that the
destination folder has been created; the response to commands 14 and
15 suggest it hasn't.

At the completion of the process, the 'public/accounts/test' folder
DOES exist, but it's empty, supporting the fact that it may not have
existed when command 15 was executed.

Is there some kind of race condition here - or have I just
misunderstood how this should work?

Running on ext4 filesystem; dovecot -n:

# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.2 ext4
lda_mailbox_autocreate = yes
mail_debug = yes
mail_location = maildir:/srv/mail/imap/%u:LAYOUT=fs
mail_plugins = acl fts
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
namespace {
  hidden = no
  location = 
maildir:/srv/mail/imap/public:INDEX=/srv/mail/imap/public.indexes/%u.index:LAYOUT=fs
  prefix = public/
  separator = /
  subscriptions = no
  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 = 
  separator = /
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile
  acl_shared_dict = file:/srv/mail/imap/shared-mailboxes
  fts_autoindex = yes
  sieve = /home/sieve/%u.sieve
  sieve_dir = /home/sieve/%u
}
protocols = " imap sieve sieve"
service imap {
  executable = imap postlogin
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service postlogin {
  executable = script-login -d rawlog
}
ssl_cert = 

[Dovecot] Subfolders of Inbox with LAYOUT=fs

2013-08-05 Thread Keith Edmunds
We've just converted to LAYOUT=fs. Some users had subfolders under Inbox,
and for those users some MUAs no longer show those folders.

The directory structure is that the cur, tmp and new folders are in the
'location' directory, but the subfolders are in
$location/INBOX/$foldername.

I am suspicious of this:

12 list  INBOX
* LIST (\HasNoChildren) / INBOX
12 OK List completed.

I have tried moving the cur, tmp and new folders to $location/INBOX, and
changing 'location' in dovecot.conf, but the subfolders still do not show.

Question: is it legitimate to have subfolders of INBOX when using
LAYOUT=fs? If so, what am I missing?

Thanks,
Keith

Config:

# dovecot -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.1 ext3
lda_mailbox_autocreate = yes
log_timestamp = %Y-%m-%d %H:%M:%S 
mail_home = /home/%u
mail_location = maildir:/home/imapmail/%u:LAYOUT=fs
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date ihave
namespace { inbox = yes location = maildir:/home/imapmail/%u:LAYOUT=fs
  prefix = 
  separator = /
  type = private
}
namespace {
  hidden = no
  list = children
  location =
maildir:/home/imapmail/public:INDEX=/home/imapmail/public.indexes/%u.index:LAYOUT=fs
prefix = public/ separator = /
  subscriptions = no
  type = public
}
passdb {
  driver = pam
}
plugin {
  acl = vfile
  acl_shared_dict = file:/home/imapmail/shared-mailboxes
  fts = squat
  home = /home/%u
  sieve = /home/sieve/%u.sieve
  sieve_dir = /home/sieve/%u
}
protocols = imap sieve
service auth {
  user = root
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
ssl_cert = /etc/dovecot/TCL_IMAPS_server.crt
ssl_key = /etc/dovecot/TCL_IMAPS_server.key
userdb {
  args = uid=imapmail gid=imapmail
  driver = static
}
protocol imap {
  imap_client_workarounds = tb-extra-mailbox-sep
  mail_plugins = acl imap_acl fts fts_squat
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
  mail_plugins = sieve
}


-- 
You can't live a perfect day without doing something for someone 
who will never be able to repay you.


Re: [Dovecot] Subfolders of Inbox with LAYOUT=fs

2013-08-05 Thread Keith Edmunds
 Oh, looks like this has been broken for a while. Fixed:
 http://hg.dovecot.org/dovecot-2.1/rev/589d2f485a6e

Thanks Timo. Unfortunately we're using the packaged Debian version (2.1.7)
and the current version of mailbox-list-fs-iter.c is a bit too different
to apply that patch (but thanks for the very quick response).
-- 
You can't live a perfect day without doing something for someone 
who will never be able to repay you.


Re: [Dovecot] Folder layout after Cyrus to Dovecot migration

2012-11-23 Thread Keith Edmunds
Problem: We have some folders (eg, Trash) appearing both as sibling folders
to INBOX and as subfolders to INBOX. We want them only to appear at the
sibling level.

In order to put some folders (Sent, Trash, some others) at a peer
level to INBOX, and all other folders under INBOX, we've defined
namespaces as follows:


mail_location =
   maildir:/shared/imapmail/users/%u:INBOX=/shared/imapmail/users/%u:LAYOUT=fs

namespace private {
   separator = /
   prefix = INBOX/
   inbox = yes
}
namespace private {
   separator = /
   prefix = Trash/
   location = maildir:/shared/imapmail/users/%u/Trash:LAYOUT=fs
   inbox = no
}


In the file system, the mail_location for each user has all the top-level
mail folders plus the cur, tmp and new directories for INBOX, so, for
example, there is a directory in mail_location called Trash.

Is there a way to configure Dovecot to show Trash at the top level (as the
last namespace definition above does), yet not also show it as a subfolder
of INBOX?

Thanks,
Keith
-- 
We're looking for smart Linux people:
http://www.tiger-computing.co.uk/jobs


[Dovecot] Folder layout after Cyrus to Dovecot migration

2012-11-16 Thread Keith Edmunds
# dovecot --version
1.2.15

We're trying to migrate a server from Cyrus to Dovecot, and we're mostly
there.

On Cyrus, the folder layout in the MUA is:

INBOX
 subfolder
 subfolder
 ...
Sent
Drafts
Queue
Trash

Users cannot create sibling folders to the Inbox, only subfolders (and
sub-subfolders, etc). We've replicated that with:


mail_location = 
 maildir:/shared/imapmail/users/%u:INBOX=/shared/imapmail/users/%u:LAYOUT=fs

namespace private {
   separator = /
   prefix = INBOX/
   inbox = yes
}


...however, the Sent/Drafts/Queue/Trash folders are now subfolders of
Inbox. Cyrus seems to default to the above layout (at least, I can't find
anywhere that defines it). There are no special settings in the MUA to
achieve the abovev. Is there a way of replicating the above within
Dovecot? We can probably go to V2 if we have to, but 1.2.15 would be
preferable.

Thanks,
Keith


Re: [Dovecot] Folder layout after Cyrus to Dovecot migration

2012-11-16 Thread Keith Edmunds
 read
 
 http://wiki2.dovecot.org/Migration
 http://wiki2.dovecot.org/Namespaces

Thank you: I have (already had) read both.

Are you suggesting that hidden namespaces will provide the functionality
we are looking for? Or have I missed the point?

Thanks,
Keith


[Dovecot] Managing public folder ACL files

2011-04-06 Thread Keith Edmunds
We have a customer with a large public folder hierarchy. They occasionally
make requests to have the public folder ACLs changed; for example: please
give user X access to all public folders (that's nearly 1700 folders).
Worse: please give user Y access to all sales folders (there are 1450
sales folders).

The problem is that there are (naturally) spaces in the folder names,
which makes command line manipulation challenging. We've ended up with
some astonishingly hacky Python scripts that enter each folder starting
with (for example) .sales and replacing the dovecot-acl file to try to
fulfil the above requests. One day our script are going to get it wrong,
or requests will become more complex (give X access all sales/CustA
folders, Y access to all sales/CustB folders, and Z access to all sales
folders). There must be a Better Way.

How do others manage divergent ACLs within large public folder hierarchies?

Thanks,
Keith


Re: [Dovecot] Thunderbird and shared mailboxes [SOLVED]

2010-07-08 Thread Keith Edmunds
 Oh, and mail_debug=yes might log something useful too.

Excellent advice. Turning on the above revealed a path typo in the
namespace definition. All is now working exactly as required.

Timo: thank you very much.

Keith


Re: [Dovecot] Thunderbird and shared mailboxes

2010-06-29 Thread Keith Edmunds
  namespace:
type: shared
separator: /
prefix: shared/%%u/
location:
  maildir:/home/imapmail/%%u/Maildir:INDEX=~/Maildir/shared/%%u list:
  children
 
 You should have subscriptions=no here. Other than that, it looks ok to
 me.

I actually do have subscriptions=no there, but dovecot -n doesn't report
it.

  2 select shared/kae/stuff
  2 NO Invalid mailbox name: shared/kae/stuff
 
 This is correct. Did you look at the log file for errors when trying it?

I did have errors relating to the tilde in the INDEX entry above; I've
fixed that by changing that line to:

location =
maildir:/home/imapmail/%%u/Maildir:INDEX=/home/imapmail/%u/shared/%%u

I've put the full output of 'dovecot -n' at the foot of this mail.

However, I still don't seem to be able to select the shared folder:

1 login def def
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE
CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk]
Logged in
2 select shared/kae/stuff
2 NO Mailbox doesn't exist: stuff
3 logout
* BYE Logging out
3 OK Logout completed.


1 login kae kae
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE
CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk]
Logged in
2 getacl stuff
* ACL stuff def lr kae lrwstipekxacd
2 OK Getacl completed.
3 logout
* BYE Logging out
3 OK Logout completed.

The only log entries from the above are login/logout messages, no errors.

Timo, very grateful for your continuing help, and hoping we can get this
resolved soon.
3 OK Logout completed.

Thanks,
Keith


dovecot -n:


# dovecot -n
# 1.2.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-486 i686 Debian 5.0.4 ext3
log_path: /var/log/dovecot.err
log_timestamp: %Y-%m-%d %H:%M:%S
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_location: maildir:/home/imapmail/%u
mbox_write_locks: fcntl dotlock
mail_plugins: acl imap_acl
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: info/
  location:
maildir:/home/imapmail/public/info:CONTROL=/home/imapmail/public/info/.%u.control:INDEX=/home/imapmail/public/info/.%u.index
list: yes subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: customers/
  location:
maildir:/home/imapmail/public/customers:CONTROL=/home/imapmail/public/customers/.%u.control:INDEX=/home/imapmail/public/customers/.%u.index
list: yes subscriptions: yes
namespace:
  type: shared
  separator: /
  prefix: shared/%%u/
  location:
maildir:/home/imapmail/%%u/Maildir:INDEX=/home/imapmail/%u/shared/%%u
list: children auth default:
  passdb:
driver: pam
  userdb:
driver: static
args: uid=imapmail gid=imapmail
plugin:
  acl: vfile
  acl_shared_dict: file:/var/tmp/shared-mailboxes
  mail_log_events: delete undelete expunge copy mailbox_delete
mailbox_rename mail_log_fields: uid box msgid size from subject
#



Re: [Dovecot] Thunderbird and shared mailboxes

2010-06-28 Thread Keith Edmunds
I'd be grateful for any advice regarding one user sharing a single folder
with another user.

Thanks,
Keith

 To recap: user 'kae' has set an acl sharing his folder 'stuff' with user
 'def'.
 
 As kae:
 
  3 getacl stuff
  * ACL stuff def lr kae lrwstipekxacd
  3 OK Getacl completed.
 
 As user def:
 
  2 list  *
  * LIST (\HasNoChildren) / Trash
  * LIST (\HasNoChildren) / INBOX
  * LIST (\HasNoChildren) / info
  * LIST (\HasNoChildren) / customers
  2 OK List completed.
 
 Timo said:
 
  Looks ok. dovecot -n output would help.
 
 
 # dovecot -n
 # 1.2.11: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.26-2-486 i686 Debian 5.0.4 ext3
 log_path: /var/log/dovecot.err
 log_timestamp: %Y-%m-%d %H:%M:%S
 disable_plaintext_auth: no
 login_dir: /var/run/dovecot/login
 login_executable: /usr/lib/dovecot/imap-login
 mail_location: maildir:/home/imapmail/%u
 mbox_write_locks: fcntl dotlock
 mail_plugins: acl imap_acl
 namespace:
   type: private
   separator: /
   inbox: yes
   list: yes
   subscriptions: yes
 namespace:
   type: public
   separator: /
   prefix: info/
   location:
 maildir:/home/imapmail/public/info:CONTROL=/home/imapmail/public/info/.%u.control:INDEX=/home/imapmail/public/info/.%u.index
 list: yes subscriptions: yes
 namespace:
   type: public
   separator: /
   prefix: customers/
   location:
 maildir:/home/imapmail/public/customers:CONTROL=/home/imapmail/public/customers/.%u.control:INDEX=/home/imapmail/public/customers/.%u.index
 list: yes subscriptions: yes
 namespace:
   type: shared
   separator: /
   prefix: shared/%%u/
   location: maildir:/home/imapmail/%%u/Maildir:INDEX=~/Maildir/shared/%%u
   list: children
 auth default:
   passdb:
 driver: pam
   userdb:
 driver: static
 args: uid=imapmail gid=imapmail
 plugin:
   acl: vfile
   acl_shared_dict: file:/var/tmp/shared-mailboxes
   mail_log_events: delete undelete expunge copy mailbox_delete
 mailbox_rename mail_log_fields: uid box msgid size from subject
 #
 
 
  What about if you try to SELECT the mailbox directly?
 
 I'm not sure that I have the syntax exactly correct; however, as user
 'def':
 
 2 select shared/kae/stuff
 2 NO Invalid mailbox name: shared/kae/stuff
 3 select kae/stuff
 3 NO Mailbox doesn't exist: kae.stuff
 
 Note: the full path to the mailbox in question
 is /home/imapmail/kae/.stuff
 
 If I'm using the incorrect syntax, what should it be?
 
 If the syntax is correct, any ideas why I can't select the mailbox?
 
 Thanks,
 Keith


-- 
Keith Edmunds

+-+
|Tiger Computing Ltd|  Helping businesses make the most of Linux  |
|  The Linux Specialists  |   http://www.tiger-computing.co.uk  |
+-+


Re: [Dovecot] Thunderbird and shared mailboxes

2010-06-24 Thread Keith Edmunds
To recap: user 'kae' has set an acl sharing his folder 'stuff' with user
'def'.

As kae:

 3 getacl stuff
 * ACL stuff def lr kae lrwstipekxacd
 3 OK Getacl completed.

As user def:

 2 list  *
 * LIST (\HasNoChildren) / Trash
 * LIST (\HasNoChildren) / INBOX
 * LIST (\HasNoChildren) / info
 * LIST (\HasNoChildren) / customers
 2 OK List completed.

Timo said:

 Looks ok. dovecot -n output would help.


# dovecot -n
# 1.2.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-486 i686 Debian 5.0.4 ext3
log_path: /var/log/dovecot.err
log_timestamp: %Y-%m-%d %H:%M:%S
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_location: maildir:/home/imapmail/%u
mbox_write_locks: fcntl dotlock
mail_plugins: acl imap_acl
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: info/
  location:
maildir:/home/imapmail/public/info:CONTROL=/home/imapmail/public/info/.%u.control:INDEX=/home/imapmail/public/info/.%u.index
list: yes subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: customers/
  location:
maildir:/home/imapmail/public/customers:CONTROL=/home/imapmail/public/customers/.%u.control:INDEX=/home/imapmail/public/customers/.%u.index
list: yes subscriptions: yes
namespace:
  type: shared
  separator: /
  prefix: shared/%%u/
  location: maildir:/home/imapmail/%%u/Maildir:INDEX=~/Maildir/shared/%%u
  list: children
auth default:
  passdb:
driver: pam
  userdb:
driver: static
args: uid=imapmail gid=imapmail
plugin:
  acl: vfile
  acl_shared_dict: file:/var/tmp/shared-mailboxes
  mail_log_events: delete undelete expunge copy mailbox_delete
mailbox_rename mail_log_fields: uid box msgid size from subject
#


 What about if you try to SELECT the mailbox directly?

I'm not sure that I have the syntax exactly correct; however, as user
'def':

2 select shared/kae/stuff
2 NO Invalid mailbox name: shared/kae/stuff
3 select kae/stuff
3 NO Mailbox doesn't exist: kae.stuff

Note: the full path to the mailbox in question
is /home/imapmail/kae/.stuff

If I'm using the incorrect syntax, what should it be?

If the syntax is correct, any ideas why I can't select the mailbox?

Thanks,
Keith


Re: [Dovecot] Thunderbird and shared mailboxes

2010-06-10 Thread Keith Edmunds
 On ke, 2010-06-09 at 17:41 +0100, Keith Edmunds wrote:
  I'm setting up shared mailboxes as in
  http://wiki.dovecot.org/SharedMailboxes/Shared, and have set ACLs as
  described on that page to share one folder of user A's mailbox with
  User B.
 
 You did it with SETACL command, and you had acl_shared_dict set? A
 little more details would be helpful..

Yes and yes:

[as user 'kae', who wants to share a folder called 'stuff' with user def]
1 login kae kae
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE
CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk]
Logged in
2 setacl stuff def rl
2 OK Setacl complete.
3 getacl stuff
* ACL stuff def lr kae lrwstipekxacd
3 OK Getacl completed.

[now as user def]
1 login def def
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE
CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] 
Logged in
2 list  *
* LIST (\HasNoChildren) / Trash
* LIST (\HasNoChildren) / INBOX
* LIST (\HasNoChildren) / info
* LIST (\HasNoChildren) / customers
2 OK List completed.

Contents of acl_shared_dict:
shared/shared-boxes/user/d...@dovecot/kae
1
shared/shared-boxes/user/def/kae
1

Does that shed any light?

Thanks,
Keith


[Dovecot] Thunderbird and shared mailboxes

2010-06-09 Thread Keith Edmunds
I'm setting up shared mailboxes as in
http://wiki.dovecot.org/SharedMailboxes/Shared, and have set ACLs as
described on that page to share one folder of user A's mailbox with User B.

However, I'm struggling to get Thunderbird for us...@example.com to read
the shared folder of us...@example.com. Has anyone done this?

Thunderbird 3.0, Dovecot 1.2.11

Thanks,
Keith


[Dovecot] ACL in public folders

2009-08-28 Thread Keith Edmunds
# dovecot --version
1.2.1

I'm trying to configure ACLs for public folders. I have:


namespace public {
   separator = /
   prefix = shared2/
   location = maildir:/home/pubfolders2:INDEX=~/Maildir/public2
   subscriptions = no
   list = children
}
protocol imap {
  mail_plugins = acl
}
plugin {
  acl = vfile
}


I have /home/pubfolders2/dovecot-acl containing:

user=xyz lrwstiekxa

I've also hardlinked the file to /home/pubfolders2/.info (one of the
public folders: that dir contains cur,tmp,new).

Since enabling ACLs in dovecot.conf, none of the users see the 'shared2'
namespace.

I've clearly misunderstood something. I'm expecting user xyz to be able to
see the public folder.

Grateful for any pointers.

Thanks,
Keith


Re: [Dovecot] ACL in public folders

2009-08-28 Thread Keith Edmunds
  I have /home/pubfolders2/dovecot-acl containing:
 
 The file isn't read by 1.2.1. Upgrade.

Thanks Timo. I think the Wiki is misleading: it says (on page
http://wiki.dovecot.org/ACL):

Dovecot v1.0 and v1.1 supports administrator-configured ACL files. v1.2+
supports also IMAP ACL extension...

If 1.2.1 doesn't read the dovecot-acl file, how are ACLs configured in
that version? Also, which from which version is the dovecot-acl file
supported? There's no mention of it being version specific (other than
=v1.0) on the Wiki.

Thanks,
Keith


Re: [Dovecot] ACL in public folders

2009-08-28 Thread Keith Edmunds
[Sorry, sent to Timo at first attempt]

 With older versions you'd have to
 put the dovecot-acl file to each maildir separately

Thanks, but it still isn't clear to me. I have (the same, hardlinked)
dovecot-acl file in lots of different places:


# tree /home/pubfolders2/ -a
/home/pubfolders2/
|-- .info
|   |-- cur
|   |-- dovecot-acl
|   |-- dovecot-shared
|   |-- new
|   |   `-- 1251457688.H922394P13547.magenta.tiger-computing.wbp
|   `-- tmp
|-- Maildir
|   `-- dovecot-acl
`-- dovecot-acl


There isn't a 'maildir' folder as such for the public folders (I created
the one shown above in desperation just to see if Dovecot would look
there). Here's the dovecot.conf:


protocols = imap imaps
disable_plaintext_auth = no
log_timestamp = %Y-%m-%d %H:%M:%S 
namespace private {
   separator = /
   prefix =
   inbox = yes
}
namespace public {
   separator = /
   prefix = shared2/
   location = maildir:/home/pubfolders2:INDEX=~/Maildir/public2
   subscriptions = no
   list = children
}
mail_privileged_group = mail
mail_access_groups = pubfolders2
protocol imap {
  mail_plugins = acl
}

protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
auth default {
  mechanisms = plain
  passdb pam {
  }
  userdb passwd {
  }
  user = root
}
dict {
}
plugin {
  acl = vfile
}


That isn't working, so exactly where should the dovecot-acl file go for it
to work?

Thanks,
Keith


Re: [Dovecot] Public folders, individual SEEN flags

2009-07-29 Thread Keith Edmunds
 This file probably isn't in the right place. It needs to be in each
 maildir under the publicfolders/ directory (i.e. where the
 dovecot-uidlist files are also).

Thanks Timo.

That seems to work, which in turn suggests that the directory listing in
the second code example at http://wiki.dovecot.org/SharedMailboxes/Public
is incorrect. I'm happy to change it, but could you confirm that it is,
indeed, wrong?

Thanks,
Keith


[Dovecot] Shared mailboxes and INBOX

2009-07-29 Thread Keith Edmunds
I'm trying to implement a shared mailbox: in other words, we have a
generic email address (security@) which we want a number of users to be
able to monitor. The problem I have is that users can see folders under
that shared mailbox but can't see the INBOX.

All the users in question have their own INBOX in their private namespace,
so does this raise a conflict with monitoring another mailbox's INBOX?

Configuration:


# dovecot -n
# 1.2.1: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-686 i686 Debian 5.0.2
log_timestamp: %Y-%m-%d %H:%M:%S
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: shared/
  location: maildir:/home/publicfolders:INDEX=~/Maildir/public
  list: yes
namespace:
  type: shared
  separator: /
  prefix: security/
  location:
maildir:/home/securitymailbox/Maildir:INDEX=~/Maildir/securitymailbox
list: yes auth default:
  passdb:
driver: pam
  userdb:
driver: passwd


Thanks,
Keith


[Dovecot] Public folders, individual SEEN flags

2009-07-27 Thread Keith Edmunds
Hi list

I'm trying to set up shared public folders with individual SEEN flags.
I've set up three test users, but as soon as one of them marks a mail in
the public folder as seen or unseen, that change is propagated to all
three users. If I watch the dovecot.index.log file in each user's
directory for the public folder, I see all three change their last access
time as soon as one user changes the SEEN status of a mail.

Any hints as to what I'm doing wrong gratefully received, thanks.

# dovecot --version
1.2.1

# dovecot -n
# 1.2.1: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-686 i686 Debian 5.0.2
log_timestamp: %Y-%m-%d %H:%M:%S
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: shared/
  location: maildir:/home/publicfolders:INDEX=~/Maildir/public
  list: yes
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd

# ls -l /home/publicfolders/dovecot-shared
-rw-rw-r-- 1 publicfolders publicfolders 0 2009-07-27
   15:01 /home/publicfolders/dovecot-shared