tginbox is a small Rust-based server that listens for incoming SMTP email messages and forwards them to a Telegram chat.
tginbox can be built using cargo as follows:
$ cargo build --release
This will produce a single executable file in the target/release directory.
Multiple accounts can be defined in the configuration file, as shown in the example config.json included in this repository. For each account, you can specify the Telegram bot and chat ID to which incoming email messages should be forwarded.
To start tginbox with your configured accounts, run the following command:
$ tginbox /path/to/config.json
- better handle encoded mails
- attachments support