41dfd4bf32 | ||
---|---|---|
.. | ||
bashfile | ||
dovecot | ||
postfix | ||
Dockerfile | ||
README.md |
README.md
dockerfile-mailserver
Dockerfile to make mailserver powered by postfix / dovecot .
How to use
- Download.
git clone https://github.com/3846masa/dockerfile-mailserver.git
OR
curl -O -L https://github.com/3846masa/dockerfile-mailserver/archive/master.zip
unzip master.zip
- Make image.
cd {folder of download files.}
docker build -t 3846masa/mailserver .
- Make folder and Run
mkdir /mailfolder # Anywhere
docker run -it -v /mailfolder:/home/vmail -p 25:25 -p 110:110 -p 143:143 -p 587:587 --name "mailserver" 3846masa/mailserver
Hostname: mail.example.com
Domainname: example.com
- Add users
addmailuser user@mail.example.com
Enter user password:
Retype user password:
- Set mail client
Please check below.
- (Delete users)
If you will delete users, type below.
delmailuser user@mail.example.com
- Run as background
If you will escape mailserver's terminal, send Ctrl+P and Ctrl+Q.
DO NOT EXECUTE exit
!!!!!
- Enter mailserver's terminal
docker attach "mailserver"
Mail client settings
- Username: user@mail.example.com
- Password: [Password]
- SSL and TLS is not supported.
Type | Port |
---|---|
POP3 | 110 |
IMAP | 143 |
SMTP | 25 and 587 |