> For the complete documentation index, see [llms.txt](https://docs.yey.email/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yey.email/email-deliverability/use-gmail-filters-to-prevent-emails-marked-as-spam.md).

# Use Gmail Filters to Prevent Emails Marked As Spam

Sometimes Gmail can be overzealous in marking emails as spam. This can result in emails from newly setup YEY.email domains being sent to the spam folder. This guide shows you how to set Gmail filters to prevent that from happening.

In the Gmail web interface, click the Show search options icon at the right hand side of the search bar.

<figure><img src="/files/9RTqDYK9WGVwwolD8oUx" alt=""><figcaption></figcaption></figure>

In the dropdown, enter the alias you are forwarding in the To: field, then click Create filter.

<figure><img src="/files/fCwzLZcneo8hmk3sjYva" alt=""><figcaption></figcaption></figure>

In the next step, check the Never send it to Spam tickbox, then click Create filter.

<figure><img src="/files/WKDcCVfmhcgrIeGbH4mh" alt=""><figcaption></figcaption></figure>

That's it! Any messages arriving at your Gmail mailbox that have been forwarded via your YEY.email alias will never be marked as spam.

‍


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yey.email/email-deliverability/use-gmail-filters-to-prevent-emails-marked-as-spam.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
