ddavness / power-mailinabox

A Mail-in-a-Box with extra capabilities and more customizability. Not just for power users!
Creative Commons Zero v1.0 Universal
168 stars 31 forks source link
debian mail mail-in-a-box mailinabox mailserver power-miab smtp

Power Mail-in-a-Box

Installation (current version: v60.5)

Upgrading Quick Start

ko-fi

Power Mail-in-a-Box (a fork of Mail-in-a-Box) is a complete pre-configured mail appliance, quickly deployable in a matter of minutes.

It's main difference to the main project is focused on ad-hoc, advanced features. While Mail-in-a-Box caters to beginners by providing sane configurations, Power Mail-in-a-Box also attempts to cater to advanced users that want deeper levels of customization.

Features

Goals

Non-goals

Minimum Pre-requisites

The machine this appliance will be installed on needs to have the following specs (or better). Most cloud providers are able to provide VM's that satisfy these specs at relatively low cost.

These specs depend on the number of users being served and/or amount of traffic

Legacy Support

The following distributions are no longer supported for the latest version, but they used to be supported at a earlier time:

These network requirements are usually not provided by residential ISP's. They are not strictly required for Power Mail-in-a-Box to install, but it will take more work to get it running as intended.

Firewall

If the machine is behind an external firewall or NAT, the following inbound ports SHOULD be open to external traffic:

Installation

  1. Power Mail-in-a-Box uses ufw to configure it's internal firewall. If your cloud provider requires you to use another tool (usually it does not, but *cough* Oracle Cloud *cough*), you can follow these instructions.

  2. Make sure curl is installed and locales are configured correctly - you'll want to make sure the primary locale is set to en_US.UTF-8:

    sudo apt install curl locales
    sudo dpkg-reconfigure locales
  3. Run the following command, and then follow the instructions that appear on the screen:

    curl -L https://power-mailinabox.net/setup.sh | sudo bash

Upgrading

To upgrade an existing box to the latest version, run the same command as you do to perform a new installation:

curl -L https://power-mailinabox.net/setup.sh | sudo bash

Installing or upgrading to a different version

If for some reason you wish to install a different version (for example, an older version for a workaround, or a beta/release candidate version for testing), you can use the following command.

curl -L https://power-mailinabox.net/<VERSION>/setup.sh | sudo bash

Where <VERSION> is the version you want to install. (Example: v60.0).

⚠️ Downgrading might not always be possible and is not supported! Make sure you know what you're doing before doing so.