Running on port 80 (http) or 443 (https)

{% notice info %} Although it is possible to run on port 80, we do not recommend it. {% /notice %}

The default port maile runs on is 8080 and at some point you might want to run the application on port 80443.

Automated SSL certificate

Maile can automatically go up and create it’s own SSL certificate, run on https in no time. If port

Behind Cloudflare

Simplest option to run maile with SSL is to put the application behind cloudflare. After installing the maile application, set the port in the configuration file to 80.

hostname = "localhost"
port = 80
autoupdate = true

Behind Nginx

The more complicated but more versatile option is to run maile behind an Nginx instance. This requires you to have some knowloadge of editing configuration files.

maile executable

We don’t run Maile as root to keep things as secure as possible. To allow a non-root user to listen on port 80 or 443, we must allow the executable to do so:

$ sudo setcap cap_net_bind_service=+ep ./maile