userdb-vpopmail.c revision 3b94ff5951db4d4eddb7a80ed4e3f61207202635
/* Copyright (C) 2002-2003 Timo Sirainen */
/* Thanks to Courier-IMAP for showing how the vpopmail API should be used */
#include "config.h"
#if defined(PASSDB_VPOPMAIL) || defined(USERDB_VPOPMAIL)
#include "common.h"
#include "userdb.h"
#include "userdb-vpopmail.h"
char vpop_user[VPOPMAIL_LIMIT],
char vpop_domain[VPOPMAIL_LIMIT])
{
/* vpop_user must be zero-filled or parse_email() leaves an
extra character after the user name. we'll fill vpop_domain
as well just to be sure... */
VPOPMAIL_LIMIT-1) < 0) {
if (verbose) {
i_info("vpopmail(%s): parse_email() failed",
user);
}
return NULL;
}
if (verbose) {
i_info("vpopmail(%s): unknown user (%s@%s)",
}
return NULL;
}
return vpw;
}
#ifdef USERDB_VPOPMAIL
{
return;
}
struct vqpasswd isn't really gid at all but just some flags... */
if (verbose) {
i_info("vpopmail(%s): vget_assign(%s) failed",
}
return;
}
/* user's homedir doesn't exist yet, create it */
if (verbose) {
i_info("vpopmail(%s): pw_dir isn't set, creating",
auth_request->user);
}
i_error("vpopmail(%s): make_user_dir(%s, %s) failed",
return;
}
/* get the user again so pw_dir is visible */
return;
}
}
}
struct userdb_module userdb_vpopmail = {
};
#endif
#endif