MediumModule packFree

SendGrid

Checks the security of a Twilio SendGrid account: authenticated sender domains are validated, API keys have least privilege, Enforced TLS is on, and subusers and dedicated IPs are in the EU. Reads the SendGrid API with a read-only key through the SendGridTools module and changes nothing. Limit: glo…

By weyCC81 · Version 1.0.1 · Published 17 Nov 2026

← All tests

MP.WEY.SENDGRID.1001 SendGrid: every authenticated domain is validated

Severity: HighWEY.SENDGRID.Api

Each domain authenticated in Twilio SendGrid (Domain Authentication) should be validated: its DNS publishes the records SendGrid gives for it, a DKIM key and the return path (SPF). Only then does mail that SendGrid sends for the domain pass DKIM and align with the domain's DMARC policy. An unvalidated domain is signed with SendGrid's own domain, so receivers with a DMARC policy of quarantine or reject put the mail in spam or refuse it.

The test gives one result per authenticated domain and lists each DNS record with whether SendGrid found it. Results carry the field User, the SendGrid user or subuser the domain belongs to. Needs the API key scope whitelabel.read.

Remediation action

  1. In SendGrid, open Settings > Sender Authentication and the domain.
  2. Publish each record that is missing or wrong at your DNS provider, exactly as SendGrid shows it.
  3. Click Verify in SendGrid once the records resolve.
  4. Prefer automated security (CNAME records): SendGrid then rotates the DKIM keys for you.
  5. Delete authenticated domains you no longer send from.

See How to set up domain authentication.

%TestResult%

Install
Install-MtPack weyCC81/ch.alweys.maester-pack-wey/sendgrid

Assumes Maester is installed. New to Maester? Get started.

Next: connect and run
Connect
Connect-Maester -Service WEY.SENDGRID.Api -ServiceSetting @{ ApiKey = (Read-Host -AsSecureString 'SendGrid API key') }
Run
Invoke-Maester -Pack WEY.SENDGRID -SkipBuiltIn