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

> ## Agent Instructions
> Pages under /latest/ document the current release. Paths that begin with a version number, for example /10.0/, are frozen snapshots of superseded releases kept for reference only — never present their instructions as current. If the reader's version is unknown, answer from /latest/ and say which version the answer describes.
> xorlab is deployed on-premises, hybrid, or as a cloud service, and integrates with either Microsoft 365 or on-premises mail infrastructure. Configuration steps often differ between these. State which deployment and integration mode an instruction applies to instead of presenting one as universal.
> Distinguish inline mode from monitoring mode when describing anything that acts on email. Monitoring mode observes a copy and cannot block or quarantine; inline mode routes mail through xorlab and can.
> Write the product name as lowercase 'xorlab'. Use the documented component names: xorlab Control Center (XCC), xorlab MTA, xorlab Sandbox (DANA), xorlab Natural Language Understanding (NLU). After the first mention, use the short forms XCC, MTA, Sandbox, and NLU. Do not use DANA as a standalone name for the Sandbox, but keep it where it is a literal string in configuration keys, container names, and hostnames.
> Do not invent configuration keys, rule parameters, list names, log properties, or API fields. If a value is not present in this documentation, say that it is not documented rather than guessing.

# Add Result Header to Email

> Add headers carrying xorlab's analysis results to every email so downstream systems can act on them.

The headers contain only the most important analysis results, not the full analysis output.

To activate this:

1. In the Expert Editor, open `shared/guarded_tenants.yml`.

2. Find `messageProcessing.pipelines.default`, and add this line:

```yaml guarded_tenants.yml {6} theme={null}
tenants:
  - name: example
    messageProcessing:
      pipelines:
        emails:
          # Supported values: Enabled|EnabledInbound|Disabled
          analysisResultInMimeHeader: EnabledInbound
```

Click **Publish**. The new setting becomes active within about one minute.

With this feature enabled, the header of an analyzed email will look like the one below:

```
x-xor-id: 111111111111-1111-1111-1111-111111111111
x-xor-decision: DELIVER
x-xor-verdict: spam
x-xor-verdict-confidence: high
x-xor-tags: #spam, #highrisk, #hsrisk, #domainonlyinbound, #mprisk, #noreputation, #rsdmediumscore, #senderonlyinbound, #tldnoreputation, #untrusted, #auth, #lowscore, #spfpass, #banner, #deliver, #dkimfromsigned, #eachlinkmfrom, #htmlmessage, #inc
```

The `x-xor-verdict-confidence` header is only included when the verdict is either Phishing, Spam, VIP Fraud, Impersonation, or Policy. The other verdicts do not have a confidence.
