XOAUTH2 is a modern authentication platform for IMAP, POP, and SMTP that uses an "access token" instead of a password. It involves getting an access token via OAuth2, creating an initial client response from the username and access token, and authenticating with the initial client response. The document provides examples of the protocol exchange for IMAP, POP, and SMTP using XOAUTH2 authentication. It also describes the format of the initial client response and provides a login flow example using a Windows 8.1 mail client and Google Apps.