IMAP Mon
Tool for monitoring IMAP mailboxes and retransmitting received emails via alternative channels
Quick start
- Create a file
docker-compose.override.ymlor updatedocker-compose.ymlwith environment variables defined below. - Start the app with:
docker-compose up
Settings
Some options can be set via an environment variable (real or dotenv) or a command line flag.
| Environment variable name | Command line flag | Required | Description |
|---|---|---|---|
IMAP_HOSTNAME |
--hostname/-h |
☑️ | IMAP server hostname |
IMAP_USERNAME |
--username/-u |
☑️ | IMAP username |
IMAP_PASSWORD |
--password/-p |
☑️ | IMAP password/key/token |
CHANNELS |
--channel/-c |
☑️ | Channel to retransmit messages |
TELEGRAM_BOT_TOKEN |
--telegram-bot-token |
☑️/✖️ | Telegram Bot Token |
TELEGRAM_CHAT_ID |
--telegram-chat-id |
☑️/✖️ | Telegram Chat ID (channel ID, group ID or @username) |
SENTRY_DSN |
--sentry-dsn |
✖️ | Sentry DSN |
LOG_LEVEL |
--log-level/-l |
✖️ | Log level for console messages |
Examples
- Get help:
imapmon --help - Passing parameters via a command-line:
imapmon --hostname imap.example.com -u user@example.com -p qwerty123 -c telegram --telegram-bot-token "1234567890:EtneWwZtnEibpH6WZVsnZimbPXZLRurw" --telegram-chat-id "12345678"
- Passing parameters via environment variables:
export IMAP_HOSTNAME=imap.example.com export IMAP_USERNAME=user@example.com export IMAP_PASSWORD=qwerty123 CHANNELS=telegram TELEGRAM_BOT_TOKEN=xxx TELEGRAM_CHAT_ID=123 imapmon
- Run using a pre-built Docker image:
docker run --rm -it \ docker.pkg.github.com/soar/imapmon/imapmon:latest \ --hostname imap.example.com \ -u user@example.com \ -p qwerty123 \ ...
Metadata
Release files for imapmon 0.6.70
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imapmon-0.6.70.tar.gz | 4.0 kB | Without provenance | Details for imapmon-0.6.70.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imapmon-0.6.70-py3-none-any.whl | Python 3 | none | any | Details for imapmon-0.6.70-py3-none-any.whl |
Total release size: 8.5 kB
Release files / imapmon-0.6.70.tar.gz
| Download URL | imapmon-0.6.70.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93f287e3fa64af06ce267b5ef5197ac18e22740fa0282055f2b3de68bc8ded05
|
|
BLAKE2b-256 checksum How to use checksums |
369f2cd5efb08969834aa5bcef97e02dd813cfed31c5130e4bb72a8f95f184ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|
Release files / imapmon-0.6.70-py3-none-any.whl
| Download URL | imapmon-0.6.70-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98eeb0046328bf3d4878556c4240385c7a1d08eabfe6ebe3a6825829041f51a4
|
|
BLAKE2b-256 checksum How to use checksums |
022e776a0142f51153650ac21cb62d2bc256d15cc212523287e7e4310d4ca9a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.13
|
Security for imapmon 0.6.70
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.