Giter Site home page Giter Site logo

dockerpostfixdovecot's Introduction

Dovecot + Postfix email servers inside Docker

This docker container is aimed to run Postfix and Docker as email server. Inside your application you can receive and manage emails using Dovecot server.

To create email addresses you need MySQL database with tables; add email domains into mail_virtual_domains, add email users to mail_virtual_users.

Pull From DockerHub

docker pull davert/mailserver

Build Container

docker build -t mailserver .  

It is recommended to add environment vars (see below) into your Dockerfile to inject them on build.

Run Container

Container requires access to mysql socket and directory to store emails. It also exposes email ports

docker run -i -t -e APP_HOST=example.com -e DB_NAME=dbname -p 25:25 -p 110:110 -p 143:143 -p 995:995 -p 587:587 -v /var/run/mysqld/:/var/run/mysqld -v /home/vmail:/home/vmail/ mailserver

Environment Vars

  • APP_HOST (required)- email server host
  • DB_NAME (required) - database
  • DB_USER (root) - user to access mysql database
  • DB_PASSWORD - mysql user password

Directories

  • /var/run/mysqld/:/var/run/mysqld/ - MySQL socket
  • /home/vmail/:/home/vmail/ - directory to store emails

dockerpostfixdovecot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dockerpostfixdovecot's Issues

ENV for mynetworks

I would like to be able to configure the subnet that is allowed to use the mailserver

mariadb container

Hi
thank you for this useful programme
How can i connect to mariadb container.

docker run -i -t --link mariadb_single_container:mysql -e APP_HOST=serverha.tk -e DB_NAME=mail -e DB_USER=root -e DB_PASSWORD=ZZr2gSSwKcZsqCiP -p 25:25 -p 110:110 -p 143:143 -p 995:995 -p 587:587 -v /home/vmail:/home/vmail/ mailserver

when i run this command stop here and not continue
;

Running Dovecot + Postfix
Host: serverha.tk (should be set)
Database: mail (should be set)
Available environment vars:
APP_HOST required, DB_NAME required, DB_USER, DB_PASSWORD
postfix/postfix-script: starting the Postfix mail system

please help me
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.