--Mark Janssen wrote on 30.01.2002 12:43 +0100:

> 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/f
> alse|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 :)

Just one more step...

3) add somedomain, othervirtualdomain and virtualdomain
into etc/esmptpacceptmailfor.dir and etc/hosteddomains
(and _nowhere_ else!), then cd to sbin and run both:

./makeacceptmailfor
./makehosteddomains

Its a good idea to put all those make*-scripts into one
shell-script. You could even run a script from cron which
updates the db's if any timestamp changes.

Roland


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

Reply via email to