> For the complete documentation index, see [llms.txt](https://dexcore.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexcore.gitbook.io/guide/dexcore-guide-es/modules/outlook-hotmail/features/set-rule.md).

# Set Rule

{% hint style="info" %}
**What does "Set Rule" do?** It tells Outlook to automatically send a copy of every incoming email to another email address (your "master email"). This way you can read all your accounts' emails from one inbox.
{% endhint %}

***

## Before You Start

{% hint style="danger" %}
**Both 2FA AND Recovery Email MUST be set before using this function.**

Without both security features, Outlook will interrupt the process with security prompts, and the bot cannot continue.

* ✅ Recovery Email is set — 👉 [Set Recovery Email](/guide/dexcore-guide-es/modules/outlook-hotmail/features/set-recovery-email.md)
* ✅ 2FA is set — 👉 [Set 2FA](/guide/dexcore-guide-es/modules/outlook-hotmail/features/set-2fa.md)
* ✅ Forward/Redirect column in your task file is filled with your master email addresses
* ✅ Task file 2FA keys and recovery email data are up to date
  {% endhint %}

***

## Forwarding vs. Redirect — What's the Difference?

{% hint style="info" %}
**Think of it like mail:**

**Forwarding** = Someone gets your letter, puts it in a new envelope, writes "Forwarded from: \[original sender]" on it, and sends it to you. You know it's forwarded.

**Redirect** = Someone takes your letter and sends it directly to you, as if it was addressed to you all along. You can't tell it was redirected.
{% endhint %}

|                  | Forwarding                                  | Redirect                                      |
| ---------------- | ------------------------------------------- | --------------------------------------------- |
| **Subject line** | Adds `FW:` in front                         | No change                                     |
| **Sender**       | Shows original sender + "forwarded" note    | Looks like the email was sent directly to you |
| **Use when**     | You want to know which emails are forwarded | You want clean, normal-looking emails         |

***

## How to Use

1. Open your task file in Ron's CSV Editor.
2. Fill in the **Forward/Redirect** column with the master email for each account.
3. Save the task file.
4. In DexCore, click the **Settings** button to open the rule parameters.
5. Choose **Forwarding to** or **Redirect to** (and any other options you need).
6. Start the task.

{% hint style="success" %}
You can use a different master email for each account. We recommend no more than **100 accounts per master email** to avoid delivery delays. 👉 [Master Emails best practices](/guide/dexcore-guide-es/setup/best-practices/master-emails.md)
{% endhint %}

***

## Settings Parameters

Click the **Settings** button to open these options:

> **Rule Name** — A name for the forwarding rule (just for your reference, so you can identify it if you log into the account). One name can be used for all rules.

> 🗹 **Remove old rule** — Deletes any existing forwarding rule when setting the new one. Keep this ON to avoid piling up old rules.

{% hint style="danger" %}
**Remove old rule deletes ALL existing forwarding rules on the account** — including rules created by other tools (AYCD, Skyridge, manual setup). Make sure you want to replace everything before enabling this option.
{% endhint %}

> 🗹 **Stop processing more rules** — Disables old rules (without deleting them), making your new rule the only active one.

> 🗹 **Auto confirm recovery** — When Outlook asks for the recovery email name to verify identity, the bot enters it automatically. Keep this ON.

> 🗹 **Forwarding to** — Forwards emails with the `FW:` prefix and shows the original sender info.

> 🗹 **Redirect to** — Forwards emails WITHOUT the `FW:` prefix. Emails look like they were sent directly to your master inbox.

> 🗹 **Disable App Forwarding** — Turns off any forwarding set up through the Outlook web app (not rules). Use this to stop secret forwarding that the account seller may have set up — **prevents data leaks**.

> 🗹 **Set junk address** — Blacklist specific senders or domains. Enter a full address (`test@domain.com`) or just the domain (`domain.com` without `@`).

> 🗹 **Set trusted address** — Whitelist specific senders or domains. Same format as junk address.

> 🗹 **Set reliable mailing lists (rarely used)** — Whitelists mailing list addresses so newsletters always land in the inbox instead of spam.

***

## Critical Warnings

{% hint style="warning" %}
**Avoid logging into the account manually** (browser or Outlook app) after setting forwarding rules — it can disable the rules. This is a known Microsoft behavior.

Check emails through your **master email inbox** instead.
{% endhint %}

{% hint style="warning" %}
If you accidentally logged in manually and rules got disabled:

1. Log into the account
2. Go to Mail → Rules
3. Turn the rule OFF and then ON again
4. **OR** re-run Set Rule via DexCore
   {% endhint %}

***

## OTP Timeout — `WaitOTPCountMin`

This setting controls how long the bot waits for an OTP code when Outlook asks for security verification during the rule setup.

**Default: 10 minutes.**

{% hint style="info" %}
**How it works:** The bot waits the set amount of time for the OTP code to arrive. If no code comes within that time, it tries again. Each account gets **3 attempts** total. After 3 failed attempts, the bot logs **"OTP didn't come"** for that account — 👉 [Errors & Info](/guide/dexcore-guide-es/modules/outlook-hotmail/errors-and-info.md).
{% endhint %}

{% hint style="success" %}
**When to increase this value:** If your IMAP server is slow or overloaded, OTP codes may arrive late. Increase `WaitOTPCountMin` to give the bot more time to wait between retries.
{% endhint %}

***

## Common Mistakes

{% hint style="danger" %}

* ❌ Bot stops silently with no error — two possible causes:
  * **Dead proxies** → replace proxies in `proxy.txt` and restart 👉 [Proxies Best Practices](/guide/dexcore-guide-es/setup/best-practices/proxies.md)
  * **States already set from a previous run** → clear states and restart 👉 [States Explanation](/guide/dexcore-guide-es/modules/outlook-hotmail/states.md)
* ❌ Running Set Rule without setting 2FA and Recovery Email first — **will fail**
* ❌ Logging into the account manually after setting rules — **disables forwarding**
* ❌ Forwarding more than 100 accounts to one master email — causes delivery delays
* ❌ Forgetting to fill the Forward/Redirect column in the task file
* ❌ Not enabling "Disable App Forwarding" — old seller forwarding may leak your data
  {% endhint %}
