How to Create Email Accounts in CWP: Step-by-Step Guide
In this article
To create an email account in CWP (CentOS Web Panel), log in to the control panel, go to Email > Email Accounts, click Add Email Account, fill in the username, domain, password and quota, then save. The account is active immediately and can be used with any mail client via IMAP, POP3 or SMTP. This guide walks through the exact steps, the prerequisites, and the fixes for the most common snags.
What You'll Need
- A working CWP installation with admin or user-level access. If you are a hosting customer, your provider may give you a user login rather than the root admin panel; the email menu is the same in both.
- At least one domain already added in CWP (under Domains or as an addon domain) and pointing to the server's nameservers or IP. You cannot create a mailbox for a domain that CWP does not know about.
- Mail server (Postfix and Dovecot) installed and running. On a standard CWP install this is included, but check under Server Settings > Mail Server if the Email menu is missing.
- A password that meets your server's policy (usually at least 8 characters, mixed case and a number or symbol).
- Optional: a mail client such as Outlook, Thunderbird or a phone's built-in mail app for testing after creation.
Step-by-Step
- Log in to CWP. Open your panel URL in a browser (typically https://your-server-ip:2038 or the hostname your provider gave you) and sign in. Menu labels can differ slightly between CWP versions and themes, so if a name below looks different, look for the closest match.
- Confirm the domain exists. Go to Domains > List Domains (or the equivalent user-level domain list) and check that the domain you want to use is listed and active. If it is not, add it first under Domains > Add Domain, or ask your provider to add it.
- Open the email section. In the left menu, click Email, then Email Accounts. On user-level logins the path is usually Email > Add Email Account; on admin logins you may first need to pick the user or domain from a dropdown.
- Click Add Email Account. A form opens with fields for the email username, the domain, a password, and a mailbox quota.
- Fill in the username. Enter only the part before the @ sign, for example sales or info. Lowercase letters, numbers, dots, hyphens and underscores are safe. Avoid spaces and symbols such as # or /.
- Select the domain. Choose the correct domain from the dropdown. If you manage several domains, double-check this, because the mailbox is created only for the selected one.
- Set a strong password. Type it manually or use the generator if one is offered. Copy it somewhere safe before saving; CWP will not show it again in plain text.
- Set the quota. Enter the mailbox size limit in megabytes (for example 1024 for 1 GB). Leave it blank or at 0 only if you want an unlimited mailbox, and only if your plan allows it. A quota prevents one mailbox from filling the whole disk.
- Save the account. Click Add or Create. CWP writes the mailbox to the mail server and returns a success message. The account is usable right away; there is no separate activation step.
- Note the connection details. The full address is username@domain. For incoming mail use IMAP on port 993 with SSL/TLS, or POP3 on port 995 with SSL/TLS. For outgoing mail use SMTP on port 465 with SSL/TLS (or 587 with STARTTLS). The server hostname is usually mail.yourdomain.com or the server hostname shown in CWP.
- Test it. Add the account to a mail client or webmail, send a message to an external address, and reply to it. If both directions work, the mailbox, DNS and mail server are all configured correctly.
Common Mistakes
- Typing the full address in the username field. Enter only the part before the @; CWP appends the domain itself.
- Choosing the wrong domain. On multi-domain accounts the dropdown defaults to the first domain, which is easy to miss.
- Setting a quota that is too small. A 50 MB mailbox fills quickly with attachments and then silently rejects new mail.
- Forgetting DNS. If the domain's MX record does not point to your server, the mailbox exists but cannot receive external mail.
- Using the panel password as the mailbox password. They are separate; the mailbox password is set on the creation form.
Tips
- Use role addresses (sales@, support@) as forwarders rather than full mailboxes if several people need to read them; CWP's Email Forwarders section handles this.
- Create mailboxes from the user-level login when possible. It keeps the mailbox under the correct user and avoids ownership problems later.
- Keep a record of which mailbox belongs to which person so you can remove leavers promptly.
- Check the Mail Queue occasionally (Email > Mail Queue) if messages seem delayed; a stuck queue is usually a DNS or relay issue, not a mailbox problem.
- If you need many addresses on one domain, consider a catch-all only as a last resort; catch-alls attract spam.
Troubleshooting
The Email menu is missing. The mail server is probably not installed or not running. Check Server Settings > Mail Server, and confirm Postfix and Dovecot are active from the server's service manager. On a managed host, contact your provider.
Creation fails with an error. Re-check the username for spaces or symbols, confirm the domain is listed and active, and make sure the password meets the policy. If the error mentions the mail directory, the disk may be full; free space and retry.
The account is created but cannot log in. Confirm you are using the full address as the username, the correct port and SSL setting, and the exact password. Try webmail first to rule out a client misconfiguration.
Mail arrives locally but not from outside. This is almost always DNS. Verify the domain's MX record points to your mail server and that the server's hostname resolves. Allow time for DNS changes to propagate.
Mail is sent but lands in spam. Check that SPF, DKIM and DMARC records exist for the domain and that the server's IP is not on a blocklist. These are set at the DNS level, not inside CWP's mailbox form.
If that did not work, delete the test mailbox and recreate it, then restart the mail services from the server's service manager. Restarting mail services briefly interrupts delivery but does not delete mail.
Frequently Asked Questions
How many email accounts can I create?
The limit is set by your CWP plan or hosting package, not by the form itself. If creation fails at a certain number, you have hit the package limit; ask your provider to raise it.
Can I use the mailbox immediately after creating it?
Yes. The mailbox is active as soon as it is saved. External delivery depends on correct DNS records, which may already be in place.
What is the difference between a mailbox and a forwarder?
A mailbox stores mail and has a password and quota. A forwarder only redirects incoming mail to another address and stores nothing.
Can I change the password later?
Yes. Open Email > Email Accounts, find the account and use the change-password option. Update your mail client afterwards.
Why does my mail client say the certificate is invalid?
The server's mail hostname may not match the certificate. Use the hostname shown in CWP (often the server hostname) rather than the domain, or ask your provider to install a valid certificate for the mail service.
Does deleting a mailbox delete its messages?
Yes. Removing an account removes its stored mail. Back up anything you need first.