<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 13 Dec 2005, at 11:52, Stroller wrote:</DIV><BLOCKQUOTE type="cite"><DIV><FONT class="Apple-style-span" color="#000000">...</FONT><BR></DIV><DIV>I'm feeling a bit stuck on this, so any suggestions gratefully received. I'm trying to set up a Linux-based IMAP server that will authenticate against users on a Windows 2003 SBS domain controller.</DIV><DIV>...<BR></DIV><DIV>I have set the /etc/pam.d/imap very simply, similar to that discussed at <<A href="http://www.flatmtn.com/computer/Linux-Samba.html#Samba-2">http://www.flatmtn.com/computer/Linux-Samba.html#Samba-2</A>>:</DIV><DIV><BR></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN>#%PAM-1.0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN>auth       required     /lib/security/pam_winbind.so</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>account    required     /lib/security/pam_winbind.so</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>session    required     /lib/security/pam_mkhomedir.so skel=/etc/skel umask=0022 debug</DIV><DIV><BR></DIV><DIV>And I'm a bit unclear as to why similar configurations seem to be working for everyone else & not me...</DIV><DIV><BR></DIV><DIV>Courier-IMAP...</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><BLOCKQUOTE type="cite"></BLOCKQUOTE></DIV>For the benefit of Google this is resolved now, my solution being to use the Dovecot IMAP server (versions later than alpha 1.0) with a section in the .conf file thus:<DIV><BR><DIV>  passdb pam { </DIV><DIV>  args = "-session *"</DIV><DIV>  } </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It seems that Courier doesn't do PAM sessions, which is why pam_mkhomedir.so wasn't being called. My understanding is that Dovecot doesn't really use sessions ether, but for the benefit of PAM modules like pam_mkhomedir.so the configuration option above causes it to open and close a session upon successful auth.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Stroller.</DIV></DIV></BODY></HTML>