Giter Club home page Giter Club logo

ispmail-bookworm-ansible's Introduction

ISPmail Bookworm Ansible Playbook

This repository contains an Ansible playbook and roles to help set up a mail servers. Please see the instructions at https://workaround.org/ispmail-bookworm

You will find support in the comment section on that web site. Or try our chat room at https://riot.im/app/#/room/#ispmail:matrix.org

Usage

Prepare a (new) server with Debian Bookworm.

Install Ansible and Git:

apt install ansible git

Check that you can login to your new server as root:

ssh root@[IP address of the server]

Clone this Git repository to your local computer.

git clone https://github.com/Signum/ispmail-bookworm-ansible.git

Add your mail server to the hosts file with its IP address (this is just an example):

my.mail.server ansible_ssh_host=[IP address of the server]

Edit the file ansible/group_vars/all to suit your needs:

  • change all the passwords to something different
  • set ispmail_domain to the first email domain you want to start with
  • set ispmail_fqdn to the fully-qualified domain name of the server. It is used for the URL of the webmail and rspamd interface.

…and run:

ansible-playbook ispmail.yml -l my.mail.server

At the end of the playbook you will get a report like:

"Installation complete.",
"",
"Web mail URL:            https://mail.example.com/",
"Example email user:      [email protected]",
"Example email password:  summersun",
"Rspamd admin URL:        https://example.com/rspamd",
"Rspamd admin password:   eiPh4yohghaequuviehiePoh5zeaj"
"DKIM public key :        20230619._domainkey IN TXT ( \"v=DKIM1; k=rsa; \"\n\t\"p=Ze_VERY_LONG_DKIM_KEY_DAQAB\" ) ;"

Run from the new mail server itself

Same as above. But run this command on the server:

ansible-playbook ispmail.yml -c local

What will this do ?

  • Install all necessary packages and configure them
  • Require and install a SSL certificate from Let's encrypt
  • Configure DKIM signing and provide you the public key

ispmail-bookworm-ansible's People

Contributors

signum 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.