1 |
Hi there, |
2 |
|
3 |
It's my understanding that shared folders can be implemented in the |
4 |
Dovecot IMAP server by simply symlinking one maildir to another, eg: |
5 |
|
6 |
$ ls -lan /home/DOMAIN/ned/.maildir/ |
7 |
total 40 |
8 |
drwx------ 9 10012 10000 440 Jan 9 04:23 . |
9 |
drwxr-xr-x 3 10012 10000 160 Jan 6 06:32 .. |
10 |
drwx------ 5 10012 10000 264 Jan 9 04:21 .Deleted Items |
11 |
drwx------ 5 10012 10000 232 Jan 6 06:32 .Drafts |
12 |
drwx------ 5 10012 10000 232 Jan 6 06:39 .Junk E-mail |
13 |
drwx------ 5 10012 10000 264 Jan 9 04:33 .Sent |
14 |
lrwxrwxrwx 1 10012 0 24 Jan 6 07:36 .Stroller -> /home/ |
15 |
stroller/.maildir/ |
16 |
drwx------ 2 10012 10000 336 Jan 9 04:23 cur |
17 |
-rw------- 1 10012 10000 268 Jan 9 04:23 dovecot-uidlist |
18 |
-rw------- 1 10012 10000 192 Jan 9 04:23 dovecot.index |
19 |
-rw------- 1 10012 10000 21504 Jan 9 04:23 dovecot.index.cache |
20 |
-rw------- 1 10012 10000 1908 Jan 9 04:23 dovecot.index.log |
21 |
drwx------ 2 10012 10000 48 Jan 9 04:23 new |
22 |
-rw------- 1 10012 10000 47 Jan 6 07:45 subscriptions |
23 |
drwx------ 2 10012 10000 48 Jan 9 04:23 tmp |
24 |
|
25 |
In the above configuration the user Ned has a mailbox "Stroller", in |
26 |
which he can read messages & stuff - I can log in as ned and drag & |
27 |
drop messages into this mailbox quite happily. |
28 |
|
29 |
I thought all was well with this type of shared configuration until I |
30 |
actually started to try setting it up for the info@×××××××××.com |
31 |
mailbox, and tried delivering messages to it. |
32 |
|
33 |
It seems that Postfix doesn't respect the permissions of the parent |
34 |
folder when delivering mail into it: |
35 |
|
36 |
# ls -ldn /home/info/.maildir/ |
37 |
drwxrwx--- 5 10021 10000 120 Jan 9 04:26 /home/info/.maildir/ |
38 |
# ls -ln /home/info/.maildir/ |
39 |
total 0 |
40 |
drwxrwx--- 2 10021 10000 48 Jan 9 04:26 cur |
41 |
drwxrwx--- 2 10021 10000 48 Jan 9 04:33 new |
42 |
drwxrwx--- 2 10021 10000 48 Jan 9 04:31 tmp |
43 |
# ls -ln /home/info/.maildir/new |
44 |
total 0 |
45 |
# cat HungUp.txt | sendmail info |
46 |
# sudo ls -l /home/info/.maildir/new |
47 |
total 4 |
48 |
# sudo ls -ln /home/info/.maildir/new |
49 |
total 4 |
50 |
-rw------- 1 10021 10000 1806 Jan 9 04:39 |
51 |
1136781544.V4804I3606cM633316.mail.domain.local |
52 |
|
53 |
How inconsiderate of Postfix to set secure permissions on the message |
54 |
it delivered!! I need the message to have 660 permissions so that |
55 |
others in the group can read it! At present this causes Squirrelmail |
56 |
to squeal & give nasty messages whenever a shared mailbox is accesses. |
57 |
|
58 |
Can anyone advise me how to resolve this, please? |
59 |
|
60 |
Stroller. |
61 |
|
62 |
|
63 |
PS: should you consider suggesting using Dovecot's "namespaces" type |
64 |
of shared mailbox, I'd be grateful if you could answer this first: |
65 |
http://dovecot.org/pipermail/dovecot/2005-December/010459.html |
66 |
|
67 |
|
68 |
-- |
69 |
gentoo-user@g.o mailing list |