A Mail-in-a-Box with extra capabilities and more customizability. Not just for power users!
Find a file
2022-11-21 01:54:18 +00:00
.github Create FUNDING.yml 2022-03-22 18:23:02 +00:00
api v60.4 2022-11-07 22:07:35 +00:00
conf Import changes from upstream v60 2022-10-16 18:26:39 +01:00
management SMTP Relays: Allow the user to not configure DKIM 2022-11-21 01:50:33 +00:00
setup Hide some unnecessary configuration output 2022-11-21 01:54:18 +00:00
tests Support Ubuntu 22.04 Jammy Jellyfish (#2083) 2022-10-11 21:18:34 -04:00
tools Fix undefined variable 'val' in tools/editconf.py (#2137) 2022-09-17 09:09:00 -04:00
.editorconfig Add some level of style guidance, reformat files 2022-02-04 23:26:24 +00:00
.gitignore Automatically import existing local CA cerificates 2021-02-01 02:20:38 +00:00
.style.yapf Add some level of style guidance, reformat files 2022-02-04 23:26:24 +00:00
CHANGELOG.md v60.1 2022-10-30 08:18:13 -04:00
CODE_OF_CONDUCT.md some improvements suggested by the community 2016-08-15 20:09:05 -04:00
CONTRIBUTING.md Update Vagrant private IP address, fix issue #2062 (#2064) 2022-01-08 18:29:23 -05:00
LICENSE add CC0 1.0 Universal in LICENSE 2014-04-23 15:49:23 -04:00
README.md v60.4 2022-11-07 22:07:35 +00:00
security.md Updates to security.md 2021-10-23 08:57:05 -04:00
Vagrantfile Bump test machine RAM allocation 2022-09-10 16:07:37 +01:00

Power Mail-in-a-Box

Installation (current version: v60.4)

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

  • Configure Power Mail-in-a-Box to use an external SMTP relay;
  • Brand new admin panel (with up-to-date libraries);
  • Perform backups right away from the admin panel;
  • Account quotas support (thanks to @jrsupplee!)
  • Customize TTL's for custom DNS records;
  • Publish OpenPGP keys authoritatively via a WKD server;
    • In the future: Allow usage of OpenPGP keys to encrypt backups;
  • Per-domain nginx configuration;

Goals

  • Easy of use - deployment shouldn't take too many technical details to understand. Power Mail-in-a-Box already comes with default configurations which should be good for most users.
  • Privacy, security and independence - keeping your mail and data safe from advertisers and prying eyes.
  • Accessible customizability - bring the features closer to the people instead of tucking them away in configuration files.
  • Customizability potential - allow for deep customization by power users.
  • Concentration - all the services you need in just one box.
  • Support - support a wide range of operating systems when possible, without compromising the codebase as a whole.
  • Lightweight - should be able to run even with very limited resources.

Non-goals

  • Scalability - this appliance is geared towards individuals and small/mid-sized organizations. If your use case is mission-critical it probably is a better idea to shop for a product that provides support.
  • Portability - I didn't figure out yet a way to easily transition from Mail-in-a-Box to Power Mail-in-a-Box.

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

  • 1 CPU core;
  • 512MB of RAM (at least 1GB is recommended);
  • 10GB of disk;
  • One of the following operating systems:
    • Debian GNU/Linux 11 (Bullseye)
    • Ubuntu LTS 20.04 (Focal Fossa)
    • Ubuntu LTS 22.04 (Jammy Jellyfish)

Legacy Support

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

  • Debian 10 (Buster) <= v56.5

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.

  • Static, public IPv4 (most residential connections do not provide static addresses);
    • If the machine is behind a NAT, manual configuration might be required.
  • Reverse DNS for that IPv4 address (Caution: some cloud providers do not provide this);
  • You should be able to edit the firewall for that address. In particular, outbound port 25 should not be blocked.

Firewall

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

  • 25/tcp
  • 53/tcp
  • 53/udp
  • 80/tcp
  • 443/tcp
  • 465/tcp
  • 587/tcp
  • 993/tcp
  • 995/tcp
  • 4190/tcp

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