AegisAI Perspectives · 033

How API-based email security works without an MX record change, and what to check before you buy

API-based email security leaves MX records alone, and an admin-approved app reads Microsoft 365 or Google Workspace mail after delivery to remove threats.

How API-based email security works without an MX record change, and what to check before you buy

API-based email security leaves the MX record alone, and an admin-approved app reads Microsoft 365 or Google Workspace mail after delivery, within API limits such as 10,000 Microsoft Graph requests per mailbox every 10 minutes7. AegisAI connects this way, through the Microsoft 365 or Google Workspace API, with an OAuth grant your admin controls and can revoke15. Before you buy, check what the grant covers and how an admin takes it back.

What you can do by the end

  • Explain how an API connection reads mail without touching MX records or the delivery path.
  • List the permissions and API limits to check before an admin grants consent.
  • Measure the time between delivery and removal during a trial on your own mail.

What is API-based email security?

API-based email security is a product that connects to the mailbox platform through its API and inspects mail that has already arrived. It does not receive mail itself. The built-in protection in Microsoft 365 is included in every organization with cloud mailboxes13. AegisAI's inbound email security page says 3 in 10 confirmed phishing emails cleared native Gmail and Microsoft filters in Q3 202624.

How does an integrated cloud email security connection work, step by step?

An integrated cloud email security (ICES) connection works in seven steps, from admin consent to removal. None of them touches DNS.

  1. An admin grants consent. Only a Privileged Role Administrator or Global Administrator can consent to Microsoft Graph application permissions5. In Google Workspace, only a super admin can set up domain-wide delegation11.

  2. The app runs under its own identity. In app-only access it calls Microsoft Graph without a signed-in user, using application permissions.

  3. Mail keeps its route. RFC 5321 delivery first looks up the MX record for the destination name1, and lower preference numbers are more preferred. The API app never appears in that record.

  4. The app hears about new mail. Microsoft Graph sends change notifications on messages by webhook to a URL the app supplies, and the app needs Mail.Read to receive them6.

  5. The app reads within quotas. Microsoft Graph allows four concurrent requests per app and mailbox8. The Gmail API lists 6,000 quota units per minute per user per project12.

  6. The app reads each delivered message. The change notification names the new message, and the app fetches it within the quotas above.

  7. Removal uses a write grant. A read scope such as gmail.readonly only lets an app view email messages and settings, and Google classifies it as restricted10. Moving or deleting mail needs a write permission that the admin grants on its own.

What are the key differences between API-based and secure email gateway deployment?

A gateway sits in the delivery path and an API product sits beside the mailbox. Changing to Gmail, for example, means redirecting the domain's MX records to Google servers3.

CriterionAPI-basedSecure email gateway
Where it sitsBeside the mailbox, through the platform APIIn the delivery path, named in the MX record
DNS changeNoneMX records point at the gateway
When it actsAfter delivery, by removing mail from mailboxesBefore delivery, by holding or rejecting mail
Access it needsAdmin consent to application permissionsDNS control and connector rules
Limits to plan forAPI quotas per mailbox or per userGateway capacity and its own uptime
RollbackRevoke the app's permissionsRestore the earlier MX records

Illustrative example, figures are fictional. A 600-mailbox firm on Microsoft 365 trials an API product. On day 1 a Global Administrator consents to read-only application permissions, and the MX records stay as they are. Over 30 days the product reports 42 confirmed threats in delivered mail; the team checks each reason and agrees with 39. On day 31 the admin grants the write permission, and the median time from delivery to removal is 40 seconds. Had the trial failed, the admin would revoke the permissions in Entra ID and change nothing in DNS.

What does no MX change mean for deployment?

It means the deployment is an admin consent, with no DNS change window and no mail routed through new infrastructure. In Entra ID an admin opens Enterprise apps, selects the application, chooses Permissions and revokes what was granted for the whole organization9. In Google Workspace an app set to Blocked can't access any Google data14. The guide on how to replace a secure email gateway without a cutover weekend covers moving off a gateway in stages.

How to evaluate API-based email security vendors for your organization on Microsoft 365 and Google Workspace

Evaluate them on what the connection is allowed to do.

  • Permissions: which Graph application permissions or Gmail scopes does the app request, and which of them can move or delete mail?
  • Approval: who in your tenant has to consent, and is that a Global Administrator, a Privileged Role Administrator or a super admin?
  • Monitoring first: can the trial run read-only, with removal granted later as a separate step?
  • Quotas: how does the app stay inside Graph and Gmail API limits on a busy mailbox?
  • Timing: how long does a message sit in the inbox before removal, and where is that time logged?
  • Revocation: what exactly does an admin click to take access back, and what stops working when they do?
  • Outage: does inbound mail keep flowing when the vendor's service is down?

More vendor questions are in the checklist on how to evaluate API-based email security.

How AegisAI handles this

Through the Microsoft 365 or Google Workspace API, with an OAuth grant your admin controls and can revoke15. There is no MX change and nothing in the delivery path. An admin to approve the API connection, which takes about five minutes, and a findings review at the end. Reads mail through the Microsoft 365 or Google Workspace API after delivery19. Runs in monitoring mode first.

How to measure it in 30 days

Track three numbers from the first day of the trial.

  • Time from delivery to removal for each confirmed threat. Ask the vendor where each removal and its timestamp are logged; the number exists once the write permission is granted.
  • Confirmed threats found in delivered mail. They live in the trial's findings report; confirm each one by hand.
  • Requests the platform throttled. Ask the vendor to show the count, and compare it with the 10,000 requests per mailbox every 10 minutes that Microsoft Graph allows.

Questions people ask

What are API-based email security vendors?

They sell products that connect to Microsoft 365 or Google Workspace through the platform API, with no MX record change. The category is also called integrated cloud email security (ICES). Judge each one by the permissions it asks for and by how quickly it removes mail.

Does API-based email security need an MX record change?

No. Mail delivery follows the MX record, and an API product never appears in it. The product reads mail through Microsoft Graph or the Gmail API after the platform has delivered it.

Who has to approve an API email security connection?

In Microsoft 365, a Privileged Role Administrator or Global Administrator consents to Graph application permissions. In Google Workspace, a super admin sets up domain-wide delegation.

Can an admin revoke an API email security tool?

Yes. In Entra ID, the admin revokes organization-wide permissions from the app's Permissions page. In Google Workspace, an app set to Blocked can't access any Google data.

Does an API connection slow down mail delivery?

No. The product sits outside the route RFC 5321 describes. Its own work runs alongside, capped at four concurrent requests per app and per inbox.

Sources

  1. Microsoft Learn, Microsoft Graph throttling limits
  2. Microsoft Learn, built-in security features for all cloud mailboxes
  3. Microsoft Learn, overview of Microsoft Graph permissions
  4. Google Workspace Admin Help, control API access with domain-wide delegation
  5. RFC 5321, Simple Mail Transfer Protocol
  6. Microsoft Learn, change notifications for Outlook resources
  7. Google for Developers, Gmail API usage limits
  8. Google for Developers, Gmail API scopes
  9. Google Workspace Admin Help, activate Gmail for your company
  10. Microsoft Learn, review permissions granted to enterprise applications
  11. Google Workspace Admin Help, control which apps access Google Workspace data
  12. AegisAI, homepage FAQ
  13. AegisAI, inbound email security

Recent posts

Every email, investigated.