# Email forwarding

> A Lumen address you forward mail to. What arrives there can start your flows.

Source: https://docs.go-lumen.ai/de/reference/connections/email-forward

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Class name** | `email-forward` |
| **Resource** | ConnectorClass (`lumen.ai/v1alpha1`); a workspace creates a Connector with `classRef: {name: email-forward}` |
| **Driver** | `email-forward` |
| **Provides** | `email` |
| **Mode** | push (the outside system pushes data in) |

A workspace adds this connection on the Connections page or with `lumen connect`; credentials are kept in a Secret, never in the flow.

## Einstellungen

Wird unter `config:` im Connector gesetzt.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `address` | string |  | Forward your mail to this address |
| `allowedSenders` | list of string |  | A full address (ana@acme.com) or a whole domain (\*@acme.com). Leave empty to accept mail from anyone. |

Das vollständige JSON Schema dieser Einstellungen: [email-forward.schema.json](https://docs.go-lumen.ai/schemas/connections/email-forward.schema.json).

## Verwendung

```yaml title="connector.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-email-forward
  namespace: tenant-acme
spec:
  classRef: {name: email-forward}
  config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: email-arrives-email-forward-example
  namespace: tenant-acme
spec:
  displayName: "Email forwarding"
  triggers:
    - id: start
      ref: {name: email-arrives}
      connectorRef: {name: my-email-forward}
      next: [notify-in-app]
  nodes:
    - id: notify-in-app
      stepRef: {name: notify-in-app}
      config:
        body: 'Total: {total}'
        title: New invoice from {supplier}
        to: admins
```
