Skip to content

0xboz/digitalocean_email_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigitalOcean Email Server

A simple email server over a DigitalOcean $5/month droplet (Debian 9)

Questions? Join 0xboz's Discord.

mail-tester

Features

  • DKIM enabled verification
  • SPF enabled verification
  • DMARC policy enabled
  • TLS enabled in Postfix
  • 'Catch All' forwarding

Prerequisite

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

How-to

  • Log into DigtialOcean and add a new domain example.com

  • Create a droplet named example.com

  • DNS configuration

    • A Record

      @ DROPLET_IP
      www DROPLET_IP

    • MX Record

      @ example.com

    • SPF TXT Record

      @ "v=spf1 a mx ~all"

    • DMARC TXT Record

      _dmarc "v=DMARC1; p=none"

  • SSH into the droplet and install git

apt install -y git
  • Clone this repo
git clone https://github.com/0xboz/digitalocean_email_server.git
chmod +x -R digitalocean_email_server
cd digitalocean_email_server
  • Initial server setup
./set_up_server.sh
  • Installation
./install_email_server.sh
  • Add DKIM public to DNS record
    • mail._domainkey "v=DKIM1; k=rsa; ..."

DKIM public key is shown at the end of the installation script. A copy is also located at /root/DNS.conf

About

A simple email server over a DigitalOcean droplet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published