This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
README.md.template
63 lines (47 loc) · 2.24 KB
/
README.md.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# dovecot
{{ spec.short_description }}
## How to build the container
```docker build --tag={{ spec.image_repository }} .```
## How to use the {{ spec.envvars.name }} container with enabled IMAP
Command for running {{ spec.envvars.name }} docker container with plain text authentication:
```
docker run -it -e MYHOSTNAME=localhost -e PLAIN_AUTH=yes -e DEBUG_MODE \
-v $(pwd)/root/users:/etc/dovecot/users:Z \
dovecot -d {{ spec.image_repository }}
```
Environment variable DEBUG_MODE is used for debugging proposes
from {{ spec.envvars.name }} point of view.
## ENVIRONMENT VARIABLES
The image recognizes the following environment variables that you can set during initialization
by passing `-e VAR=VALUE` to the Docker run command.
| Variable name | Description |
| :------------------ | --------------------------------------------------------------------|
| `PLAIN_AUTH` | Allows to specify plain text authentication |
| `DEBUG_MODE` | Used for debugging proposes like installation `rsyslog` RPM package |
In case of usage `PLAIN_AUTH` add to run command mapping your user file to ``/etc/dovecot/users` file.
Example format:
```
USER:{{PLAIN}}PASSWD:1000:1000::<mail_directory>
```
Replace USER and PASSWD with your defined user and passwd respectively.
## How to test the {{ spec.envvars.name }} service
Command for testing {{ spec.envvars.name }} container with
is ```openssl```.
For testing example my `users` file looks like:
```
dummy:{PLAIN}redhat:1000:1000::/var/
```
Testing example:
```bash
$ telnet localhost 10143
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
a login dummy redhat
a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE] Logged in
a logout
* BYE Logging out
a OK Logout completed (0.001 + 0.000 secs).
Connection closed by foreign host.
```