Re: [vchkpw] Auth mod

2003-07-14 Thread Tom Collins
On Monday, July 14, 2003, at 01:09  PM, Kevin Beyers wrote:
1.  Users login as User,  not [EMAIL PROTECTED]
2.  Several   users login as numbers like  23433   = 
[EMAIL PROTECTED]
3.  Several users logins are very long like john_smith_foobar_com  
 = [EMAIL PROTECTED]
Take a look at vchkpw.  That's the portion of vpopmail that 
authenticates a user, and (I think) returns the path to the maildir.

It might be possible to add an extra table to the database of special 
username to full email lookups (like 23433 -> [EMAIL PROTECTED] and 
john_smith_foobar_com -> [EMAIL PROTECTED]).  You could modify 
vchkpw to check that database and then use the actual email address for 
subsequent lookups.

If you use SquirrelMail or SqWebMail, it might not work (since the web 
mail program would have the wrong email address).

You might even be able to do something wacky like store the special 
username in the GECOS ("Real Name" field in QmailAdmin) field of the 
user record.  That would allow for easy management via qmailadmin.

Users would also be able to switch over to the "proper" 
username/password for their address, allowing you to support the old 
and new login methods.

Another method, that would be a real pain, would be to create a default 
domain with all of the special usernames, then create all of the "real" 
domains and make aliases to the special accounts.  E.g., 
[EMAIL PROTECTED] becomes a forward to 
[EMAIL PROTECTED]

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] Auth mod

2003-07-14 Thread Kevin Beyers
Hello, I am in the process of converting an old post.office mail server to 
qmail/vpopmail/courier/qmailadmin/vqmailadmin server.  I came up with a problem that I 
home some one can help me with

After looking at post.office account list I found the following problems

1.  Users login as User,  not [EMAIL PROTECTED]
2.  Several   users login as numbers like  23433   = [EMAIL PROTECTED]
3.  Several users logins are very long like john_smith_foobar_com   = [EMAIL 
PROTECTED]



What I want to do is set vpopmail to use a mysql server and conform to mysql auth 
specification.  I am willing to use a secondary mod to solve this problem but need 
suggections on what ones and how.   

If I only had problem 1.  I would change the path to /etc/passwd  in the code to run a 
standalone passwd list but /etc/passwd doesn't like problem 2 and 3.