On Fri, Mar 26, 1999 at 11:45:45AM -0500, [EMAIL PROTECTED] wrote:
> I have set up qmail here on a few of our servers (OSF1 and HP-UX),
> Everything is working fine, all mail from any of our servers goes
> to the mail server, local and remote deliveries work fine too.
> 
> The place I'm getting stuck though is trying to set up pop3 deliveries to our 
> corporate network users on NT stations. Of course, I don't want to set up and 
> maintain unix accounts for them on the unix mail server.
> 
> I retrieved a document by Paul Gregg at 
> http://www.tibus.net/pgregg/projects/qmail/single-uid-howto.txt, that explains a 
> way of achieving this.
> 
> I have a pretty good idea of how to set up things, but I'm missing a few blocks
> to understand the whole mechanism.
> 
> More precisely: Since I have only one domain to manage (we're not an ISP) and 
> our domain is already set, do I have to still set it in virtualdomains ?

No. Just make sure users/assign delivers everything to the right place, and
make sure your separate poppasswd file specifies the correct place to pick the
mail up. You don't need to have any virtual domains to make this work.

For a local domain, an entry like this is users/assign will handle delivery:

=joe:popuser:888:888:/var/qmail/popboxes/joe

and an entry like this will handle retrieval:

joe::DmIMm9e5Hc8ic:popuser:/var/qmail/popboxes/joe

This assumes that you've set things up just like in Paul's HOWTO. Just make
sure that you create a Maildir in /var/qmail/popboxes/joe for joe and make sure
it's owned by popuser. 

> What checkpasswd type program is the best to use? (I would like to have mail 
> users in a separate passwd file)

I don't know what's best to use, but I have a home-made one that uses a cdb
database for the separate password file, so it's speedy. It'll look in both
/etc/passwd and your separate password file for users, so you can use both
types of accounts. You can get it at
http://www.palomine.net/qmail/checkcdb.tar.gz. For other options, see the
checkpassword section of http://www.qmail.org.

>  From P.Gregg's document:
> 
> 
> [ Ok, so I've got that setup? Where's the password file?

It's wherever you put it. If you set things up as per Paul's HOWTO, it's
/var/qmail/users/poppasswd.

>     In my default the password file is /var/qmail/users/poppasswd
> 
>     Simply make file and add a line, e.g:
> 
>        testid:DmIMm9e5Hc8ic:popuser:/var/qmail/popboxes/domain-com/joe
> 
>     This means we've just added a POP3 user "testid" with a password of
> 
>     "testpw" (crypted), with the real (system) id of "popuser" and their
> 
>     (home) directory is "/var/qmail/popboxes/domain-com/joe" ]
> 
> 
> How can I manually edit such a file and type in an encrypted password in it ?
> Like if I create a user "Joe" and I want his password to be "testpwd" what
> should I do? create a unix user with that password then look at the unix
> passwd file for the encrypted version and copy it over the mail passwd file
> and then delete the unix user? I'm not sure it's going to work (I didn't try
> it).  But there must be a better way, than to repeat that operation for 200
> users.

My checkcdb package has a perl script that lets you change (or set in the first
place) the passwords in users/poppasswd. Even if you don't use my
checkpassword, you could still use this to set the passwords.

Chris

Reply via email to