Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amanjuman/afdba1e651772bfb9304381a2db9f6d9 to your computer and use it in GitHub Desktop.
Save amanjuman/afdba1e651772bfb9304381a2db9f6d9 to your computer and use it in GitHub Desktop.
EmailDelivery.com ESP Installation Script

Install telnet if not installed

sudo apt install telnet -y

Check if outbound SMTP port is open or not

telnet smtp.google.com 25

Set Hostname

hostnamectl set-hostname fqdn.domain.tld

Install docker

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh

Restart Docker service if not running

sudo service docker restart

Enter root directory

cd ~

Download MTA files (Replace your license key)

curl -L https://api.keygen.sh/v1/accounts/5b5914e5-3f64-439e-af80-b4404f2eb853/artifacts/velocity-install.tgz -H 'Authorization: License YOUR-MTA-LICENSE-KEY' -o velocity-install.tgz

Extract MTA files, Remove tgz file and Enter extracted directory

tar xzvf velocity-install.tgz && rm -rf velocity-install.tgz && cd /root/velocity-install

Create MTA configuration file

sudo nano /root/velocity-install/conf/mta.conf

`

Your ESP platform's installation domain goes here - if SSL is enabled on your platform use https:// instead of http://

Platform URL: https://esp.domain.tld

The management IP can also be used as a sending IP

Management IP: YOUR-SERVER-IP

Attempt STARTTLS encryption

TLS Enabled: yes

Must match the password configured for this Velocity MTA Server in the ESP platform administrator account

MTA Password: YOUR-PASSWORD

This must be your MTA license key, NOT your ESP platform license key

License Key: YOUR-MTA-LICENSE-KEY `

Add list of ip's in configuration file

sudo nano /root/velocity-install/conf/ipaddresses

data (Ff you have multiple IP address, add them)

YOUR-SERVER-IP

Feedbackloop setup

sudo nano /root/velocity-install/conf/receiving_domains

data (enter your PTR records againest those IP's)

fqdn.domain.tld

Load and Restart containers

cd /root/velocity-install && ./load_images.sh && ./restart.sh

Check MTA logs

sudo tail -F /root/velocity-install/logs/velocity.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment