https://github.com/spezifisch/docker-test-dovecot
Docker container with Dovecot that generates random mails in different accounts for testing purposes
https://github.com/spezifisch/docker-test-dovecot
docker dovecot imap lmtp testing
Last synced: about 1 month ago
JSON representation
Docker container with Dovecot that generates random mails in different accounts for testing purposes
- Host: GitHub
- URL: https://github.com/spezifisch/docker-test-dovecot
- Owner: spezifisch
- License: other
- Created: 2022-01-01T14:15:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T21:40:05.000Z (over 4 years ago)
- Last Synced: 2024-12-27T17:45:29.855Z (over 1 year ago)
- Topics: docker, dovecot, imap, lmtp, testing
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-test-dovecot
Docker container with Dovecot that generates random mails in different accounts for testing purposes
## Usage
Start the container using the included `docker-compose` file.
The following users are created who get a newly generated mail if their *\Recent* mails are empty:
* a
* b
* c
* d
The following users are created but get *no* mails automatically:
* rxa
* rxb
* rxc
* rxd
The password of each user is `pass`. You can login using IMAP(S) or POP3(S).
**Important:** Don't bind mount your normal `/home` directory into this container because the Maildirs are wiped clean on startup. Use a dedicated volume for `/home` instead, like in the included docker-compose file.
## Why?
I needed a reference to test [mettmail](https://github.com/spezifisch/mettmail/) against.
## Development
This project uses [pre-commit](https://pre-commit.com/). You need working Docker to run the [hadolint-docker](https://github.com/hadolint/hadolint) hook.
```shell
# install it if needed
pip install pre-commit
# install git hook so checks are run before any commit
pre-commit install
# run manually if you want to
pre-commit run --all-files
```