GithubHelp home page GithubHelp logo

docker's Introduction

Manually:

  docker run -d --name syslog -v /tmp/syslogdev:/dev loophole/syslog
  docker run -d --name mx-data loophole/smtp-data
  docker run -d --name mx --volumes-from mx-data -v /tmp/syslogdev/log:/var/spool/postfix/dev/log -p 25:25 -e "mydestination=mydomain.tld" loophole/smtp-private
  docker run -d --name sshd --volumes-from mx-data -p 2697:22 loophole/sshd-private`

Automagically: docker-compose up -d

The idea is to set up users, passwords, secrets in private images. The private images are made by running the base image and making and committing chnages.

Example:

  docker run -d --name mx --volumes-from mx-data -v /tmp/syslogdev/log:/var/spool/postfix/dev/log -p 25:25 -e "mydestination=mydomain.tld" loophole/smtp
  exec in and create users, edit aliases, etc
  docker commit mx
  docker tag <image hash from commit> loophole/smtp-private
  docker stop mx && docker rm mx

Intention is to mount maildir remotely via sshfs

Can check mail by execing in to mx, installing mutt, configuring ~/.muttrc for your user as:

set mbox_type=Maildir
set folder="~/mail"
set mask="!^\\.[^.]"
set mbox="~/mail"
set record="+.Sent"
set postponed="+.Drafts"
set spoolfile="~/mail"

mailboxes `echo -n "+ "; find ~/mail -maxdepth 1 -type d -name ".*" -printf "+'%f' "`

macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"

macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"

macro compose A "<attach-message>?<toggle-mailboxes>" "attach message(s) to this message"

and running mutt

docker's People

Contributors

laod avatar

Watchers

 avatar James Cloos avatar

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.