Re: [Dovecot] sieve fileinto public shared mbox?

2010-11-23 Thread RParr

On 11/16/2010 10:52 AM, Timo Sirainen wrote:

On Sat, 2010-11-13 at 11:27 -0800, RParr wrote:

   

I quess deliver still does not support include?
 

In v2.0 yes, in v1.x no.

   

Does deliver honor multiple -c options?
 

No.

   

Or does deliver's lack of include support mean I must put all dovecot
config in one file? (eg /etc/dovecot/dovecot.conf)
 

Yeah.

   

11/13/10 11:14:39 amn3dovecotdeliver(tarts): utime() failed
with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted
 

Fixed for v2.0: http://hg.dovecot.org/dovecot-2.0/rev/3daec8435d29
http://hg.dovecot.org/dovecot-2.0/rev/586d549732f5

You can do basically the same for v1.2 (or just ignore the errors -
everything works anyway).
   


I applied the change referenced above to 1.2.9 
src/lib-storage/index/mbox/mbox-file.c


I continued to get the errors.

I then expanded the error message output for all calls to utime() in all 
files in src/lib-storage/index/mbox

and found the errors were coming from mbox-save.d and mbox-sync.c

11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-save: utime() 
failed with mbox file /var/mail/public/test4: Operation not permitted
11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-sync: 2: 
utime() failed with mbox file /var/mail/public/test4: Operation not 
permitted
11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-save: utime() 
failed with mbox file /var/mail/public/test4: Operation not permitted
11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-sync: 2: 
utime() failed with mbox file /var/mail/public/test4: Operation not 
permitted
11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-save: utime() 
failed with mbox file /var/mail/public/test4: Operation not permitted
11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-sync: 2: 
utime() failed with mbox file /var/mail/public/test4: Operation not 
permitted
11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-save: utime() 
failed with mbox file /var/mail/public/test4: Operation not permitted
11/23/10 04:40:55 pmn3dovecotIMAP(tarts): mbox-sync: 2: 
utime() failed with mbox file /var/mail/public/test4: Operation not 
permitted


Note the errors are only occuring when copying/moving a message into a 
public box owned by someone else even though the box and both users are 
part of the same group.


I can modify the calls to utime() in mbox-save.c and mbox-sync.c to 
ignore the EPERM errors

but I first wanted to verify that was reasonable.

Please let me know if I should proceed with those changes or if there is 
a better solution.


Thanks for all you help

R.Parr, RHCE, Temporal Arts




Re: [Dovecot] sieve fileinto public shared mbox?

2010-11-13 Thread RParr

On 11/10/2010 05:33 PM, Timo Sirainen wrote:

On 5.11.2010, at 19.34, RParr wrote:

   

r...@n3:/etc/dovecot# dovecot -n
# 1.2.9: /etc/dovecot/dovecot.conf
 

..
   

11/05/10 12:23:16 pmn3postfix/localCADCC60482: 
to=ta...@n3.temporalarts.com, relay=local, delay=0.01, delays=0/0.01/0/0.01, dsn=2.0.0, 
status=sent (delivered to command: /usr/lib/dovecot/deliver -c 
/etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m ${EXTENSION})
 

Is the problem that you have a different config file for deliver (the -c 
parameter) where you don't have the same settings as the rest of Dovecot?

   


I missed that.

The Ubuntu dovecot-postfix package adds that line to /etc/postfix/main.cf.
It also adds /etc/dovecot/conf.d/01-dovecot-postfix.conf which gets 
included at the end of /etc/dovecot/dovecot.conf.


I tried changing the /etc/postfix/main.cf line for deliver to -c 
/etc/dovecot/dovecot.conf

but then deliver fails because postmaster_address setting not given.
postmaster_address is defined in conf.d/01-dovecot-postfix.conf

I quess deliver still does not support include?

Does deliver honor multiple -c options?

deliver -c /etc/dovecot/dovecot.conf -c 
/etc/dovecot/conf.d/01-dovecot-postfix.conf


Or does deliver's lack of include support mean I must put all dovecot 
config in one file? (eg /etc/dovecot/dovecot.conf)


After manually adding the contents of conf.d/01-dovecot-postfix.conf to 
the end of dovecot.conf
and changing the sieve filters to fileinto public/SPAM/SPAMMM the 
gtube mail is
delivered to the public folders BUT the log shows utime failures. And I 
get utime errors (see 2nd log entry below) when I move/copy into the 
public folders.


I thought I had the permissions set correctly (see previous email with 
gory permission detail)


-
11/13/10 11:14:32 amn3postfix/smtpdconnect from 
jaysmith.com[74.164.202.187]
11/13/10 11:14:32 amn3postfix/smtpdconnect from 
jaysmith.com[74.164.202.187]
11/13/10 11:14:33 amn3postfix/smtpd569D3600C0: 
client=jaysmith.com[74.164.202.187]
11/13/10 11:14:33 amn3postfix/cleanup569D3600C0: 
message-id=201011131914.oadjevyh028...@jaysmith.com
11/13/10 11:14:33 amn3postfix/qmgr569D3600C0: 
from=rp...@jaysmith.com, size=862, nrcpt=1 (queue active)
11/13/10 11:14:33 amn3postfix/smtpd569D3600C0: 
client=jaysmith.com[74.164.202.187]
11/13/10 11:14:33 amn3postfix/cleanup569D3600C0: 
message-id=201011131914.oadjevyh028...@jaysmith.com
11/13/10 11:14:33 amn3postfix/qmgr569D3600C0: 
from=rp...@jaysmith.com, size=862, nrcpt=1 (queue active)
11/13/10 11:14:33 amn3postfix/smtpddisconnect from 
jaysmith.com[74.164.202.187]
11/13/10 11:14:33 amn3postfix/smtpddisconnect from 
jaysmith.com[74.164.202.187]
11/13/10 11:14:39 amn3dovecotdeliver(tarts): utime() failed 
with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted
11/13/10 11:14:39 amn3dovecotdeliver(tarts): utimes() failed 
with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted
11/13/10 11:14:39 amn3amavis(02101-03) INFO: no existing 
header field 'Subject', inserting it
11/13/10 11:14:39 amn3postfix/smtpdconnect from 
localhost[127.0.0.1]
11/13/10 11:14:39 amn3postfix/smtpdC48C561CE5: 
client=localhost[127.0.0.1]
11/13/10 11:14:39 amn3postfix/cleanupC48C561CE5: 
message-id=201011131914.oadjevyh028...@jaysmith.com
11/13/10 11:14:39 amn3postfix/smtpddisconnect from 
localhost[127.0.0.1]
11/13/10 11:14:39 amn3postfix/qmgrC48C561CE5: 
from=rp...@jaysmith.com, size=1658, nrcpt=1 (queue active)
11/13/10 11:14:39 amn3amavis(02101-03) Passed SPAM, 
[74.164.202.187] [74.164.202.187] rp...@jaysmith.com - 
ta...@n3.temporalarts.com, quarantine: l/spam-lBjUDy0M-IWi.gz, 
Message-ID: 201011131914.oadjevyh028...@jaysmith.com, mail_id: 
lBjUDy0M-IWi, Hits: 1001.768, size: 862, queued_as: C48C561CE5, 6090 ms
11/13/10 11:14:39 amn3postfix/smtp569D3600C0: 
to=ta...@n3.temporalarts.com, relay=127.0.0.1[127.0.0.1]:10024, 
delay=6.8, delays=0.62/0.03/0.07/6, dsn=2.0.0, status=sent (250 2.0.0 
Ok, id=02101-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 
C48C561CE5)

11/13/10 11:14:39 amn3postfix/qmgr569D3600C0: removed
11/13/10 11:14:39 amn3dovecotdeliver(tarts): Loading modules 
from directory: /usr/lib/dovecot/modules/lda
11/13/10 11:14:39 amn3dovecotdeliver(tarts): Module loaded: 
/usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so
11/13/10 11:14:39 amn3dovecotdeliver(tarts): Namespace: 
type=private, prefix=, sep=/, inbox=yes, hidden=no, list=1, 
subscriptions=yes
11/13/10 11:14:39 amn3dovecotdeliver(tarts): mbox: 
data=/home/tarts/mail:INBOX=/var/mail/tarts
11/13/10 11:14:39 amn3dovecotdeliver(tarts): fs: 
root=/home/tarts/mail

Re: [Dovecot] sieve fileinto public shared mbox?

2010-11-10 Thread RParr

On 11/04/2010 06:51 PM, Timo Sirainen wrote:

On 5.11.2010, at 1.35, RParr wrote:

   

Could someone verify if 1) sieve can fileinto shared public mbox?
 

I don't see any reason why it wouldn't.

   

2) if it can, what I might be doing wrong?
 

Set mail_debug=yes and post logs. Also full dovecot -n output would be nice 
(and don't leave out the version number). I didn't see anything obviously wrong 
in your setup.
   


I have posted the dovecot -n output and log output with mail_debug=yes.

Are there additional log/config output needed to further discussion of 
this problem?


Thanks
R.Parr, RHCE, Temporal Arts



Re: [Dovecot] sieve fileinto public shared mbox?

2010-11-05 Thread RParr

On 11/04/2010 06:51 PM, Timo Sirainen wrote:

On 5.11.2010, at 1.35, RParr wrote:

   

Could someone verify if 1) sieve can fileinto shared public mbox?
 

I don't see any reason why it wouldn't.

   

2) if it can, what I might be doing wrong?
 

Set mail_debug=yes and post logs. Also full dovecot -n output would be nice 
(and don't leave out the version number). I didn't see anything obviously wrong 
in your setup.
   


r...@n3:/etc/dovecot# dovecot -n
# 1.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-25-generic x86_64 Ubuntu 10.04.1 LTS
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3 imaps pop3s managesieve
ssl_cert_file: /etc/ssl/certs/temporalarts.pem
ssl_key_file: /etc/ssl/private/temporalarts.key
ssl_cipher_list: 
ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM

login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_access_groups: tarts
mail_privileged_group: mail
mail_location: mbox:~/mail:INBOX=/var/mail/%u
mail_debug: yes
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
imap_client_workarounds(default): outlook-idle delay-newmail
imap_client_workarounds(imap): outlook-idle delay-newmail
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: public/
  location: mbox:/var/mail/public
  list: yes
lda:
  postmaster_address: postmaster
  mail_plugins: sieve
  quota_full_tempfail: yes
  deliver_log_format: msgid=%m: %$
  rejection_reason: Your message to %t was automatically rejected:%n%r
auth default:
  mechanisms: plain login
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/spool/postfix/private/dovecot-auth
  mode: 432
  user: postfix
  group: postfix
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve
  sieve_global_path: /etc/dovecot/sieve/default.sieve
  sieve_global_dir: /etc/dovecot/sieve

I send an email containing the Spamassassin test GTUBE message from a 
remote host and the logs look like this


11/05/10 12:23:12 pmn3postfix/smtpdconnect from 
jaysmith.com[74.164.202.187]
11/05/10 12:23:12 pmn3postfix/smtpdconnect from 
jaysmith.com[74.164.202.187]
11/05/10 12:23:13 pmn3postfix/smtpd461FB601A9: 
client=jaysmith.com[74.164.202.187]
11/05/10 12:23:13 pmn3postfix/cleanup461FB601A9: 
message-id=201011051923.oa5jnbq3025...@jaysmith.com
11/05/10 12:23:13 pmn3postfix/qmgr461FB601A9: 
from=rp...@jaysmith.com, size=875, nrcpt=1 (queue active)
11/05/10 12:23:13 pmn3postfix/smtpd461FB601A9: 
client=jaysmith.com[74.164.202.187]
11/05/10 12:23:13 pmn3postfix/cleanup461FB601A9: 
message-id=201011051923.oa5jnbq3025...@jaysmith.com
11/05/10 12:23:13 pmn3postfix/qmgr461FB601A9: 
from=rp...@jaysmith.com, size=875, nrcpt=1 (queue active)
11/05/10 12:23:13 pmn3postfix/smtpddisconnect from 
jaysmith.com[74.164.202.187]
11/05/10 12:23:13 pmn3postfix/smtpddisconnect from 
jaysmith.com[74.164.202.187]
11/05/10 12:23:16 pmn3dovecotdeliver(tarts): sieve: 
msgid=201011051923.oa5jnbq3025...@jaysmith.com: failed to store into 
mailbox 'public/SPAM/SPAMMM': Mailbox doesn't exist: public/SPAM/SPAMMM
11/05/10 12:23:16 pmn3dovecotdeliver(tarts): sieve: 
execution of script /home/tarts/.dovecot.sieve failed, but implicit keep 
was successful
11/05/10 12:23:16 pmn3postfix/smtpdconnect from 
localhost[127.0.0.1]
11/05/10 12:23:16 pmn3postfix/smtpdCADCC60482: 
client=localhost[127.0.0.1]
11/05/10 12:23:16 pmn3postfix/cleanupCADCC60482: 
message-id=201011051923.oa5jnbq3025...@jaysmith.com
11/05/10 12:23:16 pmn3postfix/smtpddisconnect from 
localhost[127.0.0.1]
11/05/10 12:23:16 pmn3postfix/qmgrCADCC60482: 
from=rp...@jaysmith.com, size=1723, nrcpt=1 (queue active)
11/05/10 12:23:16 pmn3amavis(24998-07) Passed SPAM, 
[74.164.202.187] [74.164.202.187] rp...@jaysmith.com - 
ta...@n3.temporalarts.com, quarantine: N/spam-NEY7tZkdXw4G.gz

[Dovecot] sieve fileinto public shared mbox?

2010-11-04 Thread RParr
Could someone verify if 1) sieve can fileinto shared public mbox? 2) if 
it can, what I might be doing wrong?


I am getting errors in the log when I try to have sieve fileinto a 
shared public mbox.


11/04/10 06:08:12 pmn3dovecotdeliver(tarts): sieve: 
msgid=201011050108.oa5187sm003...@jaysmith.com:
   failed to store into mailbox 'public/SPAM/SPAMMM': Mailbox doesn't 
exist: public/SPAM/SPAMMM
11/04/10 06:08:12 pmn3dovecotdeliver(tarts): sieve: 
execution of script /home/tarts/.dovecot.sieve failed,

  but implicit keep was successful


require include;
require fileinto;
require regex;
require relational;
require comparator-i;ascii-numeric;

if header :value ge :comparator i;ascii-numeric X-Spam-Score 12
{
  fileinto public/SPAM/SPAMMM;
  stop;
}
elsif header :value ge :comparator i;ascii-numeric X-Spam-Score 8
{
  fileinto SPAM/MySPAMM;
  stop;
}
elsif header :value ge :comparator i;ascii-numeric X-Spam-Score 4
{
  fileinto SPAM/MySPAM;
  stop;
}
---

sieve fileinto user tarts own directories SPAM/MySPAM works fine.

I have defined 2 namespace

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

namespace public {
   separator = /
   prefix = public/
   location = mbox:/var/mail/public
   subscriptions = no
}

and I have

mail_access_groups = tarts

The /var/mail/public/SPAM/... folders do exist and user tarts can 
move/copy mail into them just fine; they have permissions as follows:


public/SPAM:
total 28
drwxrws--- 3 mail tarts 4096 2010-11-04 18:11 ./
drwsrws--- 8 mail tarts 4096 2010-10-27 18:18 ../
drwxrws--- 5 testuser tarts 4096 2010-11-04 14:49 .imap/
-rw-rw 1 testuser tarts 2019 2010-11-04 14:58 SPAM
-rw-rw 1 tartstarts 2003 2010-11-04 14:58 SPAMM
-rw-rw 1 mail tarts 7175 2010-11-04 18:11 SPAMMM

public/SPAM/.imap:
total 20
drwxrws--- 5 testuser tarts 4096 2010-11-04 14:49 ./
drwxrws--- 3 mail tarts 4096 2010-11-04 18:11 ../
drwxrws--- 2 testuser tarts 4096 2010-11-04 14:49 SPAM/
drwxrws--- 2 tartstarts 4096 2010-11-04 14:49 SPAMM/
drwxrws--- 2 tartstarts 4096 2010-11-04 14:49 SPAMMM/

public/SPAM/.imap/SPAM:
total 28
drwxrws--- 2 testuser tarts  4096 2010-11-04 14:49 ./
drwxrws--- 5 testuser tarts  4096 2010-11-04 14:49 ../
-rw-rw 1 tartstarts 16384 2010-11-04 14:50 dovecot.index.cache
-rw-rw 1 testuser tarts   836 2010-11-04 14:58 dovecot.index.log

public/SPAM/.imap/SPAMM:
total 28
drwxrws--- 2 tartstarts  4096 2010-11-04 14:49 ./
drwxrws--- 5 testuser tarts  4096 2010-11-04 14:49 ../
-rw-rw 1 tartstarts 16384 2010-11-04 14:49 dovecot.index.cache
-rw-rw 1 tartstarts   748 2010-11-04 14:58 dovecot.index.log

public/SPAM/.imap/SPAMMM:
total 32
drwxrws--- 2 tartstarts  4096 2010-11-04 14:49 ./
drwxrws--- 5 testuser tarts  4096 2010-11-04 14:49 ../
-rw-rw 1 tartstarts 17408 2010-11-04 18:03 dovecot.index.cache
-rw-rw 1 tartstarts  1660 2010-11-04 18:11 dovecot.index.log




Re: [Dovecot] delivering mail to public mbox with permission 660?

2010-10-25 Thread RParr

On 10/25/2010 08:22 AM, Timo Sirainen wrote:

On Fri, 2010-10-22 at 17:14 -0700, RParr wrote:
   

My understanding, from the Dovecot wiki and other docs/postings is that
the folders should be 660 given the /var/mail permssions of rwxrwsrwt
and ~/mail permssions of rwxrws---

 

Yep. Looks like it's broken in v1.2 for mbox. It works in v2.0 though. I
could maybe write a patch for v1.2, but you'd need to compile Dovecot
anyway.

   

A patch would be much appreciated.
 

http://hg.dovecot.org/dovecot-1.2/rev/45769d0cc39c
   



Thanks.  Works like a charm.

I include the following for others who might want to apply this patch to 
their Ubuntu/Debian systems.



# likely already done but include for completeness
apt-get install build-essential devscripts

cd /d/linux/dovecot
# or where ever you stash such things

apt-get build-dep dovecot
# installed a bunch of dev libs/pkgs.

apt-get source dovecot

cd dovecot-1.2.9/

cp src/lib-storage/index/mbox/mbox-storage.c  
src/lib-storage/index/mbox/mbox.storage.c.orig


vi src/lib-storage/index/mbox/mbox-storage.c
# change mbox-storage.c per 
http://hg.dovecot.org/dovecot-1.2/rev/45769d0cc39c#l1.25


dch -v 1:1.2.9-1ubuntu6.1ta mbox: Creating new mailboxes should base 
permissions on mail root dir, not always use 0600
# this sets the version to 1:1.2.9-1ubuntu6.1ta and adds and entry in 
the changelog.

# did this so apt/synaptic would see our version as newer then existing.

debuild -us -uc
# can use dpkg-buildpackage command-line options
# -us -uc means do not sign source package or .changes file.

cd /d/linux/dovecot
# now contains a set of dovecot debs

I then moved the debs to our local repository, updated the repository 
index, and installed using synaptic.


OR

# assuming /d/linux/dovecot contains only the newly generated debs, 
install the packages using dpkg

dpkg -i *.deb



Re: [Dovecot] delivering mail to public mbox with permission 660?

2010-10-22 Thread RParr

On 10/21/2010 09:06 AM, Timo Sirainen wrote:

On Tue, 2010-10-19 at 14:30 -0700, RParr wrote:

   

I am running Ubuntu 10.04 packages postfix 2.7.0-1, dovecot-common,
dovecot-imapd, dovecot-pop3d, and dovecot-postfix (all version
1.2.9-1ubuntu6.1).
 

..
   

My understanding, from the Dovecot wiki and other docs/postings is that
the folders should be 660 given the /var/mail permssions of rwxrwsrwt
and ~/mail permssions of rwxrws---
 

Yep. Looks like it's broken in v1.2 for mbox. It works in v2.0 though. I
could maybe write a patch for v1.2, but you'd need to compile Dovecot
anyway.
   


A patch would be much appreciated.

I would prefer to apply the patch to a deb-src and build a deb for the 
1.2.+ so that I can keep my package management happy and stay compatible 
with the mail filtering packages (amavisd-new, spamassassin, clamav, ...).









[Dovecot] delivering mail to public mbox with permission 660?

2010-10-19 Thread RParr
I am migrating a couple old RH servers running sendmail and UW-IMAP to a 
new Ubuntu 10.04 servers running Postfix and Dovecot.


I have everything working reasonably well except that the permissions of 
newly created mbox mail folders is always 600.


I have reviewed the archives, google, and double checked everything is 
as suggested in the Dovecot Wiki / SharedMailboxes / Permissions.


I am running Ubuntu 10.04 packages postfix 2.7.0-1, dovecot-common, 
dovecot-imapd, dovecot-pop3d, and dovecot-postfix (all version 
1.2.9-1ubuntu6.1).


I plan to install amavisd-new, et.al. for spam filtering and anti-virus 
but have held off until I get Postfix and Dovecot working 100%.


I have configured Postfix and Dovecot to use mbox mailboxes.  I chose 
mbox becaus I have a LOT of shared mbox folders to migrate and decided 
it best to first migrate to Postfix/Dovecot mbox and later worry about 
migrating to maildir (as suggested on the Dovecot wiki mailbox format page).


I have configured private (also as default) and public namespaces with 
the public mailboxes stored in /var/mail/public. /var/mail/public has 
rwxrws--- and is group tarts (the shared company group for this server).


Initially I had procmail configured via the mailbox_command.  Initial 
test mail sent to user tarts triggered creation of /var/mail/tarts with 
660 permissions as expected.


I then changed the configuration to use deliver via the mailbox_command. 
 I did this because procmail appears to be unmaintained and to benefit 
from deliver's support for indexing at time of delivery and seive.


I then added user testuser with primary group testuser and supplemental 
group tarts.  I made sure testuser's home directory and mail sub dir had 
rwxrws--- permissions.


I sent test mail to user testuser and had both user tarts and user 
testuser create some subfolders in public (via Thunderbird accounts)


THE PROBLEM is that mbox folders that hold messages are created with 
permssion 600.


My understanding, from the Dovecot wiki and other docs/postings is that 
the folders should be 660 given the /var/mail permssions of rwxrwsrwt 
and ~/mail permssions of rwxrws---


MY QUESTION is how do I correct the configuration and/or directory 
permissions so that mbox folders and .imap indices (especially public/ 
ones) are created with 660 permissions thus allowing users who belong to 
a common group (eg tarts) to access the public mailboxes?


It appears all Dovecot configuration options to establish directory/box 
perms or mask, such as umask, have been deprectated and no longer work.


The primary option appears to be using the permissions yet that is not 
working for me here.


---
/home/:
drwxrws---  4 tarts tarts 4096 2010-10-19 13:59 tarts/

/home/tarts:
drwxrws--- 4 tarts tarts 4096 2010-10-19 13:50 mail/


---
/d/home/:
drwxrws---  4 testuser testuser 4096 2010-10-19 13:59 testuser/

/d/home/testuser:
drwxrws---  4 testuser testuser 4096 2010-10-19 13:59 mail/

/d/home/testuser/mail:
total 20
drwxrws--- 4 testuser testuser 4096 2010-10-19 13:59 ./
drwxrws--- 3 testuser testuser 4096 2010-10-19 13:44 ../
drwxrws--- 3 testuser testuser 4096 2010-10-19 13:45 .imap/
-rw-rw 1 testuser testuser   36 2010-10-19 13:59 .subscriptions
-rw--- 1 testuser testuser0 2010-10-19 13:50 Trash
drwxrws--- 2 testuser testuser 4096 2010-10-19 13:54 test1/
-rw--- 1 testuser testuser0 2010-10-19 13:54 test2

/d/home/testuser/mail/.imap:
total 12
drwxrws--- 3 testuser testuser 4096 2010-10-19 13:45 ./
drwxrws--- 4 testuser testuser 4096 2010-10-19 13:59 ../
drwx--S--- 2 testuser testuser 4096 2010-10-19 13:50 INBOX/

/d/home/testuser/mail/.imap/INBOX:
total 24
drwx--S--- 2 testuser testuser  4096 2010-10-19 13:50 ./
drwxrws--- 3 testuser testuser  4096 2010-10-19 13:45 ../
-rw--- 1 testuser testuser 16384 2010-10-19 14:00 dovecot.index.cache
-rw--- 1 testuser testuser   864 2010-10-19 14:00 dovecot.index.log

/d/home/testuser/mail/test1:
total 8
drwxrws--- 2 testuser testuser 4096 2010-10-19 13:54 ./
drwxrws--- 4 testuser testuser 4096 2010-10-19 13:59 ../
-rw--- 1 testuser testuser0 2010-10-19 13:54 sub1


---
/var:
drwsrwsrwt  3 root mail   4096 2010-10-18 10:23 mail/

/var/mail:
total 896
drwsrwsrwt  3 root mail4096 2010-10-19 13:51 ./
drwxr-xr-x 16 root root4096 2010-03-05 13:57 ../
-rw-rw  1 nobody   mail1386 2010-10-12 16:54 nobody
drwsrws---  5 root tarts   4096 2010-10-19 13:51 public/
-rw-rw  1 tartsmail  894107 2010-10-19 08:59 tarts
-rw---  1 testuser mail 632 2010-10-19 13:51 testuser

/var/mail/public:
total 24
drwsrws--- 5 root tarts 4096 2010-10-19 13:51 ./
drwsrwsrwt 3 root mail  4096 2010-10-19 13:51 ../
drwxrws--- 3 tartstarts 4096 2010-10-19 13:51 .imap/
drwxrws--- 3 tartstarts 4096 2010-10-16 15:02 test1/
drwxrws--- 2 tartstarts 4096 2010-10-16 15:01