Add mailstore-permissions.php which is originally access_rights.php from
the wiki with some additional improvements.