dotBATmanNO / PSGet-Domain-MailInfo

PowerShell script to get domain mail info and control status such as MX, SPF, DKIM, DMARC and StartTLS.
GNU General Public License v3.0
12 stars 2 forks source link

Add code to check multiple DKIM selectors #3

Closed dotBATmanNO closed 4 years ago

dotBATmanNO commented 4 years ago

One domain may use multiple DKIM selectors, e.g. Microsoft Exchange Online uses Selector1 and Selector2 by default.

dotBATmanNO commented 4 years ago

Had a shot at this and found that the output is the bigger issue - how could we make the CSV look consistent over multiple domains with varying number of DKIM Selectors?

dotBATmanNO commented 4 years ago

Completed with commit d989e3102c66bc3d964bc768a52842dafd205582

-DKIMSelector parameter is now a text array. Provide selectors separated by comma. Will fall back to using -DKIMSelector Selector1, Selector2 (Microsoft Exchange Online)

  Returns two columns
  - DKIMSelector holding all Selectors tested, separated by /
  - DKIMRecord holding [Selector1]DKIMRecord1/[Selector2]DKIMRecord2

Example below is typically seen when DNS has wildcard TXT/SOA record: "Selector1/Selector2";"[Selector1]NoDKIMRecord/[Selector2]NoDKIMRecord"