1. A method comprising: receiving an indication that a sender device is only authorized to provide a recipient device with access to a message when a first compliance rule and a second compliance rule are satisfied, the first compliance rule requiring that at least one functionality of the document be restricted, and the second compliance rule requiring that the recipient device be configured to restrict at least one functionality of the recipient device; identifying a request by the sender device to provide the recipient device with access to the message; causing a restricted document to be generated by causing the document to be configured to restrict the at least one functionality of the document; causing a determination of whether the recipient device is configured to restrict the at least one functionality of the recipient device; and, causing the operating system of the recipient device to configure the recipient device to restrict the at least one functionality of the recipient device when it is determined that the recipient device is not configured to restrict the at least one functionality of the recipient device.