Giter Club home page Giter Club logo

docker-mailman's Introduction

Docker Mailman

All in one Docker image for GNU Mailman.

Install:

git clone https://github.com/avillalba96/docker-mailman.git
cd docker-mailman
#edit env
docker-compose --compatibility up -d; docker-compose logs -ft --tail=35

Use:

  • Web site:
localhost:8080/listinfo
  • Generate list:
  1. before, generate the list from the web

  2. Exec

docker exec -it mailman sh -c "/usr/lib/mailman/bin/genaliases -q > /etc/aliases.mailman && newaliases"
  • Test list
docker exec -it mailman sh -c "mail -s 'Test' [email protected] < '/etc/hosts'"
#swaks --to "[email protected]" --from "[email protected]" --server "localhost:25"
  • Del list:
docker exec -it mailman sh -c "/usr/lib/mailman/bin/rmlist -a LIST"
docker exec -it mailman sh -c "/usr/lib/mailman/bin/genaliases -q > /etc/aliases.mailman && newaliases"
  • Migrate mailman:
rsync -avz /var/lib/mailman/lists user@docker-server:/PATH/mailman-cfg/lib/mailman
rsync -avz /var/lib/mailman/archives user@docker-server:/PATH/mailman-cfg/lib/mailman
#rsync -avz /var/lib/mailman/data user@docker-server:/PATH/mailman-cfg/lib/mailman
chown -R root.list mailman-cfg/lib/mailman/
docker exec -it mailman sh -c "/usr/lib/mailman/bin/genaliases -q > /etc/aliases.mailman && newaliases"
docker exec -it mailman sh -c "/usr/lib/mailman/bin/withlist -l -r fix_url LIST -u NEW_URL"

Environment Configs:

  • MAILMAN_URLHOST - Mailman url host eg www.example.com:8080
  • MAILMAN_EMAILHOST - Mailman email host eg example.com
  • MAILMAN_ADMINMAIL - Mailman administrator email address eg [email protected]
  • MAILMAN_ADMINPASS - Mailman administrator password
  • MAILMAN_LANGUAGE - Mailman language

SSL options for opportunistic SMTP TLS:

  • MAILMAN_SSL_CRT - SSL Certificate (optional)
  • MAILMAN_SSL_KEY - SSL Key (optional)
  • MAILMAN_SSL_CA - SSL CA (optional)

Source:

https://github.com/macropin/docker-mailman

docker-mailman's People

Contributors

avillalba96 avatar

Watchers

 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.