I want to trap known spam messages addressed to "info@mydomain" and
"spam@mydomain". I created two maildirs for those addresses, then I set
up dot-courier(5) files like this:
$ cat /etc/courier/aliasdir/.courier-info
/var/lib/courier/maildirs/.info
I want to be able to look into those folders from my normal account, so
I tried to set them up as shared maildirs: I followed the instructions
in maildirmake(1), then I changed the permissions to user "flavio" and
group "daemon" to allow Courier to write to them. Here it is:
$ ls -lA /var/lib/courier/maildirs/
total 20
drwx------ 2 daemon daemon 4096 2005-06-19 11:18 cur
drwxrwx--- 5 flavio daemon 4096 2005-06-19 11:18 .info
drwx------ 2 daemon daemon 4096 2005-06-19 11:18 new
drwxrwx--- 5 flavio daemon 4096 2005-06-19 11:18 .spam
drwx------ 2 daemon daemon 4096 2005-06-19 11:18 tmp
$ ls -lA /var/lib/courier/maildirs/.info/
total 12
drwxrwx--- 2 flavio daemon 4096 2005-06-24 11:05 cur
-rw-rw---- 1 flavio daemon 0 2005-06-19 11:18 maildirfolder
drwxrwx--- 2 flavio daemon 4096 2005-06-24 11:05 new
drwxrwx--- 2 flavio daemon 4096 2005-06-24 00:39 tmp
$ ls -lA /var/lib/courier/maildirs/.info/cur/
total 32
-rw-rw---- 1 flavio daemon 1268 2005-06-19 19:36 1119202571.x,S=1268:2,
-rw------- 1 daemon daemon 1330 2005-06-20 13:43 1119267781.x,S=1330:2,
-rw------- 1 daemon daemon 2216 2005-06-20 23:37 1119303459.x,S=2216:2,
-rw------- 1 daemon daemon 1185 2005-06-21 01:01 1119308501.x,S=1185:2,
-rw------- 1 daemon daemon 3289 2005-06-22 04:29 1119407359.x,S=3289:2,
-rw------- 1 daemon daemon 1655 2005-06-22 08:54 1119423243.x,S=1655:2,
-rw------- 1 daemon daemon 5888 2005-06-24 00:39 1119566346.x,S=5888:2,
As you can see, messages are deposited with permissions that don't allow
me to read them. I changed the permissions of the first message and I
can now read it, but later messages are unreadable.
The question is, what am I doing wrong?