Re: [Courier-imap] shared folders - let users create folder

2008-04-04 Thread thoralf
hi Sam,

Sam Varshavchik wrote:
 Yes, with file-based permissions folders, you must always use the 
 maildirmake command to create any shared folders. You cannot create 
 filesystem permissions-based shared folders in any other way.
thank you for your answer.

so, file system-based folders are not an option ...

is there a way to set default permissions on virtually shared folders? 
i.e., is it possible to define a default acl for a shared folder that 
will be handed down to all user-created sub-folders underneath this 
shared folder?


if this is not the case, the only thing left i can image to accomplish 
the desired setup would be the following:
- create a specific account for each group that need their own shared 
folder, say shared-group1, shared-group2 etc.
- create a maildir for each of these accounts that will be a container 
holding all the shared dirs for the respective group
- set acl to anyone:aceilrstwx for these folders and finally
- revoke access rights for users not belonging to the group via the file 
system, ie. chown -R :group1 shared-group1/ and chmod -R 770 shared-group1/

now, that would be nasty, wouldn't it?

with kind regards,
thoralf.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] autmysqlrc - service feedback

2008-04-04 Thread Marco Kammerer
hello,

i have set up courier with a mysql virtual setup, and i want to force some 
users to use ssl for imap

I found a post where someone tried it the same way
http://www.webservertalk.com/archive375-2005-9-1185618.html

In this post Brian Candler - a real courier guru - gave a good answer, but 
for me the line in authmysqlrc with service is not working
Brian told me that this is an mysql issue, but I figured not out how to 
solve the problem .

Here is the complete file

#authmysqlrc BEGIN#
MYSQL_SERVER 127.0.0.1
MYSQL_USERNAME mailadmin
MYSQL_PASSWORD yomanyo
MYSQL_PORT 0
MYSQL_DATABASE mailserver
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD 5000
MYSQL_GID_FIELD 5000
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD /home/vmail
MYSQL_MAILDIR_FIELD
CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
MYSQL_WHERE_CLAUSE userdisabled='0'
MYSQL_QUOTA_FIELD quota
# AAA not working
#MYSQL_AUXOPTIONS_FIELD
CONCAT(disableimap=,IF($(service)='imaps',disableimaps,disableimap),,disablepop3=,disablepop3,,disablewebmail=,disablewebmail)
# AAB working
MYSQL_AUXOPTIONS_FIELD
CONCAT(disableimap=,disableimap,,disablepop3=,disablepop3,,disablewebmail=,disablewebmail)
#authmysqlrc END#

the thing is that mysql gets in the line AAA the - $(service) not as
variable (imap or imaps), because i see it in the mysql.log

39 Query
SELECT email, password, , 5000, 5000, /home/vmail,
CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'),
quota , ,
CONCAT(disableimap=,IF($(service)='imaps',disableimaps,disableimap),,disablepop3=,disablepop3,,disablewebmail=,disablewebmail)
FROM users WHERE email = [EMAIL PROTECTED] AND (userdisabled='0')

therefore the select AAA fails 

Marco 


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap