mutation UpdateServerMail($input: UpdateServerMailInput!) {
    updateServerMail(input: $input) {
        warnings
        query {
            serverMail {
                isMailUiEnabled
                settings {
                    mailServerName
                    imapServerName
                    maxMessageSize
                    maxConnections
                    maxConnectionsPerIp
                    isMessageSubmissionEnabled
                    messageSubmissionIp {
                        ipAddress
                    }
                    outgoingEmailMode
                    outgoingEmailModeIps {
                        ipAddress
                        isIPv6
                    }
                    isEmailSubaddressingEnabled
                    isMboxQuotaWarningEnabled
                    isFixSenderEnabled
                    isListSecureLinksEnabled
                    hasLocalhostRelayingAddressesIpV4
                    hasLocalhostRelayingAddressesIpV6
                    autoReplyHeaders {
                        name
                        value
                    }
                    isShortPop3NameEnabled
                }
                autodiscover {
                    isEnabled
                    isDnsEnabled
                    customServer
                }
                relay {
                    type
                    isPopAuthEnabled
                    lockTime
                    isSmtpAuthEnabled
                    noRelayNetworks
                    isOpenRelayAllowed
                }
                outgoingMessages {
                    isEnabled
                    isCountRecipientsEnabled
                    mailboxLimit
                    domainLimit
                    subscriptionLimit
                    isSendmailEnabled
                    reportPeriod
                    notificationPeriod
                    allowedReportPeriods
                    allowedNotificationPeriods
                }
                antivirus {
                    key
                    name
                    isActive
                }
                spamFilter {
                    isDmarcEnabled
                    isSigningOutgoingMailEnabled
                    isVerifyingIncomingMailEnabled
                    isRblEnabled
                    rblServer
                    isSpfEnabled
                    isErrorIgnored
                    behavior
                    localRules
                    guessRules
                    explanationText
                }
            }
        }
    }
}
