Basic Install
The following guide will walk you through the steps to install AliasVault on your own server. Minimum experience with Docker and Linux is required.
- Basic Install
1. Basic Installation
To get AliasVault up and running quickly, run the install script to pull pre-built Docker images. The install script will also configure the .env file and start the AliasVault containers. You can get up and running in less than 5 minutes.
Hardware requirements
- Linux VM with root access (Ubuntu or RHEL based distros recommended)
- 1 vCPU
- 1GB RAM
- 16GB disk space
- Docker
- Docker CE (minimum version 20.10)
- Docker Compose (minimum version 2.0)
- Refer to the official installation instructions: https://docs.docker.com/engine/install/
Installation steps
- Download the install script to a directory of your choice. All AliasVault files and directories will be created in this directory.
# Download the install script curl -L -o install.sh https://github.com/lanedirt/AliasVault/releases/latest/download/install.sh
- Make the install script executable.
chmod +x install.sh
- Run the installation wizard.
./install.sh install
Note: AliasVault binds to ports 80 and 443 by default. If you want to change the default AliasVault ports you can do so in the
.env
file. Afterwards re-run the./install.sh install
command to restart the containers with the new port settings. - After the script completes, you can access AliasVault at:
- Client:
https://localhost
- Admin:
https://localhost/admin
- Client:
Note: if you do not wish to run the
install.sh
wizard but want to use Docker commands directly, follow the manual setup guide. We do however encourage the use ofinstall.sh
as it will guide you through all configuration steps and allow you to easily update your AliasVault server later.
2. SSL configuration
The default installation will create a self-signed SSL certificate and configure Nginx to use it.
You can however also use Let’s Encrypt to generate valid SSL certificates and configure Nginx to use it. In order to make this work you will need the following:
- A public IPv4 address assigned to your server
- Port 80 and 443 on your server must be open and accessible from the internet
- A registered domain name with an A record pointing to your server’s public IP address (e.g. mydomain.com)
Steps
- Run the install script with the
configure-ssl
option./install.sh configure-ssl
- Follow the prompts to configure Let’s Encrypt.
Reverting to self-signed SSL
If at any point you would like to revert to the self-signed SSL certificate, run the install script again with the configure-ssl
option and then in the prompt choose option 2.
3. Email Server Setup
AliasVault includes a built-in email server that allows you to generate email aliases on-the-fly for every website you use, and receive the and read the emails straight in AliasVault.
Note: If you skip this step, AliasVault will default to use public email domains offered by SpamOK. While this still works for creating aliases, it has privacy limitations. For complete privacy and control, we recommend setting up your own domain. Learn more about the differences between private and public email domains.
Requirements
- A public IPv4 address with ports 25 and 587 pointing to your AliasVault server
- Open ports 25 and 587 on your server firewall for email SMTP traffic.
Verifying Port Access
Use telnet
to confirm the ports are reachable on your public IP:
# Test standard SMTP port
telnet <your-server-public-ip> 25
# Test secure SMTP port
telnet <your-server-public-ip> 587
If successful, you’ll see a connection establishment message. Press Ctrl+C to exit the telnet session.
Choose your configuration: primary domain vs subdomain
AliasVault can be configured under:
-
A primary (top-level) domain Example:
your-aliasvault.com
. This allows you to receive email on%alias%@your-aliasvault.com
. -
A subdomain of your existing domain Example:
aliasvault.example.com
. This allows you to receive email on%alias%@aliasvault.example.com
. Email sent to your main domain remains unaffected and will continue arriving in your usual inbox.
a) Setup using a primary domain
DNS Configuration
Configure the following DNS records on your primary domain (e.g. your-aliasvault.com
):
Name | Type | Priority | Content | TTL |
---|---|---|---|---|
A | <your-server-public-ip> | 3600 | ||
@ | MX | 10 | mail.your-aliasvault.com | 3600 |
Replace
<your-server-public-ip>
with your actual server IP.
Example
mail.your-aliasvault.com
points to your server IP.- Email to
@your-aliasvault.com
will be handled by your AliasVault server.
b) Setup using a subdomain
DNS Configuration
Configure the following DNS records on your subdomain setup (for example, aliasvault.example.com
):
Name | Type | Priority | Content | TTL |
---|---|---|---|---|
mail.aliasvault | A | <your-server-public-ip> | 3600 | |
aliasvault | MX | 10 | mail.aliasvault.example.com | 3600 |
🔹 Explanation:
mail.aliasvault
creates a DNS A record formail.aliasvault.example.com
pointing to your server IP.- The MX record on
aliasvault.example
tells senders to send their mail addressed to%@aliasvault.example.com
tomail.aliasvault.example.com
.
Replace
<your-server-public-ip>
with your actual server’s IP address.
Example
mail.aliasvault.example.com
points to your server IP.- Emails to
user@aliasvault.example.com
will be handled by your AliasVault server.
This keeps the email configuration of your primary domain (example.com
) completely separate, so you can keep receiving email on your normal email addresses and have unique AliasVault addresses too.
Configuring AliasVault
After setting up your DNS, continue with configuring AliasVault to let it know which email domains it should support.
- Run the email configuration script:
./install.sh configure-email
- Follow the interactive prompts to:
- Configure your domain(s)
- Restart required services
- Once configured, you can:
- Create new aliases in the AliasVault client
- Use your custom domain(s) for email addresses
- Note: you can configure the default domain for new aliases in the AliasVault client in Menu > Settings > Email Settings > Default Email Domain
- Start receiving emails on your aliases
Important: DNS propagation can take up to 24-48 hours. During this time, email delivery might be inconsistent.
If you encounter any issues, feel free to join the Discord chat to get help from other users and maintainers.
4. Configure Account Registration
By default, AliasVault is configured to allow public registration of new accounts. This means that anyone can create a new account on your server.
If you want to disable public registration, you can do so by running the install script with the configure-registration
option and then choosing option 2.
./install.sh configure-registration
Note: disabling public registration means the ability to create new accounts in the AliasVault client is disabled for everyone, including administrators. Accounts cannot be created outside of the client because of the end-to-end encryption employed by AliasVault. So make sure you have created your own account(s) before disabling public registration.
5. Configure IP logging
By default, AliasVault is configured to log (anonymized) IP addressses for all authentication attempts. This is used to monitor and combat potential abuse. However for privacy reasons the last octet of the IP address is anonymized, e.g. the IP address 127.0.0.1
is logged as 127.0.0.xxx
. This is to prevent an IP address directly being linked to an individual person or household.
If you want to entirely disable IP logging, you can do so by running the install script with the configure-ip-logging
option and then choosing option 2.
./install.sh configure-ip-logging
Note: disabling IP logging means the ability to monitor and track abusive users on your AliasVault server is disabled.
6. Troubleshooting
Verbose output
If you need more detailed output from the install script, you can run it with the --verbose
option. This will print more information to the console.
./install.sh install --verbose
Troubleshooting guide
For more detailed troubleshooting information, please refer to the troubleshooting guide.