Back to tutorials
Tutorial

cPanel Email Setup Tutorial (2026): Complete IMAP, SMTP, and Forwarder Configuration Guide for Hosting Clients

Learn how to set up email accounts in cPanel with IMAP, SMTP, forwarders, and autoresponders. Complete tutorial for hosting administrators.

By Anurag Singh
Updated on Jun 11, 2026
Category: Tutorial
Share article
cPanel Email Setup Tutorial (2026): Complete IMAP, SMTP, and Forwarder Configuration Guide for Hosting Clients

cPanel Email Account Creation Basics

Setting up email accounts in cPanel requires understanding the core components: mailboxes, aliases, forwarders, and autoresponders. You'll work primarily through the Email section of cPanel, which provides intuitive interfaces for most common tasks.

Start by logging into cPanel and navigating to the Email Accounts section. This interface shows existing accounts and provides creation tools for new ones.

Before creating accounts, verify your domain's MX records point to your hosting server. Check this in the Zone Editor or contact your DNS provider if records need updating.

Creating New Email Accounts Step-by-Step

Click "Create" in the Email Accounts interface. You'll see fields for username, domain selection, password, and mailbox quota settings.

Choose a strong password containing uppercase, lowercase, numbers, and symbols. Avoid dictionary words or personal information that could be guessed.

Set mailbox quotas based on expected usage. Start with 1GB for light users, 5GB for moderate email volume, or unlimited for heavy users who receive large attachments regularly.

The "Send welcome email with mail client configuration details" option automatically sends IMAP/SMTP settings to new users. Enable this to reduce support requests.

IMAP and POP3 Configuration Settings

Modern email clients require IMAP for multi-device synchronization. POP3 downloads messages to one device, making it less suitable for most users today.

Standard IMAP settings for cPanel hosting:

  • Incoming Server: mail.yourdomain.com
  • Port: 993 (SSL) or 143 (non-SSL)
  • Security: SSL/TLS recommended
  • Authentication: Normal password

For POP3 when needed:

  • Incoming Server: mail.yourdomain.com
  • Port: 995 (SSL) or 110 (non-SSL)
  • Security: SSL/TLS when available

Always use SSL/TLS connections when possible to encrypt email traffic between clients and your server.

SMTP Configuration for Outgoing Mail

Outgoing mail requires SMTP authentication to prevent unauthorized relay usage. Configure these settings in email clients:

  • Outgoing Server: mail.yourdomain.com
  • Port: 587 (recommended) or 465 (SSL) or 25
  • Authentication: Required
  • Username: Full email address
  • Password: Same as mailbox password
  • Security: STARTTLS on port 587, SSL on port 465

Port 587 with STARTTLS provides the best compatibility across networks and ISPs. Many residential ISPs block port 25 to prevent spam.

Enable SMTP authentication in cPanel's Email Authentication section if it's not already active. This prevents your server from being used as an open relay.

Email Forwarders and Aliases Setup

Email forwarders redirect messages from one address to another without storing them locally. Create forwarders in the "Forwarders" section of cPanel.

Common forwarder use cases include:

  • info@domain.com → admin@domain.com
  • sales@domain.com → john@domain.com, mary@domain.com
  • support@domain.com → External ticketing system

Domain forwarders catch all unmatched email addresses and redirect them to a specified destination. Use this carefully as it can create spam delivery issues.

Test forwarders by sending messages to the forwarding address and verifying delivery to destination mailboxes. Check for bounce messages or delivery delays.

Autoresponders for Out-of-Office Messages

Autoresponders send automatic replies to incoming messages. Configure these in cPanel's "Autoresponders" section for vacation messages or acknowledgment emails.

Set start and stop dates to automatically enable and disable autoresponders. This prevents forgotten vacation messages from running indefinitely.

Include specific contact information for urgent matters in autoresponder messages. Mention alternative email addresses or phone numbers when appropriate.

Configure autoresponders to reply once per sender address per day to avoid mail loops and reduce spam-like behavior.

Webmail Access Configuration

cPanel provides three webmail clients: Horde, SquirrelMail, and RoundCube. Access webmail through yourdomain.com/webmail or directly via cPanel.

RoundCube offers the most modern interface with features like drag-and-drop, spell checking, and rich text editing. Most users prefer it over the alternatives.

Configure webmail as a backup access method when desktop clients have issues. Users can always access email through web browsers regardless of device configuration problems.

HostMyCode shared hosting includes unlimited email accounts with all plans, making it easy to set up comprehensive email systems for small businesses.

Email Quota Management and Monitoring

Monitor mailbox usage regularly to prevent quota-related delivery failures. Users receive warnings at 80% and 95% quota usage, but may not always notice them.

Large mailboxes can affect server performance and backup times. Encourage users to delete old messages or increase quotas for legitimate high-volume accounts.

Check the Email Disk Usage section in cPanel for per-account statistics. Sort by usage to identify accounts needing attention.

Consider implementing email archiving policies for business accounts. Automatically delete messages older than specific timeframes or move them to archive folders.

Spam Filtering and Protection Setup

Enable SpamAssassin in cPanel to filter incoming spam automatically. Configure sensitivity levels based on user preferences and false positive tolerance.

SpamAssassin scores emails based on various criteria. Messages exceeding the threshold are marked as spam or deleted automatically depending on your configuration.

Create custom spam filters in the "Email Filters" section for domain-specific rules. Block specific sender addresses, subjects, or content patterns causing problems.

BoxTrapper provides challenge-response spam protection by requiring unknown senders to verify themselves before delivery. Use this for high-priority accounts receiving significant spam.

Mobile Device Email Configuration

Modern smartphones and tablets support IMAP configuration through automatic setup processes. Provide users with server settings for manual configuration when needed.

iOS devices typically work well with standard IMAP/SMTP settings. Android devices may require additional configuration for specific manufacturers' email clients.

Exchange ActiveSync isn't available in standard cPanel installations, but IMAP provides similar functionality for most mobile email needs.

Test mobile configurations by sending test messages in both directions and verifying proper synchronization across devices.

Email Security and SSL Certificate Setup

Install SSL certificates for mail subdomains (mail.yourdomain.com) to encrypt IMAP and SMTP connections. This prevents password interception and message eavesdropping.

Configure DKIM and SPF records to improve email deliverability and prevent spoofing. Most cPanel installations include DKIM generation tools in the Email Authentication section.

Set up DMARC policies to specify how receiving servers should handle messages failing SPF or DKIM checks. Start with a monitoring policy before enforcing strict rejection rules.

Regular security updates for cPanel and the underlying operating system protect against email-related vulnerabilities. HostMyCode managed VPS hosting includes automatic security updates and monitoring.

Troubleshooting Common Email Issues

Check mail logs in cPanel's "Mail Delivery Reports" section when messages aren't being delivered. Look for bounce messages, authentication failures, or quota exceeded errors.

Verify DNS settings if emails aren't reaching external recipients. MX record problems can cause delivery failures or significant delays.

Test email functionality using the "Email Trace" feature to follow message paths through your server. This helps identify where delivery problems occur.

Common authentication issues stem from incorrect username formats. Ensure users enter full email addresses (user@domain.com) rather than just usernames.

Setting up reliable email hosting requires proper server configuration and ongoing maintenance. HostMyCode shared hosting includes pre-configured email services with spam protection, SSL certificates, and technical support to help you manage email systems effectively.

Frequently Asked Questions

How many email accounts can I create in cPanel?

Most hosting plans support unlimited email accounts, but check your specific plan limits. Account quotas and overall disk space may limit practical usage even when account numbers are unlimited.

What's the difference between IMAP and POP3 for email?

IMAP keeps messages on the server and syncs across multiple devices, while POP3 downloads messages to one device. IMAP is recommended for modern email usage patterns with smartphones, tablets, and computers.

Why are my emails going to spam folders?

Poor sender reputation, missing SPF/DKIM records, or content triggers can cause spam filtering. Verify your domain's email authentication records and avoid spam-like content in messages.

Can I use my own domain for email with cPanel hosting?

Yes, cPanel supports email for any domain hosted on your account. Add domains through the "Addon Domains" or "Subdomains" sections, then create email accounts for those domains.

How do I backup email accounts in cPanel?

Use cPanel's backup feature or download mailbox contents through IMAP clients. Regular backups protect against data loss from server issues or accidental deletions.