Re: Auto create folders

2015-01-27 Thread Patrick Boutilier

On 01/26/2015 02:48 PM, Nic Bernstein wrote:

On 01/26/2015 11:30 AM, Andrew Morgan wrote:

On Mon, 26 Jan 2015, John Mok wrote:


Hi Andy,

Thank you for your prompt reply.


How do you create mailboxes now?

I used cyradm and createmailbox, e.g. createmailbox
user/username@DOMAIN, to create mailboxes.

Any idea how to create folder in cyradm? Simply createmailbox
user/username@DOMAIN/spam, and then set ACL permissions for
user/username@DOMAIN/spam ?

Yes, that's exactly what you need to do!


Actually, unless you need something out of the ordinary, you can skip
setting the ACL for the child mailbox, as it will inherit from its
parent (from the docs page
http://cyrusimap.org/docs/cyrus-imapd/2.4.17/overview.php#acl ):

Initial ACLs for Newly Created Mailboxes
When a mailbox is created, its ACL starts off with a copy of the ACL
of its closest parent mailbox. When a user is created, the ACL on
the user's INBOX starts off with a single entry granting all rights
to the user. When a non-user mailbox is created and does not have a
parent, its ACL is initialized to the value of the defaultacl
option in /etc/imapd.conf

Note that some rights are available implicitly, for example
'anonymous' always has 'p' on user INBOXes, and users always have
rights on mailboxes within their INBOX hierarchy.

Cheers,
 -nic



Right, but the original poster wants to prevent his users from deleting 
the spam folder. So he has to change the ACL on the spam folder.






--
Nic bernstein...@onlight.com
Onlight, Inc.www.onlight.com
219 N. Milwaukee St., Suite 2av. 414.272.4477
Milwaukee, Wisconsin  53202




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



attachment: boutilpj.vcf
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Auto create folders

2015-01-26 Thread Andrew Morgan
On Mon, 26 Jan 2015, John Mok wrote:

 Hi Andy,

 Thank you for your prompt reply.

 How do you create mailboxes now?

 I used cyradm and createmailbox, e.g. createmailbox
 user/username@DOMAIN, to create mailboxes.

 Any idea how to create folder in cyradm? Simply createmailbox
 user/username@DOMAIN/spam, and then set ACL permissions for
 user/username@DOMAIN/spam ?

Yes, that's exactly what you need to do!

Andy

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Auto create folders

2015-01-26 Thread Nic Bernstein

On 01/26/2015 11:30 AM, Andrew Morgan wrote:

On Mon, 26 Jan 2015, John Mok wrote:


Hi Andy,

Thank you for your prompt reply.


How do you create mailboxes now?

I used cyradm and createmailbox, e.g. createmailbox
user/username@DOMAIN, to create mailboxes.

Any idea how to create folder in cyradm? Simply createmailbox
user/username@DOMAIN/spam, and then set ACL permissions for
user/username@DOMAIN/spam ?

Yes, that's exactly what you need to do!


Actually, unless you need something out of the ordinary, you can skip 
setting the ACL for the child mailbox, as it will inherit from its 
parent (from the docs page 
http://cyrusimap.org/docs/cyrus-imapd/2.4.17/overview.php#acl ):


   Initial ACLs for Newly Created Mailboxes
   When a mailbox is created, its ACL starts off with a copy of the ACL
   of its closest parent mailbox. When a user is created, the ACL on
   the user's INBOX starts off with a single entry granting all rights
   to the user. When a non-user mailbox is created and does not have a
   parent, its ACL is initialized to the value of the defaultacl
   option in /etc/imapd.conf

   Note that some rights are available implicitly, for example
   'anonymous' always has 'p' on user INBOXes, and users always have
   rights on mailboxes within their INBOX hierarchy.

Cheers,
-nic

--
Nic Bernstein n...@onlight.com
Onlight, Inc. www.onlight.com
219 N. Milwaukee St., Suite 2av. 414.272.4477
Milwaukee, Wisconsin  53202

attachment: nic.vcf
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Auto create folders

2015-01-25 Thread Willy Offermans
Dear Andrew and Cyrus-imap friends,

On Fri, Jan 23, 2015 at 10:32:51AM -0800, Andrew Morgan wrote:
 On Fri, 23 Jan 2015, John Mok wrote:
 
  Hi,
 
  I have been using Cyrus IMAP 2.4.17 on Debian 7 with Kerberos / GSSAPI 
  authentication.
 
  I would like to auto-create one or more folders upon mailbox creation, 
  e.g. a spam folder to store potential spam mails for spamassassin 
  learning.
 
  On the other hand, how to prevent such folders from deletion by users?
 
  Thanks a lot.
 
 How do you create mailboxes now?
 
 We create mailboxes using a Perl script, and that script also creates a 
 junk-mail folder with an annotation to delete messages older than 30 
 days.
 
 You can also alter the folder's permissions to prevent users from deleting 
 them.
 

Do you mind to share the script with us?


-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*
 W.K. Offermans

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Auto create folders

2015-01-25 Thread John Mok
Hi Andy,

Thank you for your prompt reply.

 How do you create mailboxes now?

I used cyradm and createmailbox, e.g. createmailbox
user/username@DOMAIN, to create mailboxes.

Any idea how to create folder in cyradm? Simply createmailbox
user/username@DOMAIN/spam, and then set ACL permissions for
user/username@DOMAIN/spam ?

Please advise.

Thank you,  John Mok

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Auto create folders

2015-01-23 Thread Andrew Morgan
On Fri, 23 Jan 2015, John Mok wrote:

 Hi,

 I have been using Cyrus IMAP 2.4.17 on Debian 7 with Kerberos / GSSAPI 
 authentication.

 I would like to auto-create one or more folders upon mailbox creation, 
 e.g. a spam folder to store potential spam mails for spamassassin 
 learning.

 On the other hand, how to prevent such folders from deletion by users?

 Thanks a lot.

How do you create mailboxes now?

We create mailboxes using a Perl script, and that script also creates a 
junk-mail folder with an annotation to delete messages older than 30 
days.

You can also alter the folder's permissions to prevent users from deleting 
them.

Does that help?

Andy

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Auto create folders

2015-01-22 Thread John Mok
Hi,

I have been using Cyrus IMAP 2.4.17 on Debian 7 with Kerberos / GSSAPI
authentication.

I would like to auto-create one or more folders upon mailbox creation,
e.g. a spam folder to store potential spam mails for spamassassin
learning.

On the other hand, how to prevent such folders from deletion by users?

Thanks a lot.

John Mok

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus