query MailAccountConfiguration($id: ID!) {
    config {
        mail {
            showClientConfiguratorLink
            autoconfig {
                dnsEnabled
                showHelperTextWhenUnavailable
            }
        }
    }
    viewer {
        login
        permissions {
            manageMailSettings
        }
    }
    mailAccountConfiguration(mailId: $id) {
        domainId
        userName
        incomingServer
        outgoingServer
        incomingProtocols
        outgoingProtocols
        hideSslNote
        smtpAuth
        isValidCertificate
        autodiscovery
        iosLink
        clientsConfiguratorLink
        hasCertificate
        pop3Port
        imapPort
        smtpPort
        form {
            id
            embeddedForms {
                ext
                name
                title
                icon
                description
                content
            }
        }
        customInstructions
    }
}
