No description
Find a file
Slavi Pantaleev 9f3aa3dd68 Add ability to hide sender's email address (hide-sender-address setting)
The configuration setting is called `Hide*` instead of `Show*`, because
it's backward compatible with existing configuration settings.

This is useful for when you setup an email forwarding inbox and you're
always sending to it through the same email address. In that case, you
don't need to see the email address in each Matrix message.

In the future, another similar `bool` setting (`hide-subject`) will land,
which controls whether the email's subject is shown in the final message
or not. That setting can make use of most of the same setup (all of
`handleBooleanConfigurationKey`).
2022-08-23 18:21:23 +03:00
bot Add ability to hide sender's email address (hide-sender-address setting) 2022-08-23 18:21:23 +03:00
cmd add noowner and federation 2022-08-22 22:08:32 +03:00
config add noowner and federation 2022-08-22 22:08:32 +03:00
e2e bugfixes; email parsing; send emails into matrix rooms; e2e tests 2022-08-22 12:28:29 +03:00
smtp refactor mappings getter 2022-08-22 23:24:51 +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 prepare dockerfile 2022-08-22 18:47:53 +03:00
go.mod update deps 2022-08-23 15:45:40 +03:00
go.sum update deps 2022-08-23 15:45:40 +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 noowner and federation 2022-08-22 22:08:32 +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_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)
  • 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