> ## Documentation Index
> Fetch the complete documentation index at: https://docs.emailux.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Assign signatures to teams with rules

> Create rules that give each team or department the right email signature, matching on directory fields or Google groups. The first matching rule wins.

A rule decides which signature a person gets, or whether they get one at all.

## How rules are evaluated

* Rules run in **priority order**, lowest number first.
* The **first matching rule** decides the outcome.
* A rule with **no conditions** matches everyone, so use it last as the default.
* All conditions in one rule must match.

## Actions

| Action | Result |
| - | - |
| **Use signature** | Publishes the chosen signature to matching people. |
| **Ignore** | Skips matching people. Use it for shared accounts, contractors or executives with a custom signature. |

## Conditions

| Type | Example |
| - | - |
| **Group** | The person is in the *Sales* group. |
| **Field equals** | `person.department` equals `Engineering`. |
| **Field contains** | `person.title` contains `Director`. |
| **Field is empty** | `person.mobile` is empty. |

Matching is not case-sensitive.

**1. Open Rules**

Go to **Signatures, Directory, Rules**.

**2. Add a rule**

Name it, set a priority, choose **Use signature** or **Ignore**, and pick the signature.

**3. Add conditions**

Match on a group or a field. Leave conditions empty for a default rule.

**4. Order and save**

Put specific rules first, for example Sales at priority 10 and *Everyone* at priority 100.

> [!TIP]
>
> A signature that appears in a rule or is assigned to a mailbox is marked as assigned in the signature list.

Next: [publish to Gmail](https://docs.emailux.com/signatures/publish-to-gmail.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.