In short
Mimecast configuration export: the file Mimecast writes of its own settings, which a configuration review reads setting by setting without connecting to Mimecast.
How to export the Mimecast configuration, step by step, what the review checks in the file (5 checks run), and what it does not read.
| The file | JSON, one mimecast.json: six Policy Management answers, each under its call path |
|---|---|
| Checks run on it | 5 |
| Highest grade its findings reach | OBSERVED |
| Feeds attack paths | No |
| Not read from this export | 3 areas, listed below |
Sources: Mimecast documentation (1); Mimecast documentation (2); Mimecast documentation (3); the vendor table.
How to export it
These steps have not been checked against the vendor's documentation.
- Who can pull it
- An API 2.0 application with Gateway | Policies | Read
- Time
- About 10 minutes, most of it creating the API application.
- The file
- JSON, one mimecast.json: six Policy Management answers, each under its call path
No console export: The file comes from the API steps. The Administration Console is where the API 2.0 application is created.
From the command line
Create an API 2.0 application: in the Administration Console, Administration | Services | API and Platform Integrations | Available Integrations, the Mimecast API 2.0 tile, then Generate Keys. Give the application a role that holds Gateway | Policies | Read, and nothing else. Copy the client ID and the client secret before you leave the screen
The vendor's page, checked 2026-11-11Keep the client ID for this terminal session:
The vendor's page, checked 2026-11-11export MC_BASE=https://api.services.mimecast.com MC_CLIENT_ID=<client-id>(use your region’s address where Mimecast’s API overview gives one). Then runread -rs MC_CLIENT_SECRETand paste the client secret, then press Enter (nothing is shown, and the secret stays out of the shell history)
The vendor's page, checked 2026-11-11TOKEN=$(curl -s -X POST "$MC_BASE/oauth/token" -d "client_id=$MC_CLIENT_ID&client_secret=$MC_CLIENT_SECRET&grant_type=client_credentials" | jq -r .access_token)(a token lasts 30 minutes)For each of anti-spoofing/policies, anti-spoofing-bypass/policies, greylisting/policies, blocked-senders/policies, dns-authentication-outbound/definitions and dns-authentication-outbound/policies:
The vendor's page, checked 2026-11-11curl -s -H "Authorization: Bearer $TOKEN" "$MC_BASE/policy-management/cloud-gateway/v1/<call>?pageSize=100" > <file>.jsonsaving them as anti-spoofing.json, anti-spoofing-bypass.json, greylisting.json, blocked-senders.json, dkim-definitions.json and dkim-policies.json
The vendor's page, checked 2026-11-11jq -n --slurpfile a anti-spoofing.json --slurpfile b anti-spoofing-bypass.json --slurpfile g greylisting.json --slurpfile s blocked-senders.json --slurpfile d dkim-definitions.json --slurpfile p dkim-policies.json '{"anti-spoofing/policies": $a[0], "anti-spoofing-bypass/policies": $b[0], "greylisting/policies": $g[0], "blocked-senders/policies": $s[0], "dns-authentication-outbound/definitions": $d[0], "dns-authentication-outbound/policies": $p[0]}' > mimecast.json(each answer is kept as Mimecast returns it, under its call path)After the upload has gone through, delete the API 2.0 application in Administration | Services | API and Platform Integrations: Mimecast’s API overview says deleting the application deletes the service principal created with it
The vendor's page, checked 2026-11-11
What the file looks like
JSON, one mimecast.json: six Policy Management answers, each under its call path. A few to tens of KB. The upload takes files up to 10 MB.
What it holds: Your anti-spoofing, anti-spoofing bypass, greylisting, blocked senders and outbound DKIM policies and definitions, as the Policy Management API returns them, in one mimecast.json.
Upload mimecast.json, the file the jq step writes. The six input files are inputs for that step: do not upload them. Each call returns up to 100 entries; Mimecast’s documentation does not say where the next page token comes back, so an account with more than 100 policies of one kind is read in part. Run these commands in bash (macOS, Linux or WSL): in Windows PowerShell 5.1, > writes UTF-16, which jq and the upload refuse.
Afterwards
Delete the API 2.0 application (the last step). Delete the input files: rm anti-spoofing.json anti-spoofing-bypass.json greylisting.json blocked-senders.json dkim-definitions.json dkim-policies.json. Then close the terminal, which still holds the secret and the token.
If the export goes wrong
| What you see | The fix |
|---|---|
| TOKEN is empty or null | Check MC_BASE (the global address, or your region’s address from Mimecast’s API overview) and that the client ID and secret were entered whole, then run the read line and the TOKEN line again (a token lasts 30 minutes). |
| An answer holds a 403 error | The application’s role lacks Gateway | Policies | Read: add it, then run the TOKEN line and the curl lines again. |
| jq: command not found | Install jq (macOS: brew install jq; Debian or Ubuntu, also under WSL: sudo apt-get install jq), then run the TOKEN line and the steps after it again. |
What we read from it
- Checks run
- 5
- Formats read
- Policy JSON export · Policy Management API answers (JSON)
- Releases
- 2024.1 to current
Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.
The areas checked
- Anti-spoofing policies: whether one is on and applies anti-spoofing
- Anti-spoofing bypass policies: a bypass that is on for a whole domain or for every sender, and a bypass with no end date
- Greylisting policies: whether one is on and applies greylisting
- Outbound DKIM definitions: signing switched off
The grade its findings reach
Observed Findings from this file are OBSERVED: read from the system's own export and cited to the setting.
Its findings stay in the review and its reports. Mimecast does not feed attack paths.
Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.
What we do not read from this export
- URL Protect, Attachment Protect and Impersonation Protect settings: not read from this export (no documented API 2.0 call returns them)
- Inbound SPF, DKIM and DMARC handling: not read from this export (no documented API 2.0 call returns it)
- Permitted Senders policies and user allow lists: not read from this export
- Administrator sign-in, password and session settings, archive retention and continuity: not read from this export
- Blocked senders policies are kept in the file and give no finding
Limits of the reader
- Findings name the setting they come from, not its line number.
- Findings stay in the review. They do not feed attack paths.
- The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.
A finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.
Questions
Who can export the Mimecast configuration?
An API 2.0 application whose role holds Gateway | Policies | Read: Mimecast’s Policy Management reference names it as the permission of every call the steps make. Creating the application needs a role with Read and Edit API Application Permissions that may manage application roles, per Mimecast’s API 1.0 to 2.0 migration guide.
Does the export change anything?
It adds one API 2.0 application with its service principal (a standing credential) to your account and issues a token that lasts 30 minutes. Every call the steps make is a GET. On your computer the steps write six input files and mimecast.json.
Does the file hold passwords or keys?
mimecast.json holds no password, key or token: it holds policy settings, sender domains and addresses, and the public DKIM keys of your outbound definitions. The client secret and the token are kept in the terminal session, not in a file. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.