# How to Set Up Auto-Forwarding from Gmail to Revdoku's Email

> Learn how to auto-forward Gmail to a Revdoku bucket using filters or global forwarding so AI agents can access email content and attachments.

Forward incoming Gmail messages to a Revdoku cloud bucket so AI agents can read stored email content in JSON/Markdown and access attachments. The screenshots below show how to forward messages matching a **To-recipient filter**. To forward **every new non-spam message**, use the alternative after step 12.

Before starting, use a computer and browser to create or open a bucket at [Revdoku](https://app.revdoku.com/). Copy its actual email address ending in `@revdokumail.com`; this tutorial uses ` @revdokumail.com` as a placeholder.

Google Workspace accounts with custom domains use the same Gmail settings. The screenshots show this type of account.

## 1. Open Gmail’s settings

In Gmail, click the **Settings** gear in the upper-right corner, then click **See all settings** to open the full settings page.

![Gmail Settings menu with See all settings highlighted](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/1-forwarding-setup-gmail-settings-open-all-settings.webp)

## 2. Find the forwarding settings

Open the **Forwarding and POP/IMAP** tab. Depending on your account, the tab may simply be called **Forwarding**.

![Gmail settings with the Forwarding and POP/IMAP tab highlighted](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/2-forwarding-setup-click-forwarding-settings.webp)

## 3. Add a forwarding address

In the Forwarding section, click **Add a forwarding address**. This begins the process of registering your bucket as a destination.

![Add a forwarding address button in Gmail settings](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/3-forwarding-setup-click-add-forwarding-address.webp)

## 4. Enter your bucket’s email address

Paste the address you copied from Revdoku, represented here as ` @revdokumail.com`. Check that you copied the complete address, then click **Next**.

![Gmail forwarding dialog with the destination address field and Next button](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/4-forwarding-setup-enter-forward-to-address.webp)

## 5. Confirm the destination

Google opens a confirmation window. Check that the destination matches your intended Revdoku bucket’s email address, then click **Proceed**.

![Google confirmation window with the Proceed button highlighted](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/5-forwarding-setup-confirm-forwarding-address.webp)

## 6. Dismiss the confirmation notice

Gmail confirms that it has sent a confirmation link to the destination address. Click **OK**.

The address is **not yet verified**. You still need to open the email in Revdoku and confirm the request.

![Gmail notice confirming that a verification link has been sent](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/6-forwarding-setup-forwarding-setup-added.webp)

## 7. Open the confirmation email in Revdoku

Open your bucket’s **Mailbox** in Revdoku. Find the confirmation email from **forwarding-noreply@google.com**, open it, and follow the confirmation link inside that email.

Use the link from your own confirmation message.

![Gmail forwarding confirmation email in the Revdoku bucket Mailbox](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/7-forwarding-setup-forwarding-address-confirmation-letter.webp)

## 8. Confirm forwarding with Google

On Google’s confirmation page, check both addresses: the source should be your Gmail or Google Workspace account, and the destination should be your Revdoku bucket.

Click **Confirm**.

![Google forwarding verification page with the Confirm button highlighted](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/8-forwarding-setup-confirm-forwarding-email.webp)

## 9. Return to Gmail

**Confirmation Success** means your destination address is verified. It does not mean the forwarding filter has been created.

Return to Gmail and refresh the settings page if necessary.

![Google Confirmation Success message after verifying the forwarding destination](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/9-forwarding-setup-forwarding-email-setup.webp)

## 10. Create a recipient filter

Open **Show search options** in Gmail’s search bar. In **To**, enter the source Gmail or Google Workspace address that receives your messages—not the Revdoku destination. Leave the other criteria blank, then click **Create filter**.

The screenshot uses a custom-domain source address. This recipient filter forwards only new messages matching the specified **To** address. It does not guarantee coverage of aliases, Bcc messages, mailing lists, or every message delivered to your mailbox.

Replies must also match the criteria to be forwarded, as explained in [Google’s filter documentation](https://support.google.com/mail/answer/6579?hl=en).

![Gmail search options with a source recipient in To and Create filter highlighted](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/10-forwarding-setup-create-filter.webp)

## 11. Choose the forwarding action

Select **Forward it to** and choose your verified bucket address ending in `@revdokumail.com`. Click **Create filter** to save it.

**Mark as read** is selected in the screenshot, but it is optional. Leave it unchecked to preserve unread status in Gmail. Leave delete, archive, and never-spam options unchanged unless you specifically want those actions.

Existing messages will not be forwarded, even if you apply other filter actions to existing conversations. Forwarding applies only to new matching messages.

![Gmail filter actions with Forward it to and optional Mark as read selected](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/11-forwarding-setup-create-filter-confirm.webp)

## 12. Check the filter and test delivery

Open **Settings > Filters and Blocked Addresses**. Confirm that the filter shows the intended **To** condition and **Forward to** action. Check the exact destination address.

Send a fresh test message from a different email account to the source address. Include an attachment if you want to check attachment handling. Then inspect the Revdoku bucket’s **Mailbox** and **Raw Files** for the email, JSON/Markdown files, and any attachments.

![Saved forwarding filter in Gmail’s Filters and Blocked Addresses settings](/assets/en/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/12-forwarding-setup-forwarding-complete-and-shows-in-settings.webp)

## Forward every new email instead

For all incoming non-spam mail, use Gmail’s built-in global forwarding. It covers new messages even when they do not match the illustrated **To** filter.

Once your bucket address is verified:

1. Open **Settings > Forwarding and POP/IMAP**.
2. Select **Forward a copy of incoming mail to** and choose the bucket address.
3. Select **keep Gmail’s copy in Inbox**.
4. Click **Save Changes**.

See [Google’s automatic forwarding instructions](https://support.google.com/mail/answer/10957?hl=en) for details.

Use one forwarding method for this destination. If switching to global forwarding, remove the example filter under **Filters and Blocked Addresses**.

## Troubleshooting

- **Confirmation email missing:** Check the bucket and destination address, then refresh the Revdoku Mailbox.
- **Destination unavailable in Gmail:** Complete verification, then refresh Gmail.
- **No forwarded email:** Send a new message matching the filter; existing mail is not forwarded. Work or school administrators can restrict forwarding.

Once delivery works, [connect your AI agents to Revdoku](/connect/) to use the stored email content and attachments.

Get Email address for your AI agent

Create a cloud bucket and copy its @revdokumail.com email address.

Emails sent to this email are saved as JSON and Markdown, attachments are extracted.

Connect AI agents to read and manage saved emails and files via the API, CLI, MCP, or Skill.

Create Free Account or connect your AI agent

Connect AI:

Prompt
Skill
MCP
API

Show full prompt ⌄

Copy

npx skills add revdoku/revdoku --skill revdoku -g

Copy

Claude Code
Codex
Cursor
Gemini CLI
Hermes Agent
OpenClaw

Codex CLI Claude Code Other AI app

Codex CLI
Claude Code
Other

codex mcp add revdoku --url https://app.revdoku.com/mcp && codex mcp login revdoku Copy

claude mcp add --transport http revdoku https://app.revdoku.com/mcp && claude mcp login revdoku Copy

Transport Streamable HTTP Auth Browser OAuth

https://app.revdoku.com/mcp Copy

Open the MCP setup guide &rarr;

JavaScript
Python
C# (.NET)

const apiKey = process.env.REVDOKU_API_KEY; // Get a key at https://app.revdoku.com/account/access
if (!apiKey) throw new Error("Set REVDOKU_API_KEY first");

const response = await fetch(
"https://app.revdoku.com/api/v1/buckets", {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json"
},
body: JSON.stringify({ bucket: { title: "My agent inbox" } })
}
);
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${await response.text()}`);
}
const { data } = await response.json();
const inbox = data.bucket.inbound_email;
console.log("Bucket ID:", data.bucket.id);
console.log("Email:", inbox.address);
console.log("Ready:", inbox.ready);
console.log("Open:", data.bucket.dashboard_url);
if (!inbox.ready) console.log("Receiving:", inbox.blocked_reason);
Copy code

JavaScript setup & full example →

import os
import requests

api_key = os.environ["REVDOKU_API_KEY"] # Get a key at https://app.revdoku.com/account/access
response = requests.post(
"https://app.revdoku.com/api/v1/buckets",
headers={"Authorization": f"Bearer {api_key}"},
json={"bucket": {"title": "My agent inbox"}},
timeout=30,
)
response.raise_for_status()
bucket = response.json()["data"]["bucket"]
inbox = bucket["inbound_email"]
print("Bucket ID:", bucket["id"])
print("Email:", inbox["address"])
print("Ready:", inbox["ready"])
print("Open:", bucket["dashboard_url"])
if not inbox["ready"]:
print("Receiving:", inbox["blocked_reason"])
Copy code

Python setup & full example →

using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Text.Json;

var apiKey = Environment.GetEnvironmentVariable("REVDOKU_API_KEY") // Get a key at https://app.revdoku.com/account/access
?? throw new Exception("Set REVDOKU_API_KEY first");
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", apiKey);
using var response = await client.PostAsJsonAsync(
"https://app.revdoku.com/api/v1/buckets",
new { bucket = new { title = "My agent inbox" } });
response.EnsureSuccessStatusCode();
using var json = JsonDocument.Parse(await response.Content.ReadAsStringAsync());
var bucket = json.RootElement.GetProperty("data").GetProperty("bucket");
var inbox = bucket.GetProperty("inbound_email");
Console.WriteLine($"Bucket ID: {bucket.GetProperty("id").GetString()}");
Console.WriteLine($"Email: {inbox.GetProperty("address").GetString()}");
Console.WriteLine($"Ready: {inbox.GetProperty("ready").GetBoolean()}");
Console.WriteLine($"Open: {bucket.GetProperty("dashboard_url").GetString()}");
if (!inbox.GetProperty("ready").GetBoolean())
Console.WriteLine($"Receiving: {inbox.GetProperty("blocked_reason").GetString()}");
Copy code

C# (.NET) setup & full example →

---

[View the canonical page](https://revdoku.com/blog/how-to-set-up-auto-forwarding-from-gmail-to-revdoku-s-email/) · [Browse llms.txt](https://revdoku.com/llms.txt)
