On Tuesday 14 January 2003 01:51 pm, dkwok wrote:
> I am sorry the question may be off topic.
>
> I am running vpopmail and courier-imap, roaming with vpopmail works fine
> but for user using imap roaming does not work. I have searched any
> relevant info on this topic but it is rather scare. Would anyone point
> me to the right direction?
>
> Many thanks in advance.
>
> David Kwok

Here is a slice of code i put in authlib/preauthvchkpw.c

It handles both courier imap and courier pop3 users.
vpopmail has to be installed with roaming users first.

Not sure if this is in the lastest courier releases

Ken Jones

preauthvchkpw.c: 

        if ( strcmp("webmail", (char *)service) == 0 &&
             vpw->pw_gid & NO_WEBMAIL ) {
                return(-1);

        } else if ( strcmp("pop3", (char *)service) == 0 ) {
                if ( vpw->pw_gid & NO_POP ) {
                        return(-1);
                } else {
#ifdef POP_AUTH_OPEN_RELAY
                        /* open the relay to pop users */
                        open_smtp_relay();
#endif
                }
        } else if ( strcmp("imap", (char *)service) == 0 ) {
                if ( vpw->pw_gid & NO_IMAP ) {
                        return(-1);
                } else {
#ifdef POP_AUTH_OPEN_RELAY
                        /* open the relay to imap users */
                        open_smtp_relay();
#endif
                }
        }


Reply via email to