dockerfiles/net/email
Sam Dodrill 41dfd4bf32 Add skeleton of email dockerfile 2015-02-28 09:28:18 -08:00
..
bashfile Add skeleton of email dockerfile 2015-02-28 09:28:18 -08:00
dovecot Add skeleton of email dockerfile 2015-02-28 09:28:18 -08:00
postfix Add skeleton of email dockerfile 2015-02-28 09:28:18 -08:00
Dockerfile Add skeleton of email dockerfile 2015-02-28 09:28:18 -08:00
README.md Add skeleton of email dockerfile 2015-02-28 09:28:18 -08:00

README.md

dockerfile-mailserver

Dockerfile to make mailserver powered by postfix / dovecot .

How to use

  1. 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
  1. Make image.
cd {folder of download files.}
docker build -t 3846masa/mailserver .
  1. 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
  1. Add users
addmailuser user@mail.example.com
Enter user password: 
Retype user password: 
  1. Set mail client

Please check below.

  1. (Delete users)

If you will delete users, type below.

delmailuser user@mail.example.com
  1. Run as background

If you will escape mailserver's terminal, send Ctrl+P and Ctrl+Q.

DO NOT EXECUTE exit!!!!!

  1. Enter mailserver's terminal
docker attach "mailserver"

Mail client settings

Type Port
POP3 110
IMAP 143
SMTP 25 and 587