passdb-vpopmail.c revision a0772d725fef3cdb013a50cc1f79e46730bf11f7
/* Copyright (C) 2002-2003 Timo Sirainen */
/* Thanks to Courier-IMAP for showing how the vpopmail API should be used */
#include "config.h"
#ifdef PASSDB_VPOPMAIL
#include "common.h"
#include "safe-memset.h"
#include "passdb.h"
#include "mycrypt.h"
#include "userdb-vpopmail.h"
#include <stdlib.h>
static void
{
int result;
return;
}
if (verbose) {
i_info("vpopmail(%s): %s disabled",
}
return;
}
/* verify password */
if (!result) {
if (verbose) {
i_info("vpopmail(%s): password mismatch",
}
return;
}
/* use putenv() directly rather than env_put() which
would leak memory every time we got here. use a
static buffer for putenv() as SUSv2 requirements
would otherwise corrupt our environment later. */
static char ip_env[256];
"TCPREMOTEIP=%s", host);
}
}
#endif
}
static void vpopmail_deinit(void)
{
vclose();
}
struct passdb_module passdb_vpopmail = {
NULL,
};
#endif