I. Delete all installed SASL files (or back up)
1. to decompress and install make, use make uninstall to uninstall it in its directory,
2. If the installation through Yum requires rpm-e -- nodeps cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl-lib to uninstall related SASL files and libraries
I installed SASL to/usr/local/SASL, So I deleted the/usr/local/sasl2 file directly,
Rm-RF/usr/lib/sasl2
Rm-RF/usr/lib/lrm-RF libsasl2.la
Rm-RF/usr/lib/lrm-RF libsasl2.so
Rm-RF/usr/lib/lrm-RF libsasl2.so. 2
Rm-RF/usr/lib/lrm-RF libsasl2.so. 2.0.22
Delete all files similar to libsaslxxxx, And you can back up the files if they are deleted.
Also in CD/usr/include/
Rm-rf sasl. h
Rm-RF saslplug. h
Rm-RF saslutil. h
Rm-RF md5.h
Rm-RF md5global. h
Rm-RF hmac-md5.h
Rm-RF prop. h
Check whether all the files in/usr/local/lib and/usr/local/include/are deleted.
2. Start to reinstall
You need to download the file. Install saslrpm
Http://download.csdn.net/detail/stuartjing/3694178
Decompress the file and copy it to Linux (the file is in the RAR format. You 'd better decompress the file and copy it to Linux)
Enter File
Rpm-ihv cyrus-sasl-lib-2.1.22-8.i386.rpm
Rpm-ihv cyrus-sasl-2.1.22-8.i386.rpm
Rpm-ihv cyrus-sasl-plain-2.1.22-8.i386.rpm
Rpm-ihv cyrus-sasl-devel-2.1.22-8.i386.rpm
Install
Try to test saslauthd startup
Mkdir-PV/var/run/saslauthd
/Usr/sbin/saslauthd-A Shadow Pam-d
Start saslauthd and Test
/Usr/sbin/saslauthd-A Shadow Pam
#/Usr/local/sasl2/sbin/testsaslauthd-u root-P Root User Password
Automatic startup
# Echo "/usr/local/sasl2/sbin/saslauthd-A Shadow Pam">/etc/rc. Local
Open the file. (You do not need to know whether the smtpd. conf file exists. Generally, it does not exist)
VI/usr/lib/sasl2/smtpd. conf
Pwcheck_method: authdaemond
Log_level: 3
Mech_list: Plain Login
Authdaemond_path:/usr/local/courier-authlib/var/spool/authdaemon/socket
Update Postfix service again
Postfix reload