Andreas Aardal Hanssen ([EMAIL PROTECTED]) wrote:
> Yes, you're right. There's something bugging the stub (yes, by that I mean
> the checkpassword replacement, or auth_pop).
> 
> >In a desperate attempt I tried running bincimapd as root:
> >Security {
> >    jail path = "/usr/local/bin/",
> >    jail user = "root",
> >    jail group = "wheel"
> >}
> This doesn't really run Binc as root; the bincimap-up program already
> should run as root. The jail is entered after checkpassword has been
> called and authentication succeeded.
- So that bincimapd is run as jail user and jail group right?
 
> So your mail is located in /data/maildirs, okay. Could you show the full
> path (including new/, tmp/ and cur/) of one user's account?
- Sure ls -lR /var/maildirs/user
  drwx------  5 vmailer  vmailer  512 Nov 25 18:28 INBOX
  drwx------  2 vmailer  vmailer  512 Nov 25 04:23 cur
  -rw-------  1 vmailer  vmailer   29 Nov 25 15:28 maildirsize
  drwx------  2 vmailer  vmailer  512 Nov 25 15:28 new
  drwx------  2 vmailer  vmailer  512 Nov 25 15:28 tmp

  user/INBOX:
  drwx------  2 vmailer  vmailer  512 Nov 25 18:28 cur
  drwx------  2 vmailer  vmailer  512 Nov 25 18:28 new
  drwx------  2 vmailer  vmailer  512 Nov 25 18:28 tmp

its a bit messy since I implementet bincimap later. I hope the problem
is not here :)

> The checkpassword program needs to change to the directory directly
> beneith Maildir/ (or the value of "path" in bincimap.conf). It then
> changes to "path" and starts processing commands.
- I tried to set the path to:
  ""
  "INBOX"
  "Maildir" 

> I would check the full strace for "chdir" commands (please bzip2 -9 the
> output and post to the list if its not too large).
- Not a lot of thouse chdir's Ill attach that file.

--
Morten Grunnet Buhl

Attachment: strace_bincimap-up.bz2
Description: Binary data

Reply via email to