How do I connect SendGrid Inbound Parse to nofeb?
- Copy
inbound.webhook_urls.sendgridfromGET /v1/me. - Point the receiving host's MX at SendGrid, as its Inbound Parse setup requires.
- In Settings → Inbound Parse, add the host and paste the nofeb URL as the destination.
- Tick "POST the raw, full MIME message". Without it SendGrid posts parsed fields, which nofeb does not use.
GET https://api.nofeb.com/v1/me
→ { "inbound": { "cloudflare_token": "…",
"webhook_urls": { "raw": "…/v1/inbound/raw/{token}", "postmark": "…/v1/inbound/postmark/{token}",
"mailgun": "…/v1/inbound/mailgun/{token}/mime", "sendgrid": "…/v1/inbound/sendgrid/{token}" } } } How does the agent get the message?
The same three ways as any other inbound mail. Subscribe a webhook to message.received, pull the event feed, or block on wait_for_email until it arrives:
curl -X POST https://api.nofeb.com/v1/inboxes \
-H "Authorization: Bearer $NOFEB_API_KEY" -H 'content-type: application/json' \
-d '{"local_part": "signup-bot", "ttl_seconds": 3600}'
curl "https://api.nofeb.com/v1/inboxes/$INBOX_ID/wait?has_otp=true&timeout=60" \
-H "Authorization: Bearer $NOFEB_API_KEY"
# → { "message": { "subject": "Your code", "otps": [{ "code": "482913", "source": "body" }], … } } What does nofeb add to SendGrid's payload?
- The same parsing as every other inbound path, from the raw message: reply_text, safe_body, codes, links and attachment text.
- Duplicates from SendGrid's retries are delivered once.
- A security verdict is recorded only for mail nofeb's own server receives; for SendGrid-routed mail, SendGrid's own spam check, if enabled, is what ran.
What should I know about SendGrid itself?
From SendGrid's own documentation, checked .
- Inbound Parse setup requires an MX record for the receiving host pointing to mx.sendgrid.net with priority 10. source: twilio.com
- By default the webhook posts parsed fields, and an option posts the raw, full MIME message instead. source: twilio.com
- The total message size limit, including attachments, is 30MB. source: twilio.com
- Failed POSTs that return 5XX are retried, and messages that cannot be delivered after 3 days are dropped. source: twilio.com
- Only authenticated domains may be used with Inbound Parse, and the webhook does not follow redirects. source: twilio.com
- The pricing page lists the Inbound Parse Webhook on Pro (from $89.95 a month) and Premier, and not on Essentials. source: twilio.com
Frequently asked questions
Why is SendGrid Inbound Parse retrying or dropping messages?
SendGrid retries a POST that fails with a 5XX and drops the message after three days. nofeb answers only once the message is stored, and a redelivered message is delivered once, so retries are safe.
Why tick "POST the raw, full MIME message"?
nofeb parses the raw message so the agent gets the same fields from every path, plus the byte-exact original. The parsed-fields format is not used.
Can I stop using SendGrid for inbound entirely?
Yes. Point the domain's MX at nofeb instead, and nofeb's own server receives the mail with sender authentication and spam and virus checks.
Status of everything on this page
Every capability named above, with its status as reconciled against the engine.
| Capability | What it does | Status |
|---|---|---|
| Inbound from the provider you already use | Receive through Cloudflare Email Routing with an Email Worker on your own zone, a Postmark inbound stream, a Mailgun route, SendGrid Inbound Parse, or any service that can POST a raw message. Each path is authenticated by your organization's inbound token, which you can rotate at any time, and delivers only to your own inboxes and verified domains. | Shipped |
| Inbound routed by envelope recipient | Mail is delivered to the inbox named in the SMTP envelope, not the To: header, whichever way it arrives, and redelivery is idempotent. | Shipped |
| Reply extraction | Each message carries its new text with quoted history and signature removed. | Shipped |
| safe_body for untrusted mail | The message's new text with zero-width and direction-altering characters, hidden HTML and forgeable quoted history removed, wrapped in a provenance header that tells the model whose words these are. | Shipped |
| One-time code and link extraction | Verification codes and classified links are pulled out of every message and returned as fields. | Shipped |
| Attachment text | Attachments are listed with their extracted text and can be downloaded byte-exact. | Shipped |
| Wait for an email | Long-poll an inbox for up to a minute until a message matching sender, subject or has-a-code arrives. | Shipped |
| Signed webhooks with required scope | Standard Webhooks signatures, retries and a delivery log. Scope (organization, pod or inbox) is required, so a subscription never silently widens to everything. | Shipped |
| HTTPS hooks in the pipeline | Signed HTTPS callouts that change what happens: create or reject an inbox for an unknown recipient, accept, reject or quarantine a message before delivery, and allow, deny or hold a send, each with a timeout and a fail-open or fail-closed mode. | Shipped |