add mailsync description
[mmh] / docs / README.SASL
1 #
2 # README.SASL - Readme about SASL support in nmh
3 #
4
5 SASL is short for the Simple Authentication and Security Layer.  Is is
6 a framework for adding authentication and encryption to network protocols.
7 It is described in IETF RFC 2222.
8
9 This release of nmh supports SASL for SMTP.  The SASL support is
10 implemented using the Cyrus-SASL library.  This library can be found at
11 ftp://ftp.andrew.cmu.edu/pub/cyrus-mail.  Obviously, SASL support only
12 works if you use the SMTP mail transport.
13
14 This release of NMH only supports "Version 2" of the Cyrus SASL library.
15 It should work with any newer Cyrus SASL release, but it was tested with
16 Cyrus SASL 2.1.22.  In particular, the CRAM-MD5 and GSSAPI (Kerberos 5)
17 mechanisms were tested.  Older versions of Cyrus-SASL had a bug which
18 could manifest when negotiating encrypting depending on the encryption
19 type you used, so a newer version of Cyrus-SASL is recommended.
20
21 Currently, security layers ("encryption" in SASL-speak) are supported
22 for SMTP.  This means that if your SMTP server _and_ the selected SASL
23 mechanism supports it, client-server communications will be encrypted.
24 In theory this should work with any SASL mechanism that supports security
25 layers; it has only been tested with the GSSAPI mechanism.
26
27 If you are curious as to whether or not your communications are actually
28 encrypted or not, you can use the -snoop flag to the SMTP utilities.
29 Communication that is encrypted is preceeded by an (encrypted) or
30 (decrypted), depending on the direction of communication.
31
32 If you would like to use the GSSAPI SASL mechanism (Kerberos V), you
33 should read very carefully the documentation that comes with Cyrus-SASL,
34 specifically the GSSAPI documentation.  Getting the GSSAPI plugin to
35 work correctly with SASL can be "interesting" to say the least.