this docker image provides perdition, an imap-proxy service to proxy different imap hosts based on the given domain
git clone https://github.com/guitarmarx/perdition-image.git
cd perditon-image
docker build -t perdition .
docker run -d \
-p 143:143 \
--name perdition \
-e DOMAIN_TARGET_IMAPHOST_PAIR1='<your-domain>,<your-imap-host>:<imap-port>' \
-v <path-to-certifcates>,destination=/srv/certs \
perdition
The parameter DOMAIN_TARGET_HOST_PAIR1=",:" can be incremented to define more than one Domain-Target-IMAPHost-Pair, e.g:
DOMAIN_TARGET_HOST_PAIR1=",:" DOMAIN_TARGET_HOST_PAIR2=",:" DOMAIN_TARGET_HOST_PAIR3=",:"
You need to specify the path to your certs with the param -v,destination=/srv/certs The following certificates are necessary:
- cert.pem
- privkey.pem
- chain.pem