Marek Les wrote:
> 
> Hello..
> 
> We've been using virtual users with qmail before but now I want to
> move our system to vpopmail. Everything's fine but I have one
> problem. Up to now, people were logging into the POP3 account as
> 'domain-com-user' instead of '[EMAIL PROTECTED]'. Now, for historical
> reasons, I would be *very* glad to support these "old" users. What
> should (or can) I do?
> 
> Thanks a lot !
> 
>      Marek "MaX" Le�
> 

In vchkpw.c

struct passwd *checkpopusers(char *login, char *passwd, char *apop)
{
    static struct passwd *popacct = NULL;
#ifdef IP_ALIAS_DOMAINS
    int hacked;
#endif


    parse_email(login, GLuser, GLhost, 100);

write a new vmailmgr_parse_email routine. 

In the current version it takes a login of the form userXdomain
where X can be % @ / characters. And then it fills out GLuser
and GLhost with the user and domain.

Instead make a routine that takes "domain-com-user" and parses
out 'domain-com" to GLhost and the "user" into Gluser.

Ken Jones

Reply via email to