Hi there,
we are moving from vmailmgr to vpopmail.
Until now our customers have pop-logins like :
sgalaxy-john
In vpopmail it would be :
[EMAIL PROTECTED]
To make vchkpw accept both logins, i've patched it :)
Just copy the attached vchkpw3.c to vchkpw.c, add the contents of your "old"
/var/qmail/control/virtualdomains to the vmailmgrdom-array, e.g.
char *vmailmgrdom[] = {
"mydomain.org:mydom",
"space-galaxy.net:sgalaxy",
'\0'
};
Then configure vpopmail as you need. Open the Makefile and append
-DVMAILMGR to CFLAGS :
CFLAGS = -O2 -Wall -DVMAILMGR
Now compile vpopmail and people can login with the old vmailmgr-style AND with the
great
vpopmail-style.
Warning : The code works here, but there may be some bugs in it.
Remmeber : I'm not realy a C-Guru ;-)
If you don't add -DVMAILMGR to CFLAGS, vchkpw is compiled without vmailmgr support.
I hope this will help someone out there and maybe the changes can be included in a new
vpopmail-version ?! :-)
Contact me for further questions.
vchkpw3.c