|
各位領導大家晚上好:
如題,小弟我安裝Solaris10 x86 u4系統自帶Mysql,可是因為版本問題我想卸載這個版本,然后安裝其他版本的Mysql,不知道該如何操作。還有就是我在安裝cyrus-sasl-2.1.22時候,Make&Install以后,沒有看見有生成的smtpd.conf文件,
安装Cyrus-SASL
1.安装Cyrus-SASL
下载cyrus-sasl
# gtar zxvf cyrus-sasl-2.1.15.tar.gz
# CC=gcc CFLAGS="-O6" CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti"
# CPPFLAGS="-I/usr/local/mysql/include/mysql";export CPPFLAGS
# ./configure \
--enable-anon \
--enable-plain \
--enable-login \
--disable-krb4 \
--disable-otp \
--disable-cram
--disable-digest \
--with-mysql=/usr/local/mysql/lib/mysql \
--without-pam \
--without-saslauthd \
--without-pwcheck \
--with-plugindir=/usr/local/lib/sasl2
# make
# make install
2.设置Cyrus-SASL
设置Postfix使用SASL的mysql扩展认证来支持smtp auth认证:
# vi /usr/local/lib/sasl2/smtpd.conf //内容如下:
pwcheck_method: auxprop
mech_list: plain login
mysql_user: mail
mysql_passwd: password
mysql_hostname: localhost
mysql_database: mail
mysql_statement: select CLEAR_PASSWORD from USER where (USERNAME = '%u' or MAIL = '%u@%r') limit 1
整个系统只有Postfix的smtp auth使用了SASL认证.Courier-IMAP的认证使用了它自己的mysql扩展. | 請各位領導幫忙,非常感謝。 |
|