maester-tests/cisa/exchange/Test-MtCisaDkim.Tests.ps1

Describe "CISA" -Tag "MS.EXO", "MS.EXO.3.1", "CISA.MS.EXO.3.1", "CISA", "Security" {
    It "CISA.MS.EXO.3.1: DKIM SHOULD be enabled for all domains." {
        $cisaDkim = Test-MtCisaDkim

        if ($null -ne $cisaDkim) {
            $cisaDkim | Should -Be $true -Because "DKIM record should exist and be configured."
        }
    }
}