Поднял exim + mysql
дамп таблици с юзерами
REATE TABLE `users` (
`id` varchar(64) NOT NULL default '',
`passwd` varchar(64) NOT NULL default '',
`uid` int(10) unsigned default '800',
`gid` int(10) unsigned default '100',
`mbox_host` varchar(128) NOT NULL default 'xxx.xx',
`shell` varchar(32) character set latin1 collate latin1_bin default '/sbin/nologin',
`home` varchar(128) character set latin1 collate latin1_bin default '',
`quota` tinyint(4) default '15',
`active` enum('Y','N') default 'Y',
`start_date` date NOT NULL default '0000-00-00',
`expire_date` date NOT NULL default '2030-00-00',
PRIMARY KEY (`id`,`mbox_host`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `users` (`id`, `passwd`, `uid`, `gid`, `mbox_host`, `shell`, `home`, `quota`, `active`, `start_date`, `expire_date`) VALUES ('baldden', '123', 93, 12, 'user.dtv.kz', '/sbin/nologin', '/var/spool/mail/user.dtv.kz/baldden', 15, 'Y', '0000-00-00', '2030-00-00');
Как теперь связать эту таблицу с Courier-IMAP , что писать в конфиге у меня
/usr/lib/courier-imap/etc/authmysqlrc
MYSQL_SERVER 192.168.231.11
MYSQL_USERNAME root
MYSQL_PASSWORD xxxx
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_DATABASE exim
MYSQL_USER_TABLE users
MYSQL_CLEAR_PWFIELD passwd
MYSQL_UID_FIELD '93'
MYSQL_GID_FIELD '12'
MYSQL_LOGIN_FIELD id
#MYSQL_HOME_FIELD '/'
#MYSQL_NAME_FIELD id
MYSQL_MAILDIR_FIELD home
в логах пишет maillog
May 26 17:05:13 collector pop3d: Connection, ip=[::ffff:127.0.0.1]
May 26 17:05:32 collector authdaemond: received auth request, service=pop3, authtype=login
May 26 17:05:32 collector authdaemond: authmysql: trying this module
May 26 17:05:32 collector authdaemond: SQL query: SELECT id, "", passwd, '93', '12', home, home, "", "", "" FROM users WHERE id = "baldden@user.dtv.kz"
May 26 17:05:32 collector authdaemond: zero rows returned
May 26 17:05:32 collector authdaemond: no password available to compare
May 26 17:05:32 collector authdaemond: authmysql: REJECT - try next module
May 26 17:05:32 collector authdaemond: FAIL, all modules rejected
May 26 17:05:32 collector pop3d: LOGIN FAILED, user=baldden@user.dtv.kz, ip=[::ffff:127.0.0.1]
May 26 17:25:31 collector pop3d: LOGOUT, ip=[::ffff:127.0.0.1]
May 26 17:25:31 collector pop3d: Disconnected, ip=[::ffff:127.0.0.1]
посоветуйте, что написать в конфиге Courier-IMAP