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