Skip to content

Mail

Every Bot has its own receive-only address, <name>@<mail.domain>, with a generated name such as quiet-amber-heron. The control plane runs a small SMTP listener of its own; what arrives is filed in the Bot’s inbox, where the Bot reads it with its mail tools and its people on its Mail pane.

Nothing is ever sent: no relay, no queue, no bounce. So there is no sender reputation, signing or reverse DNS to look after. This is separate from the Email connector, which signs in to someone’s existing mailbox, and from the Email channel, a conversation by mail.

The settings are under Admin → Settings → Mail.

mail:
domain: bots.example.com # without it there is no mail
# addr: ":2525"
# max_size_mb: 10
# tls_cert: /etc/silo/mail.crt
# tls_key: /etc/silo/mail.key
  • DNS: one MX record, bots.example.com. MX 10 silo.example.com., whose target has an A or AAAA record for this machine. A subdomain used only for Bots keeps it apart from your own mail. With no mail.domain there is no mail at all: nothing is guessed from public_url, because an address no MX record points at would only look real.
  • Port 25: mail servers deliver to port 25 and nowhere else. The listener binds :2525 so the control plane needs no privileges, so publish or forward 25 to it (-p 25:2525, a firewall redirect), or set addr: ":25" where it may bind that. An HTTP proxy, Cloudflare’s proxy or a tunnel does not carry mail: the MX target must reach this machine directly. Many home connections block inbound 25; a VPS normally does not.
  • TLS: STARTTLS is always offered. Mail servers encrypt without checking who signed the certificate, so the self-signed one made at start is enough; set tls_cert and tls_key if you publish MTA-STS or DANE.

Changes apply within seconds, with no restart. If the port cannot be bound, admins see why on a Bot’s Mail pane, and it is tried again.

  • Refused inside the conversation, so no bounce is ever written: a recipient that is not a Bot’s address, a message over max_size_mb, more than 10 recipients, and a sender that keeps naming addresses that do not exist or sends more than 60 messages a minute. A message that could not be stored is answered “try later”, so a restart loses nothing.
  • Verified marks a message whose From domain vouched for it: it signed the message (DKIM), or it lists the sending server and is the envelope sender too (SPF), aligned on the organisational domain as DMARC does. Unverified mail is still delivered, and shown as such to the people and the Bot.
  • Waking the Bot is off by default: mail waits until the Bot is asked to look. On the Bot’s Settings, its people can list senders (addresses or @domains) whose verified mail starts a chat with the message, at most 10 an hour. A forged From address wakes nobody.
  • A mailbox keeps its newest 200 messages. name+anything@domain reaches name.
  • Changing domain moves every address at once; the old domain is refused from then on. A Bot’s people can also give it a new address, after which the old one is refused.
Key Default What it does
mail.enabled true Off removes the listener, the mail tools and the address. Received mail is kept.
mail.domain none What follows the @. A bare domain whose MX record points here.
mail.addr :2525 Where the listener binds, host:port or :port.
mail.max_size_mb 10 The largest message, attachments included (1 to 50).
mail.tls_cert, mail.tls_key self-signed PEM files for STARTTLS.