motorscript.com

HTTPS for Zoho Mail Custom Domain

Published:
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;
        server_name mail.your-domain.com;
        location / {
    	proxy_pass https://mail.zoho.com/biz/customlogin?rd=your-domain.com;
    }
  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.