On Sun, Nov 17, 2002 at 12:42:46PM +0200, Tzafrir Cohen wrote:
> Anyway, pam allows you to do quite a few things. There is a pam module
> called pam_mkhomedir . I never used it, But according to the pam
> documentation it seems to be just what you need (pam.txt or pam.html in
> the pam docs)

That seems to be the quick and easy solution for you. You might try to
avoid creating real user accounts for those users by using Courier IMAP
server with the LDAP authentication module, but it might prove more of
a hassle than it's worth (I remember having some difficulties with
Courier IMAP and non-standard authentication methods, but it might've
been bad luck).

If you'll use Maildir (which you should, especially if your users send
around large files), you'd need to make sure the user's Maildir
actually exists when the first email arrives (rather than waiting till
he logs in for the first time).

If the user's maildir isn't in his home directory, then you might avoid
the pam_mkhomedir thing altogether -- your users would do fine without
a home directory. You'll still need to run 'maildirmake' if the user's
Maildir doesn't exist, and you'll need to configure the mail server to
do that.

For example, if using Exim (my favorite SMTP server), you'll be piping
all your users' mails to 'maildrop -d' anyway, so make it pipe to a
script instead, which'll first check for the maildir's existance
and create it if it doesn't exist.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to