Skip to content

Troubleshooting

A tool answers 401 or 403

401: the token is invalid, revoked or expired. Create a new one in MailFlow and sign in to the connector again. 403: usually the token lacks a scope, and the message names it.

Connected, but every call says "Not authenticated"

Something that is no MailFlow token was passed on. Take static_tokens out of sesamcp.yaml and restart Sesamcp; then sign in again, or remove and add the connector.

MailFlow won't create a token

With Authentik as the provider, MailFlow may say "Sign in again at your provider to confirm" while Authentik never asked for your password. Sign out of Authentik itself, sign in to MailFlow and confirm again. Signing out of MailFlow only is not enough.

sequenceDiagram
  actor P as You
  participant M as MailFlow
  participant A as Authentik
  P->>M: Confirm, first time
  M->>A: ask for the password again
  A->>P: password, please
  A-->>M: a login made just now
  Note over M: accepted
  P->>M: Confirm, later in the same session
  M->>A: ask for the password again
  A-->>M: the old login, without asking
  Note over M: refused: older than 60 seconds

Compare the two halves: the second time Authentik doesn't ask. It remembers the login it replaced and never forgets it (goauthentik/authentik#27825, seen with 2026.8.7; for MailFlow's side, maathimself/mailflow#835).

The client can't connect, the proxy logs "unexpected EOF"

Version 0.2.2 cut off every answer. Use 0.3.0 or later.

Claude describes tools that are out of date

claude.ai keeps the server's instructions from when the connector was added. Remove the connector and add it again.