ConvertFrom-MailAuthenticationRecordDkim
SYNOPSIS
Section titled “SYNOPSIS”Returns structured RFC compliant object from DKIM record
SYNTAX
Section titled “SYNTAX”ConvertFrom-MailAuthenticationRecordDkim [-DomainName] <String> [[-DnsServerIpAddress] <IPAddress>] [-DkimDnsName] <String> [-QuickTimeout] [-NoHostsFile] [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “DESCRIPTION”Adapted from:
- https://cloudbrothers.info/en/powershell-tip-resolve-spf/
- https://github.com/cisagov/ScubaGear/blob/main/PowerShell/ScubaGear/Modules/Providers/ExportEXOProvider.psm1
- https://xkln.net/blog/getting-mx-spf-dmarc-dkim-and-smtp-banners-with-powershell/
- DKIM https://datatracker.ietf.org/doc/html/rfc6376
record : v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPkb8bu8RGWeJGk3hJrouZXIdZ+HTp/azRp8IUOHp5wKvPUAi/54PwuLscUjRk4Rh3hjIkMpKRfJJXPxWbrT7eMLric7f/S0h+qF4aqIiQqHFCDAYfMnN6V3Wbke2U5EGm0H/cAUYkaf2AtuHJ/rdY/EXaldAm00PgT9QQMez66QIDAQAB;keyType : rsahash : {sha1, sha256}notes :publicKey : MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPkb8bu8RGWeJGk3hJrouZXIdZ+HTp/azRp8IUOHp5wKvPUAi/54PwuLscUjRk4Rh3hjIkMpKRfJJXPxWbrT7eMLric7f/S0h+qF4aqIiQqHFCDAYfMnN6V3Wbke2U5EGm0H/cAUYkaf2AtuHJ/rdY/EXaldAm00PgT9QQMez66QIDAQABvalidBase64 : Trueservices : {*}flags :warnings :EXAMPLES
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”ConvertFrom-MailAuthenticationRecordDkim -DomainName "microsoft.com"Returns [DKIMRecord] or “Failure to obtain record”
PARAMETERS
Section titled “PARAMETERS”-DomainName
Section titled “-DomainName”Domain name to check.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DnsServerIpAddress
Section titled “-DnsServerIpAddress”DNS-server to use for lookup.
Type: IPAddressParameter Sets: (All)Aliases:
Required: FalsePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DkimDnsName
Section titled “-DkimDnsName”DKIM DNS record Name to retrieve.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-QuickTimeout
Section titled “-QuickTimeout”Use a shorter timeout value for the DNS lookup.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-NoHostsFile
Section titled “-NoHostsFile”Ignore hosts file for domain lookup.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Section titled “INPUTS”OUTPUTS
Section titled “OUTPUTS”ConvertFrom-MailAuthenticationRecordDkim.DKIMRecord
Section titled “ConvertFrom-MailAuthenticationRecordDkim.DKIMRecord”System.String
Section titled “System.String”RELATED LINKS
Section titled “RELATED LINKS”https://maester.dev/docs/commands/ConvertFrom-MailAuthenticationRecordDkim