mykb - A collection of random software

PreRequisites

  1. A domain name provider (EPIK, etc)
  2. A VPS provider (vultr, etc)

Set DNS Records

  1. Get the IP of your server from your VPS provider.
  2. Enable Reverse DNS for IPv6
  3. Enter the IP in to the DNS system interface of you DNS provider.
    • Enable IPv4 and IPv6 this way.

Server

Website

RSYNC command

rsync -uvrP --delete-after LOCAL root@HOSTNAME.xyz:/var/www/name/

CERTBOT

Run certbot --nginx and follow the hints on the screen. It guides you quite detailed through the procedure. Make sure that in the end you select the port-forwarding.

MAIL

Use emailwiz from lukesmith.xyz/emailwiz.sh and run using internet page and replace guest.guest with domainname

Copy the output to the txt records on epik.com with mail._domainkey.HOSTNAME.xyz

Add the wanted user using useradd -G mail -m username and add password use passwd username

To enable the email to pass, you need to set the firewall correctly. Next to the ports listed below, sometimes port 25 can be probelmatic. Make sure to use ufw to open these ports and also use your VPS interface to open these ports if necessary.

Server Protocol Port Handshake Role
mail.HOSTNAME.xyz SMTP 587 STARTLS Outgoing
mail.HOSTNAME.xyz IMAP 993 TSL/SSL Incoming

Also set the MX records on you dns service provider and let it point to mail.HOSTNAME.xyz.

Possible Hickups on the way