"Mark van der Putten" <[EMAIL PROTECTED]> writes:

courier-imap isn't calling vget_real_domain function.  Compare vchkpw
source and courier-imap source and you'll see a difference.  I told Ken
Jones about this few months ago, but nothing has happened neither in
courier-imap nor vpopmail.  Quick and untested patch below.

--- preauthvchkpw.c.orig        Thu Mar 22 19:41:24 2001
+++ preauthvchkpw.c     Thu Mar 22 19:43:31 2001
@@ -20,6 +20,9 @@
 #include       <vauth.h>
 #include       "vpopmail_config.h"
 
+#define GL_SIZE 100
+char GLhost[GL_SIZE];
+
 extern char *authvchkpw_isvirtual(char *);
 
 extern FILE *authvchkpw_file(const char *, const char *);
@@ -62,9 +65,12 @@
                s = DEFAULT_DOMAIN;
                notfound=EPERM;
        }
+
+       GLhost = strcpy(GLhost, s);
        
+       if (vget_real_domain(GLhost, GL_SIZE)) return(-1);
 
-       vget_assign(s,NULL,0,&uid, &gid);
+       vget_assign(GLhost,NULL,0,&uid, &gid);
        pw=vauth_getpw(usercopy, s);
        free(usercopy);
        vclose();


> I've got a little prob.
> I'm using FreeBSD 4.2 with Q-mail 1.03, vpopmail-4.9.8-1, courier-imap-1.3.5, 
>sqwebmail-1.2.4.20010202
> 
> Everything is working (well not everything, that's why I wrote this mail).
> This is working
> 1 - sqwebmail gets mail from real users and from users on the virtual domain. :)
> 2 - mail is delivered to real users and to users on the virtual domain :)
> 3 - Courier-IMAP gets mail (IMAP and POP3) from real users :)

-- 
Ondřej Surý <[EMAIL PROTECTED]>         Globe Internet s.r.o. http://globe.cz/
Tel: +420235365000   Fax: +420235365009         Pláničkova 1, 162 00 Praha 6
Mob: +420605204544   ICQ: 24944126             Mapa: http://globe.namape.cz/
GPG fingerprint:          CC91 8F02 8CDE 911A 933F  AE52 F4E6 6A7C C20D F273

Reply via email to