Web HostingPublished on December 10, 202510 min read

Manage emails on cPanel

The email addresses of your web hosting are created in the client area at dash.ouiheberg.com. The rest of your email management happens on cPanel. This guide shows how to create a mailbox, read your mail and set up an email client. It then moves to cPanel for forwarders, the default address, filters, spam and routing. It covers the mailboxes included with a cPanel hosting plan, not the email service sold separately.


Create a mailbox in the client area

  1. Log in to dash.ouiheberg.com.

  2. In the left-hand menu, click My Services, then your hosting plan.

  3. Open the Mailboxes tab and click Create a mailbox.

  4. Enter the Address and choose the domain, then the Mailbox size.

  5. Type a Password, or click Generate, then click Create.

The mailbox appears in the list. The counter at the top of the card shows how many mailboxes you use out of the number included in your plan. The other tabs of the page are covered in Access cPanel and manage your OuiHeberg web hosting.

Mailbox creation form in dash, next to the Connection settings card


Read your email in webmail

Webmail shows your messages in the browser, with nothing to install. In the Mailboxes tab, click Open webmail. If a login page appears, enter the full mailbox address and its password.

When your domain points to the hosting, webmail also opens from these addresses.

  • https://webmail.mysite.com

  • https://mysite.com:2096

In cPanel, the Check Email button next to each address on the Email Accounts page opens the mailbox without a password. The cPanel webmail is Roundcube. It sorts messages into folders and has an address book and a search tool.

Roundcube webmail in dark mode, in French, with the folders and one cPanel message


Set up an email client

For Outlook, Thunderbird or a phone's Mail app, copy the values from the Connection settings card in the Mailboxes tab.

SettingValue
Incoming (IMAP)the server shown in the card, port 993, SSL
Outgoing (SMTP)the server shown in the card, port 465, SSL
Usernamethe full mailbox address

The password is the mailbox password. The outgoing server asks for the same login details as the incoming one, so turn on SMTP authentication if your client offers it.

In cPanel, the Connect Devices button on the Email Accounts page shows the same settings, over SSL/TLS. It also lists POP3, on port 995. POP3 downloads messages to a single device. Stick with IMAP unless your client doesn't offer it.

  • In Thunderbird, add an existing email account, then switch to manual configuration. Choose IMAP and normal password authentication.

  • In Outlook, add an account, open the advanced options to set it up yourself, then choose IMAP.

  • On iPhone and iPad, add an account of type Other in the Mail settings, then choose IMAP.

  • On Android, add an account of type Other in Gmail or in the phone's email app, then choose IMAP.

With IMAP, your messages stay on the server. Your computer and your phone therefore show the same mailbox.


Manage mailboxes in cPanel

For everything else, use cPanel. Click Advanced panel at the top right of the page. cPanel opens straight away, with no login details to type. The email tools are grouped in the Email section.

Email section of cPanel with Email Accounts, Forwarders, Email Filters and Spam Filters

Create a mailbox in cPanel

  1. Click Email Accounts, then Create.

  2. In Username, type the part before the @, for example contact. If the hosting has several domains, pick the domain to the right of the field.

  3. Under Password, keep Set password now. and type a password, or click Generate.

  4. Click Create.

The other option, Send login link to alternate email address., sends a link to another address so its owner can choose the password. Before you create the mailbox, the Edit Settings button under Optional Settings sets its storage space. This space counts toward the hosting's disk space. At the top of the page, the Available and Used counters show how many addresses you have left.

Change a mailbox password or storage space

In Email Accounts, click Manage next to the address. The page that opens changes the password and the storage space. Save before leaving it. Then type the new password in every client and phone that checks the mailbox.

Delete a mailbox or messages

Deleting a mailbox also erases all of its messages. Copy the ones you want to keep first.

In Email Accounts, tick the box next to the address, click Delete, then confirm.

To free up space without deleting the mailbox, open Email Disk Usage and choose the mailbox. The tool shows the size of each folder. It can delete the messages in a folder by age or by size, or all of them at once. You can also clean up in webmail, then empty the trash.


Forward emails

A forwarder sends the messages received by one address on to another address. It needs no mailbox. For example, you can forward contact@mysite.com to your personal address.

  1. In the Email section, click Forwarders, then the button to add a forwarder.

  2. Type the Address to Forward and choose its Domain.

  3. Under Destination, keep Forward to Email Address, type the destination address, then click Add Forwarder.

The other destination, Discard and send an error to the sender (at SMTP time)., rejects messages with an error message. The Advanced Options send the message to a program, or discard it silently. Avoid that last choice, because nobody will know the message was lost.

Add a forwarder form with the address to forward and the destination

Forward a whole domain

The same page also creates domain forwarders. They send the messages of one domain on to another. A message sent to contact@old-domain.com then reaches contact@mysite.com.

Choose the default address

The default address receives the messages sent to an address that does not exist on your domain, after a typo for example. In the Email section, open Default Address and choose the domain. Then decide what happens to these messages.

  • Reject them with an error message. This is the recommended setting, because the sender learns that the address is wrong.

  • Forward them to an address, known as a catch-all. Nothing is lost, but that address gets a lot of spam.

  • Send them to a program, for advanced use.

  • Discard them silently. This is not recommended, because no error message is sent.

To send a reply while you are away, follow How to create autoresponders in cPanel.


Sort messages with filters

A filter checks every incoming message and applies an action to it. Email Filters works on a single mailbox. Global Email Filters works on every mailbox of the account.

  1. In the Email section, open Email Filters, then the filter management for the mailbox you want.

  2. Create a new filter and give it a name.

  3. Write the rule. It sets the part of the message to check, an operator and a value.

  4. Choose the action, then save.

The rule can check the sender (From), the recipient (To), the subject (Subject), the body (Body), a specific header or the spam status (Spam Status). Operators range from "contains" and "equals" to regular expressions. The action can deliver the message to a folder or redirect it to another address. It can also reject it with an error message, discard it or send it to a program. A last action stops the filters that follow from running.

Two useful examples to start with.

  • To file newsletters, check for a subject that contains newsletter and deliver the message to a Newsletters folder.

  • To set detected spam aside, check for a Spam Status that begins with Yes and deliver the message to a spam folder. This filter needs the spam filter to be on.


Block spam

The Spam Filters tool in the Email section relies on Apache SpamAssassin. It gives every incoming message a score. Above a threshold, the message is marked as spam.

  1. Open Spam Filters.

  2. Check that Process New Emails and Mark them as Spam is on.

  3. Adjust the threshold, the Spam Threshold Score, if needed.

The threshold goes from 1 to 10 and is 5 by default. The lower it is, the stricter the filter. At 1 or 2, genuine messages also end up as spam. Above 8, a lot of spam gets through.

Two options complete the filter. Move New Spam to a Separate Folder (Spam Box) moves spam to a separate folder that you check now and then. Automatically Delete New Spam (Auto-Delete) deletes it automatically.

Automatic deletion also erases genuine messages flagged by mistake. Use the separate folder instead.

Spam Filters page with SpamAssassin processing and the spam threshold

Allow or block a sender

Under Show Additional Configurations, Spam Filters keeps two lists, senders that are always accepted and senders that are always blocked. Each line takes an address, a whole domain or a pattern with *.

# Block a specific address
spam@example.com

# Block a whole domain
*@example.net

# Block by pattern
spam*@*.com

Use an external email service

You can keep the site on the hosting and hand the domain's email over to Google Workspace or Microsoft 365. Two settings then need to change.

  1. Replace the domain's MX records with the ones the service gives you. In the client area, this is done in the hosting's DNS zone tab, with Expert Mode (see How to edit the DNS records of your domain). In cPanel, use the Zone Editor (see Create and manage your DNS records on cPanel).

  2. In cPanel, open Email Routing, choose the domain and select Remote Mail Exchanger.

Without this second setting, the server still thinks it handles the domain. Messages sent from your site, by a contact form for example, then stay on the hosting instead of going to the external service.

Google Workspace now gives a single MX record, smtp.google.com, with priority 1. The older aspmx values are still accepted, according to the Google Workspace help. For Microsoft 365, the value appears in the admin center when you add the domain.

In the client area, the zone's Add a record window offers Google Workspace and Microsoft 365 templates. They add the service's MX records and SPF record in one go.

The other Email Routing choices fit other cases.

  • Automatically Detect Configuration, the default, follows the domain's MX records.

  • Local Mail Exchanger suits email hosted on the hosting.

  • Backup Mail Exchanger makes the hosting a backup mail server.

As soon as the MX records point to another service, the hosting's mailboxes stop receiving anything. Retrieve the messages you want to keep first.


Fix sending or receiving problems

Track a message's delivery

The Track Delivery tool in the Email section shows the path of the messages sent and received by the account. Search for an address to see its messages and their status. A message can be delivered, deferred (the server tries again later), failed or in progress. Each line shows the reply from the remote server.

A few error codes come up often.

  • 550 means the mailbox does not exist, or the server refuses the message.

  • 552 means the recipient's mailbox is full.

  • 554 means the message was rejected, often as spam or by a rule of the remote server.

  • 421 means the service is temporarily unavailable. Sending is retried later.

The email client cannot connect

  • An authentication failure comes from the username or the password. The username is the full mailbox address.

  • A refused or stalled connection often comes from the server or the port. Use the ones from the Connection settings card, with SSL. On a company network, also check that ports 993 and 465, or 995 for POP3, are not blocked.

  • A certificate warning can come from a server name that differs from the one in the card. Copy it exactly.

Messages do not arrive

  • Look in the mailbox's spam folder.

  • Check in Email Disk Usage that the mailbox is not full.

  • Check that no filter moves or deletes the messages.

  • Look for the message in Track Delivery.

  • In Email Routing, keep Local Mail Exchanger or Automatically Detect Configuration for email on the hosting. Also check the domain's MX records with our DNS lookup tool.

Messages are not sent or land in spam

First check the client's outgoing settings, with the server from the card, port 465, SSL and authentication. Then open Email Deliverability in cPanel. This tool checks the domain's SPF, DKIM and DMARC records and offers to repair them. The guide How to configure SPF, DKIM, and DMARC on cPanel explains each record.

For a full check, send a test message to mail-tester.com, which scores the authentication and the content. MXToolbox checks whether an IP address is on a blocklist.


Need help?

Open a ticket from Tickets › Open a ticket (dash.ouiheberg.com/tickets/new), or click the Contact support tile at the bottom of your hosting page. You can also ask your question on our Discord.

Was this article helpful?

455 views
Share this article
Hébergement web
Need web hosting?

cPanel hosting with email accounts and databases, managed from the OuiHeberg client area.

View plans →

Related Articles