SASL re-installation (available after testing)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.