On Wed, Jan 30, 2002 at 08:24:16AM -0300, Leonardo Cabral wrote:
>     Hi all, I'm new here and I've just compiled Courier 0.37.2 . I red all
> the documentation but, as a newbie, I'm still having some problems. I wander
> if someone can give some pointers to create virtual mailboxes, I mean real
> mailboxes for users that don't have an account on the system. I'm going to
> host two domains and I don't want to create users with local accounts for
> security reasons.
> In short, I'd be very thankfull if someone give some pointers to:
>     1. Where to look to create the mailboxes
>     2. How to authenticate those users (I was thinking in using the
> authuserdb module) and how to create their accounts
>     3. Wich is the difference in webadmin between "Local domains" and
> "Locally-hosted domains"

It's quite easy... here's what I did.

Create a courier/etc/userdb directory
Create a password file in there per domain:

courier/etc/userdb/somedomain
courier/etc/userdb/othervirtualdomain
courier/etc/userdb/virtualdomain
etc

Put entries in those passwordfiles like the following
USERNAME@DOMAINNAME <tab> 
home=/var/mail/mailuser|mail=/var/mail/mailuser/DOMAIN/USERNAME/|shell=/bin/false|gid=50|uid=500|systempw=$1$xxxxx

Create a mailuser user and group in the systems /etc/passwd and
/etc/group (in my case 500:50)

Have courier configured to have user 'mailuser' be the cacheowner.

Then run a 'maildirmake' /var/mail/mailuser/DOMAIN/USERNAME for each
account and chown these to mailuser:mailuser

Give the accounts passwords, either manually with mkuserdbpw or using
the userdb tools.

run makeuserdb to update the DB file

You're go :)


Mark Janssen     Unix / Linux, Open-Source and Internet Consultant @ SyConOS IT
E-mail: mark(at)markjanssen.nl / maniac(at)maniac.nl     GnuPG Key Id: 357D2178
Web: Maniac.nl Unix-God.[Net|Org] MarkJanssen.[com|net|org|nl] SyConOS.[com|nl]

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to