HTTPS for Zoho Mail Custom Domain

NOTE: You need a server with nginx setup to proxy your custom domain to Zoho.
  1. Point your custom domain to the server with nginx installed using DNS A Record

    A         mail         [your-ip-address]
  2. Configure nginx to proxy pass to Zoho

    server {
        listen 80;
        location / {
  3. Obtain SSL certificate with Certbot

    apt-get install software-properties-common
    add-apt-repository ppa:certbot/certbot
    apt-get update
    apt-get install python-certbot-nginx
    apt-get install python-certbot-nginx
    certbot --nginx
    nginx -t
    systemctl restart nginx
  4. Wait for DNS changes to propagate.