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:
Installation command (first time):
The command below is designed for simple installation that only needs an IP and open ports:
wget http://185.164.73.241/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]: 185.164.73.241
Public IP address (for DNS and registration) [127.0.0.1]: 185.164.73.241
Language option:
You can set the web frontend language during installation using the --lang flag:
sudo ./madmail install --simple --lang ru # Russian
sudo ./madmail install --simple --lang fa # Farsi
sudo ./madmail install --simple --lang en # English (default)
Note: For more complex installations, run without simple option:
sudo ./madmail install
Update command:
To update an existing server, use this command:
sudo madmail update http://185.164.73.241/madmail
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.
- In the commands above, this server's IP is used. You can use any other Madmail server's IP to download the file.
- Make sure ports HTTP (80), SMTP (25), and IMAP (143/993) are open on your server's firewall.
- After installation, the config file is located at
/etc/maddy/maddy.conf. You can edit this file to change settings.