maester-tests/cisa/exchange/Test-MtCisaSpfDirective.Tests.ps1
|
Describe "CISA" -Tag "MS.EXO", "MS.EXO.2.2", "CISA.MS.EXO.2.2", "CISA", "Security" { It "CISA.MS.EXO.2.2: An SPF policy SHALL be published for each domain, designating only these addresses as approved senders." { $cisaSpfDirective = Test-MtCisaSpfDirective if ($null -ne $cisaSpfDirective) { $cisaSpfDirective | Should -Be $true -Because "SPF record should restrict authorized senders." } } } |