Prerequisites
Before setting up Gmail, make sure you have:
- An email account created in HestiaCP
- A Gmail account (free or Workspace)
- Your domain name and email password
Server Settings
Incoming Mail Server (IMAP):
Server: mail.yourdomain.com
Port: 993
Encryption: SSL/TLS
Outgoing Mail Server (SMTP):
Server: mail.yourdomain.com
Port: 465
Encryption: SSL/TLS
Authentication: Required
Username: info@example.com (full email address)
Password: Your email password
Step 1: Log in to Gmail
Go to https://mail.google.com and log in to your Gmail account.
Step 2: Go to Settings
Click the gear icon (⚙️) in the top right, then See all settings.
Step 3: Go to Accounts and Import Tab
Click on the Accounts and Import tab.
Step 4: Add Email Account
In the "Check mail from other accounts" section, click Add a mail account.
Step 5: Enter Email Address
Enter your full HestiaCP email address, then click Next.
Step 6: Select Account Type
Select Import emails from my other account (POP3) or Link accounts using Gmailify (IMAP).
Choose IMAP for full two-way sync.
Step 7: Enter Server Settings
Fill in:
- Username: Your full email address
- Password: Your email password
- POP/IMAP Server:
mail.yourdomain.com - Port:
993 - Check "Always use a secure connection (SSL) when retrieving mail"
Click Add Account.
Step 8: Enable Send Mail As
After adding incoming mail, Gmail will ask if you want to send mail as this address. Click Yes.
Step 9: Configure Outgoing (SMTP) Settings
- SMTP Server:
mail.yourdomain.com - Port:
465 - Username: Your full email address
- Password: Your email password
- Check "Secured connection using SSL/TLS"
Step 10: Verify
Click Add Account. Gmail will send a verification email to your address. Enter the code or click the link.
Set as Default "From" Address
When composing emails, click the "From" dropdown to select which address to send from.
To set as default:
- Go back to Settings → Accounts and Import
- Next to "Send mail as", click make default
Troubleshooting
Connection Error: Verify mail.yourdomain.com resolves correctly. Use dig mail.yourdomain.com to check.
Authentication Failed: Check if your email client allows less secure apps? Enable 2FA and use App Password instead.
✅ Your HestiaCP email is now accessible from Gmail!