#cd courier-authlib-0.58
#./configure --prefix=/sur/local/courier-authlib\
--without-authldap\
--without-authpdw --without-authshadow --without-authvchkpw\
--without-authpgsql --without-authcustom --with-authmysql\
--with-mysql-libs=/usr/local/mysql/lib/mysql\
--with-mysql-includes=/usr/local/mysql/include/mysql\
--with-redhat
#make && make install
#make install_configure
->编译安装Courier-authlib结束,加载链接库ldconfig
#echo "/usr/local/courier-authlib/lib/courier-authlib/" >> /etc/ld.so.conf
修改配置文件,使用MYSQL存储的数据进行验证
#vi /usr/local/courier-authlib/etc/authlib/authmysqlrc
MYSQL_SERVER localhost
MYSQL_USERNAME postfix
MYSQL_PASSWORD postfix
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_DATABASES postfix
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD 10001
MYSQL_GID_FIELD 10001
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD '/var/mailbox'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
MYSQL_QUOTA_FIELD quota
MYSQL_WHERE_CLAUSE active='1'
测试启动服务
#/usr/local/courier-authlib/sbin/authdaemon start
#ps -ef | grep authdaemond
阅读(1681) | 评论(0) | 转发(0) |