Courier MySQL authentication module

This module allows authentication information to be stored in a MySQL database.

When authmysql is installed, a default configuration file, authmysqlrc will be installed too. You must edit this file to set up your MySQL authentication.

NOTE: this authentication module should NOT be used if you are using the vpopmail virtual mailing list manager. You should select the authvchkpw authentication module instead (which should happen automatically). It may be necessary to use the --without-authmysql flag to the configure script, because configure by default will include authmysql if it finds MySQL client libraries..


Edit authmysqlrc, and initialize the following variables:

The table specified by MYSQL_USER_TABLE should look as follows (recommended):

CREATE TABLE passwd (
        id                    char(128) DEFAULT '' NOT NULL,
        crypt                 char(128) DEFAULT '' NOT NULL,
        clear                 char(128) DEFAULT '' NOT NULL,
        name                  char(128) DEFAULT '' NOT NULL,
        uid                   int(10) unsigned DEFAULT '65534' NOT NULL,
        gid                   int(10) unsigned DEFAULT '65534' NOT NULL,
        home                  char(255) DEFAULT '' NOT NULL,
        maildir               char(255) DEFAULT '' NOT NULL,
        quota                 char(255) DEFAULT '' NOT NULL,
        KEY id (id(128))
);