query ServerMailSettingsPage {
    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
        }
        spamFilter {
            isDmarcEnabled
            isSigningOutgoingMailEnabled
            isVerifyingIncomingMailEnabled
            isRblEnabled
            rblServer
            isSpfEnabled
            isErrorIgnored
            behavior
            localRules
            guessRules
            explanationText
        }
    }
    os {
        isWindows
    }
    capability {
        mailServer {
            isMaxLetterSizeChangeable
            isMessageSubmissionDedicatedIPSupported
            isMessageSubmissionAllIPSupported
            isRelayLockTimeSupported
            isRelayTypeOpenSupported
            isRelayTypeClosedSupported
            isRelayTypeAuthSupported
            isRelayTypeAuthPop3Supported
            isRelayTypeAuthSmtpSupported
            isRelayTypeAuthBothSupported
            shortPop3NamesCompatibility
        }
        packages {
            isRBLInstalled
        }
    }
    server {
        ipAddresses {
            list {
                id
                ipAddress
                isIPv6
            }
        }
    }
}
