How to Install Excision Mail on Debian Latest?
Excision Mail is an open-source, self-hosted email server that is easy to install and use. In this tutorial, we will show you how to install Excision Mail on Debian Latest.
Prerequisites
Before we begin, you'll need the following:
- A Debian Latest server instance
- A non-root user with sudo privileges
- A domain name
- 2 DNS records pointing to your server IP (A record and MX record)
Step 1: Update your System
Before installing any package, it's a good practice to update your system to the latest version. This can be done by running;
sudo apt update
sudo apt upgrade
Step 2: Install Required Dependencies
Next, we'll need to install several dependencies. Enter the following command to install them:
sudo apt install -y golang-go git gcc build-essential
Step 3: Install Excision Mail
After installing the necessary dependencies, we can proceed with the installation of Excision Mail by running:
go get -u github.com/Excision-Mail/Excision-Mail
This command will download and install the source code of Excision Mail from GitHub. It will also compile the code into an executable binary file.
Step 4: Configure Excision Mail
Before starting the Excision Mail server, we'll need to configure the following environment variables by creating a .env file in the Excision-Mail directory.
cd $HOME/go/src/github.com/Excision-Mail/Excision-Mail
touch .env
nano .env
Add the following content to the .env file:
HOST=my-exc email.example.com
PORT=587
[email protected]
PASSWORD=your_password
SMTP_SERVER=Your_SMTP_server_address
SMTP_PORT=Your_SMTP_server_port
DOMAIN=your_domain.com
Step 5: Start Excision Mail
After configuring Excision Mail, we can now start the server by running:
go run main.go
Step 6: Verify the Installation
To verify that Excision Mail is running correctly, open your web browser and go to https://your_domain.com:2020.
This will take you to the Excision Mail login page, where you can use the username and password you set in Step 4 to log in and access the Excision Mail dashboard.
Step 7: Connect Your Email Client
Now that you have successfully installed Excision Mail, you can connect your email client to the server.
Here are manual configuration settings you should use:
- Incoming mail server - IMAP: mail.your-domain.com, Port: 993
- Incoming mail server - POP: mail.your-domain.com, Port: 995
- Outgoing mail server - SMTP: mail.your-domain.com, Port: 587
Note that the exact settings may vary depending on your email client.
Congratulations! You have successfully installed Excision Mail on Debian Latest.