Email forwarding
An email forwarding connection is an address that belongs to your workspace. You forward the mail you want handled to it, and every message that arrives can start a flow. Nothing in your own mailbox is read, moved or deleted.
Use forwarding when you can add a rule in your mail client or on your mail server. If you cannot (for example, you may not change mail rules, or you want Lumen to read a mailbox that already exists), connect the mailbox instead: see Gmail and mailboxes.
Create the address
You need to be a workspace admin. The address is made for you; you do not pick it.
- Console
- YAML
- In the sidebar, open Connectors. The page is titled Connections.
- Click Add connection and choose Email forwarding.
- Optionally give it a Name, such as
Supplier invoices. Without one, the connection is named by its address. - Under Allowed senders, type an address (
dana@acme.example) or a whole domain (*@supplier.example) and press Enter. Repeat for each one. Leave it empty to accept mail from anyone. - Click Add Email forwarding. The new connection opens with Forward your mail to this address, and a Copy address button.
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: forwarding-suppliers
namespace: tenant-acme
spec:
classRef: {name: email-forward}
config:
allowedSenders: ["*@supplier.example", dana@acme.example]
Lumen writes the address into config.address when the connection is created, and it never changes after that. Read it back with lumen get connectors forwarding-suppliers -o yaml.
Delete the connection and create it again and you get a different address, and everyone who forwards to the old one has to change. Mail sent to a deleted address is accepted and thrown away, with no bounce, so nobody notices.
Forward your mail to it
In your mail client or mail server, add a forwarding rule that sends a copy to the address. Narrow it with a filter so only the messages you want are sent: for example, mail from your suppliers, or mail with an attachment.
In Gmail, open Settings, then Forwarding, then Add a forwarding address, and use a filter to choose which messages go.
Check that it works: open the connection and click Setup steps, then send one message to the address. It appears under Recent mail within seconds, with an icon that says whether it was accepted or refused, and why.
Each arrival is kept as a row in that list, so you can see mail that did not start a flow:
| Outcome in Recent mail | Why |
|---|---|
| Accepted | The sender is allowed and the message was read. Whether a flow started is shown on the flow's trigger, under Recent emails. |
| Refused: the sender is not on the allowed list | The address has Allowed senders and this one is not on it. |
| Refused: the sender failed the SPF or DKIM check | The address has Allowed senders and the message could not be verified as coming from that sender. |
| Refused: this address is paused | The connection is paused. |
| Refused: the message could not be read | The message was not valid mail. |
Which senders are accepted
With no allowed senders, anyone who knows the address can start your flows. That is fine for an address only your own mail rules use, and risky for one that is public.
With allowed senders:
- An entry is a full address or
*@domain. Case is ignored. - The sender must also be verified. Lumen does not run SPF, DKIM or DMARC itself. It reads the verdict of the server that received the message, and counts the sender as verified when DMARC passed, or when the domain has no DMARC policy and SPF or DKIM passed for a domain that matches the From address. A message that fails is refused, so a forged From address cannot get through an allow list.
- A sender who is not on the list gets a bounce from their mail server ("This recipient does not accept mail from this sender"). A sender who fails verification gets no bounce, because bouncing a forged message would mail the person it pretends to be.
Without allowed senders the mail is accepted whatever the verdict, and senderVerified is an output of the trigger that a flow can test. See Triggers for Start only when.
To change the list, open the connection, edit Allowed senders and click Save.
