第一问:
The Courier Authentication Library is a generic authentication API that encapsulates the process of validating account passwords. In addition to reading the traditional account passwords from /etc/passwd, the account information can alternatively be obtained from an LDAP directory; a MySQL or a PostgreSQL database; or a GDBM or a DB file. The Courier authentication library must be installed before building any Courier packages that needs direct access to mailboxes .
简单的说是给Courier mail server 提供好了验证API接口,能允许访问/etc/passwd,Mysql,LDAP等数据库。
详细说,可以看这个
SASL is the Simple Authentication and Security Layer, a method for adding authentication support to connection-based protocols. To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions. If its use is negotiated, a security layer is inserted between the protocol and the connection.
简单的说SASL使用一个协议,其作用提供验证支持。
#ls /var/run/saslauthd/* -l
srwxrwxrwx 1 root root 0 Mar 22 19:00 /var/run/saslauthd/mux
-rw------- 1 root root 0 Mar 22 19:00 /var/run/saslauthd/mux.accept
-rw------- 1 root root 5 Mar 22 19:00 /var/run/saslauthd/saslauthd.pid