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

# Syntax Validation

> RFC 5322 compliant email format validation

## Overview

Syntax validation ensures the email address follows the proper format defined in RFC 5322 (Internet Message Format) and RFC 5321 (SMTP).

<Note>
  This is typically configured as a **BLOCK** check since an email with invalid syntax cannot receive messages.
</Note>

## What It Checks

Syntax validation verifies these components:

<CardGroup cols={2}>
  <Card title="Local Part" icon="user">
    The username portion before the @ symbol
  </Card>

  <Card title="@ Symbol" icon="at">
    Exactly one @ separator required
  </Card>

  <Card title="Domain Part" icon="globe">
    The domain portion after the @ symbol
  </Card>

  <Card title="Character Set" icon="keyboard">
    Valid characters per RFC standards
  </Card>
</CardGroup>

## Common Validation Failures

<AccordionGroup>
  <Accordion title="Missing @ symbol">
    ```text theme={null}
    userexample.com ❌
    user@example.com ✓
    ```
  </Accordion>

  <Accordion title="Multiple @ symbols">
    ```text theme={null}
    user@name@example.com ❌
    user@example.com ✓
    ```
  </Accordion>

  <Accordion title="Whitespace">
    ```text theme={null}
    user @example.com ❌
    john doe@example.com ❌
    user@example.com ✓
    ```
  </Accordion>

  <Accordion title="Missing TLD">
    ```text theme={null}
    user@example ❌
    user@example.com ✓
    ```
  </Accordion>
</AccordionGroup>

## API Response

```json theme={null}
{
  "checks": {
    "syntax": {
      "pass": true,
      "latency": 0.5
    }
  }
}
```

<ParamField path="pass" type="boolean">
  Whether the email syntax is valid
</ParamField>

<ParamField path="latency" type="number">
  Check execution time in milliseconds
</ParamField>

## Configuration

<Card title="BLOCK" icon="ban" color="#ef4444">
  Always configure syntax validation to BLOCK. An email with invalid syntax cannot receive messages.
</Card>

## Next Steps

<CardGroup cols={2}>
  <Card title="MX Records" icon="server" href="/validation/mx-records">
    Verify the domain can receive email
  </Card>

  <Card title="Disposable Detection" icon="trash" href="/validation/disposable">
    Block temporary email services
  </Card>
</CardGroup>
