Stephen Touset wrote:
I'm trying to set up a new email server for my company. We've got significant LDAP infrastructure that we wish to use for this purpose, but I'm having a few problems with the implementation.
First of which, users' home directories cannot be relied upon to exist. I hoped to solve this problem by using pam_mkhomedir.so as a session module for Courier, but it seems to be disregarding it. My intent was to have the user's home directory created for them when they log in over POP3 or IMAP.
Another problems stems from the fact that Postfix drops mail in /var/spool/mail by default, and Courier expects them in the home directory. I'd have no qualms with reconfiguring Postfix to drop mail in the user's home directory in Maildir format, except once again I run into the problem that users' home directories cannot be relied upon to already exist.
My preferred solution would be to have Postfix drop new mails into /var/spool/mail, as usual. Upon login, Courier creates the user's home directory if need be. From there, it would feed out the user's emails much like uw-imapd does: show messages from the mail directory in the user's home directory, and if there are mails in the spool copy them into the home directory mailbox as well.
I'd accept using uw-imapd, except that it doesn't seem to respect PAM's
session component either (with regard to creating the home directory via
pam_mkhomedir.so), although I've determined that it does follow PAM auth
and PAM account chains.
I'm using postfix, spamassassin and cyrus-imap. I'm not using LDAP, but cyrus-imap does support it.
You do need to create users mailboixes, but they're stored in the cyrus disk area, not in /var/mail or in ~user. When I chose, I chose to no use uw-imapd because too many people cast nasturtiums on it, whereas I'd heard good things about cyrus-imapd.
Google for
"how to" cyrus-imapd postfix spamassassin
and you should turn up some helpful info. Joe Barr has an article about it, (don't recall where) and O'Reilly has part of its Imap book online at oreilly.de and it covers cyrus-imap. In English:-)
If you're set on Courier, try googling.
--
Cheers John
-- spambait [EMAIL PROTECTED] [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]