No description
Find a file
2022-08-27 22:38:23 +03:00
bot add utils.UnwrapError() to provide meaningful error messages 2022-08-27 22:38:23 +03:00
cmd add custom status message 2022-08-26 16:40:43 +03:00
config add custom status message 2022-08-26 16:40:43 +03:00
e2e add per-room mutex, possibly fixes #8 2022-08-27 22:10:22 +03:00
smtp refactor to context, remove sentry spans 2022-08-25 22:31:12 +03:00
utils add utils.UnwrapError() to provide meaningful error messages 2022-08-27 22:38:23 +03:00
.gitignore Add cover.out to .gitignore 2022-08-26 09:46:15 +03:00
.gitlab-ci.yml lint fixes 2022-08-23 17:56:38 +03:00
.golangci.yml lint; rearrange code 2022-08-23 22:12:11 +03:00
Dockerfile prepare dockerfile 2022-08-22 18:47:53 +03:00
go.mod add custom status message 2022-08-26 16:40:43 +03:00
go.sum add custom status message 2022-08-26 16:40:43 +03:00
LICENSE.md update readme and license 2022-08-22 19:11:00 +03:00
Makefile enable multi-arch build 2022-08-23 14:33:37 +03:00
README.md add custom status message 2022-08-26 16:40:43 +03:00

Postmoogle Matrixko-fi coverage report Go Report Card Go Reference

more about that name

An Email to Matrix bridge

Roadmap

Receive

  • SMTP server
  • Matrix bot
  • Configuration in room's account data
  • Receive emails to matrix rooms
  • Receive attachments
  • 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: moogle
  • POSTMOOGLE_PASSWORD - user password
  • POSTMOOGLE_DOMAIN - SMTP domain to listen for new emails
  • POSTMOOGLE_PORT - SMTP port to listen for new emails

optional

  • POSTMOOGLE_NOOWNER - allow change room settings by any room partisipant
  • POSTMOOGLE_FEDERATION - allow usage of Postmoogle by users from others homeservers
  • POSTMOOGLE_NOENCRYPTION - disable encryption support
  • POSTMOOGLE_STATUSMSG - presence status message
  • POSTMOOGLE_SENTRY_DSN - sentry DSN
  • POSTMOOGLE_LOGLEVEL - log level
  • POSTMOOGLE_DB_DSN - database connection string
  • POSTMOOGLE_DB_DIALECT - database dialect (postgres, sqlite3)
  • POSTMOOGLE_MAXSIZE - max email size (including attachments) in megabytes

You can find default values in config/defaults.go

Where to get

docker registry, etke.cc