- 论坛徽章:
- 0
|
使用postfix+webmail+webman+amavis+spam+cyrus-sasl+maildrop+courier-authlib+clamav+courier-imap+apache源码编译安装.
vi /usr/local/mail/courier-authlib/etc/authlib/authdaemonrc
authmodulelist="authmysql"
authmodulelistorig="authmysql"
daemons=10
vi /usr/local/mail/courier-authlib/etc/authlib/authmysqlrc
MYSQL_SERVER localhost
MYSQL_USERNAME extmail
MYSQL_PASSWORD extmail
MYSQL_DATABASE extmail
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_USER_TABLE mailbox
MYSQL_CLEAR_PWFIELD password
DEFAULT_DOMAIN test.com
MYSQL_UID_FIELD '1001'
MYSQL_GID_FIELD '1001'
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD concat('/var/mailbox/',maildir)
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD concat('/var/mailbox/',maildir)
smtpd.conf内容如下:
vi /usr/local/mail/cyrus-sasl/lib/sasl2/smtpd.conf
pwcheck_method:authdaemonds
mech_list LAIN LOGIN
log_level:3
authdaemond_path:/usr/local/mail/courier-authlib/var/spool/authdaemon/socket
执行maildrop -v命令后出现以下信息,证明maildrop成功.
maildrop -v
maildrop 2.1.0 Copyright 1998-2005 Double Precision, Inc.
GDBM/DB extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.
执行以下命令进行认证测试
mail mail # /usr/local/mail/courier-authlib/sbin/authtest -s login jason@test.com 123456
Authentication FAILED: Input/output error
mail mail #
如上报错信息.
var/log/messages 信息如下:
mail ~ # tail -F /var/log/messages
Sep 4 06:45:56 mail authdaemond: received auth request, service=login, authtype=login
Sep 4 06:45:56 mail authdaemond: authmysql: trying this module
Sep 4 06:45:56 mail authdaemond: authmysql: mysql_select_db(extmail.) error: Incorrect database name 'extmail.'
Sep 4 06:45:56 mail authdaemond: authmysql: TEMPFAIL - no more modules will be tried
红色字体是什么原因呢?查看过配置文件与msyql数据库信息.没有发现database name 'extmail.'mysql中的是extmail.这个database name 'extmail.'是那来的呢?
[ 本帖最后由 bobobian 于 2009-9-3 22:50 编辑 ] |
|