Skip to content

the email is not working #397

@saikanov

Description

@saikanov

Im trying to connect the email channel using imap and smtp, already got the app password and tested it on another script, after i configured i ask the agent to fetch the last email but it failed

Image

and when sent email from another email, i dont see email channel created

Image

this is my config

[messaging.email]
enabled = true

imap_host = "imap.gmail.com"
imap_port = 993
imap_username = "myemail@gmail.com"
imap_password = "app_password"
imap_use_tls = true

smtp_host = "smtp.gmail.com"
smtp_port = 587
smtp_username = "myemail@gmail.com"
smtp_password = "app_password"
smtp_use_starttls = true

from_address = "myemail@gmail.com"
from_name = "Fiqi Gading"

poll_interval_secs = 30
folders = ["INBOX"]

[[bindings]]
agent_id = "main"
channel = "email"

what is it that im missing?

btw i deploy it with docker compose

services:
  spacebot:
    image: ghcr.io/spacedriveapp/spacebot:latest
    container_name: spacebot
    restart: unless-stopped
    ports:
      - "19898:19898"
    volumes:
      - spacebot-data:/data
    environment:
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
      # Optional:
      # - DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}

volumes:
  spacebot-data:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions