To test the server side, connect to the SMTP server, and you should
be able to have a conversation as shown below. Information sent by the
client is shown in bold font.
220 server.example.com ESMTP Postfix
250-AUTH DIGEST-MD5 PLAIN CRAM-MD5
AUTH PLAIN dGVzdAB0ZXN0AHRlc3RwYXNz
235 Authentication successful
Instead of dGVzdAB0ZXN0AHRlc3RwYXNz, specify the base64 encoded
form of username\0username\0password (the \0 is a null byte). The
example above is for a user named `test' with password `testpass'.
In order to generate base64 encoded authentication information
you can use one of the following commands:
% printf 'username\0username\0password' | mmencode
% perl -MMIME::Base64 -e \
The mmencode command is part of the metamail software.
MIME::Base64 is available from
Caution: when posting logs of the SASL negotiations to public
please keep in mind that username/password information is trivial
to recover from the base64-encoded form.