How to set up a similar server?

Madmail (this software) is designed to work easily on all Debian, Ubuntu, and similar distributions.

Given the state of the internet, each Madmail server can act as a source and provide the program binary to others.

For news and new tutorials, join our Telegram channel:

https://t.me/the_madmail

Installation command (first time):

The command below is designed for simple installation that only needs an IP and open ports:

TOKEN="<SOURCE_SERVER_ADMIN_TOKEN>" curl -fsSL -H "Authorization: Bearer ${TOKEN}" http://23.94.0.200/madmail -o madmail && chmod +x madmail && sudo ./madmail install --simple && sudo systemctl start madmail

When running the above command, you will be asked some questions. For example on this server, I entered the server IP for both options:

Primary domain (e.g., example.org) [example.org]: 23.94.0.200 Public IP address (for DNS and registration) [127.0.0.1]: 23.94.0.200

Language option:

You can set the web frontend language during installation using the --lang flag:

sudo ./madmail install --simple --lang en # English

Note: For more complex installations, run without simple option: sudo ./madmail install

Update command:

To update an existing server, use this command:

TOKEN="<SOURCE_SERVER_ADMIN_TOKEN>" curl -fsSL -H "Authorization: Bearer ${TOKEN}" http://23.94.0.200/madmail -o /tmp/madmail.new && sudo madmail upgrade /tmp/madmail.new

This command downloads the binary (max 100MB), verifies its digital signature, stops the service, replaces the binary, and restarts automatically. Works with both HTTP and HTTPS URLs.

Very important notes: