Although this approach works with Maildir and Maildir++ depots, it probably does not work as well as for IMAPdir depots."Henry" == Henry Baragar <[EMAIL PROTECTED]> writes:
>> >> qmail-ldap probably thinks bincimapd is the Maildir argument. >>
Henry> Yes, I see that too. It appears that auth_pop might be a Henry> "trickier" than I originally thought.
Henry> Hasse:
Henry> Could you please recompile auth_pop with AUTOMAILDIRMAKE Henry> unset and rerun the test?
Here it is new strace and log. It actually did the trick. I uncommented autohomedirmake & automaildirmake and recompiled auth_pop. Then it worked with Maildir path = Maildir in bincimapd.conf, and without authwrapper & Maildir argument behind bincimapd in the run file. But I like automaildirmake & autohomedirmake, so I stick to how I got that working as for now.
Mind you ldap-qmail itself would have to be modified to work properly with maildir make. This suggests that auth_pop should probably not be used with AUTOMAILDIRMAKE and a wrapper function should be used instead. That is, the command line should look something like:
....
auth_pop \
automkMaildir \
bincimapd Maildir
where automkMaildir looks something like:
#! /usr/bin/perl
$Maildir = $ARGV[-1];
die "'$Maildir' not a directory\n"
if -e $Maildir and ! -d $Maildir;
system("/usr/local/bin/maildirmake $Maildir")
unless -d $Maildir;
exec @ARGV;
Now automkMaildir can easily be replaced by automkMbox or automkIMAPdir (whose implementations are left as exercises to the reader). Note that I am not sure how to insert automkMaildir into the qmail-ldap local delivery process in the case that mail is sent to the user before that user does an IMAP for the first time.
Regards, Henry
/Hasse
-- Henry Baragar Principal, Technical Architecture 416-453-5626 Instantiated Software Inc. http://www.instantiated.ca
