/mailserver-docker-vultr

docker-mailserver in vultr using terraform and ansible

Primary LanguageHCL

Important Note: This is only for personal use, don't abuse the service as Vultr is a great vps provider and don't want to get permanently blocked the SMTP port

Prerequisites

Initial configuration

Create a variables.tf file in terraform directory with the following content:


variable "api_key" {
  default = "API_KEY"
}


variable "domain" {
  default = "DOMAIN"
}


variable "ssh_key_path_public" {
  default = "SSH_KEY_PATH.PUB"
}


variable "ssh_key_path_private" {
  default = "SSH_KEY_PATH"
}

Run

To run use the following command:


make run

To destroy


make delete