No description
Find a file
2022-08-22 18:43:12 +03:00
bot try to receive attachments 2022-08-22 18:43:12 +03:00
cmd account data only; integrate smtp server; logging 2022-08-21 23:00:20 +03:00
config bugfixes; email parsing; send emails into matrix rooms; e2e tests 2022-08-22 12:28:29 +03:00
e2e bugfixes; email parsing; send emails into matrix rooms; e2e tests 2022-08-22 12:28:29 +03:00
smtp try to receive attachments 2022-08-22 18:43:12 +03:00
utils try to receive attachments 2022-08-22 18:43:12 +03:00
.gitignore wip 2022-08-21 18:41:35 +03:00
.gitlab-ci.yml wip 2022-08-21 18:41:35 +03:00
.golangci.yml wip 2022-08-21 18:41:35 +03:00
Dockerfile wip 2022-08-21 18:41:35 +03:00
go.mod bugfixes; email parsing; send emails into matrix rooms; e2e tests 2022-08-22 12:28:29 +03:00
go.sum bugfixes; email parsing; send emails into matrix rooms; e2e tests 2022-08-22 12:28:29 +03:00
LICENSE.md wip 2022-08-21 18:41:35 +03:00
Makefile wip 2022-08-21 18:41:35 +03:00
README.md try to receive attachments 2022-08-22 18:43:12 +03:00

Postmoogle

An Email to Matrix bridge

Roadmap

Receive

  • SMTP server
  • Matrix bot
  • Configuration in room's account data
  • Receive emails to matrix rooms
  • Receive attachments (untested)
  • Map email threads to matrix threads

Send

  • SMTP client
  • Reply to matrix thread sends reply into email thread
  • Send a message to matrix room with special format to send a new email

Configuration

env vars

mandatory

  • POSTMOOGLE_HOMESERVER - homeserver url, eg: https://matrix.example.com
  • POSTMOOGLE_LOGIN - user login/localpart, eg: scheduler
  • POSTMOOGLE_PASSWORD - user password
  • POSTMOOGLE_DOMAIN - SMTP domain to listen for new emails
  • POSTMOOGLE_PORT - SMTP port to listen for new emails

optional

  • POSTMOOGLE_SENTRY_DSN - sentry DSN
  • POSTMOOGLE_SENTRY_RATE - sentry sample rate, from 0 to 100 (default: 20)
  • POSTMOOGLE_LOGLEVEL - log level
  • POSTMOOGLE_DB_DSN - database connection string
  • POSTMOOGLE_DB_DIALECT - database dialect (postgres, sqlite3)

You can find default values in config/defaults.go

Development

Prerequisites

  • ssmtp
  • configured mailbox test@localhost

Testing

Run send script of the e2e dir with example emails