Simple Dovecot IMAP Service with Postfix to use that as IMAP Archiv or Storage in Mailclients.
1.3K
This is a work in progress.
docker run -it -d --name my_mailstorage -v IMAPSTORAGE:/home -p 25:25 -p 110:110 -p 143:143 -p 465:465 -p 567:567 guenterbailey/mailstorage:latest
In /home is stored the Useraccounts and a hidden directory to restore after container upgrade the useraccounts (the hidden directory is only a helper, then this version has no SQL Database (commin soon...)).
MYHOSTNAME=imap.archiv.local => set in postfix main.cf fileMYDOMAIN=archiv.local => set in postfix main.cf fileMESSAGE_SIZE_LIMIT=10485760 => limit postfix message size (currently only as option in postfix, but my focus is only to use as imap Archive and to send E-Mail)MAILBOX_SIZE_LIMIT=1073741824 => postfix mailbox size limit (has no effect, use dovecot)version: '3'
services:
mailstorage:
restart: always
image: guenterbailey/mailstorage:latest
environment:
- MYHOSTNAME=imap.archiv.local
- MYDOMAIN=archiv.local
- MESSAGE_SIZE_LIMIT=10485760
- MAILBOX_SIZE_LIMIT=1073741824
networks:
- mailbackend
volumes:
- my_mailstorage:/home
ports:
- "25:25"
- "110:110"
- "143:143"
- "465:465"
- "567:567"
networks:
mailbackend:
volumes:
my_mailstorage:
docker exec -it my_mailstorage bash -lc 'sh /addmailuser.sh "USERNAME" "PASSWORD"'
The IMAP user can added with the addmailuser.sh script.
this project is licensed under MIT.
Content type
Image
Digest
Size
107.8 MB
Last updated
about 8 years ago
docker pull guenterbailey/mailstorage