Hostxpeed
Login Get Started →
Control Panel

How to Set Up Mail Template in HestiaCP

5 min read
24 views
Jun 10, 2026

Prerequisites

Before setting up mail templates, make sure you have:

  • SSH access to your VPS
  • Root or sudo privileges

What are Mail Templates?

Mail templates define email service configurations including anti-spam settings, antivirus, and mail delivery rules.

Template Location

/usr/local/hestia/data/templates/mail/

Available Mail Templates

ls /usr/local/hestia/data/templates/mail/

Common templates:

  • default - Standard mail configuration
  • antispam - Enhanced spam filtering
  • mailonly - Mail-only server config

Assign Mail Template via Web Interface

Step 1: Log in to HestiaCP

https://YOUR_SERVER_IP:8083

Step 2: Navigate to MAIL Section

Click on MAIL in the top menu bar.

Step 3: Edit Domain

Click the gear icon (⚙️) next to your domain.

Step 4: Select Template

Choose a mail template from the dropdown.

Step 5: Save

Click Save to apply.

Assign via SSH

/usr/local/hestia/bin/v-change-mail-domain-template admin example.com antispam

Create Custom Mail Template

Copy default template:

cp /usr/local/hestia/data/templates/mail/default /usr/local/hestia/data/templates/mail/custom

Edit custom settings:

nano /usr/local/hestia/data/templates/mail/custom

Customize spam settings, mail size limits, or delivery rules.

Configure SpamAssassin Level

In mail template, adjust:

spam_level=5
spam_kill_level=10
spam_subject_tag="[SPAM]"

Set Mail Size Limits

message_size_limit=51200000  # 50MB

✅ Mail template has been configured successfully!

Was this article helpful?