How to change domain.com webmail to mail.domain.com
A simple but useful question!
To change the webmail URL from domain.com/webmail
to mail.domain.com
, you'll need to update the DNS records and configure your email server. Here's a step-by-step guide:
Prerequisites:
- You have a domain registered with a registrar (e.g., GoDaddy, Namecheap).
- You have a web hosting or email hosting service (e.g., cPanel, Plesk, Microsoft Exchange).
- You have access to your DNS management panel (e.g., cPanel, Namecheap, GoDaddy).
Step 1: Update DNS Records
- Log in to your DNS management panel.
- Create a new CNAME record (Canonical Name Record) with the following settings:
- Hostname:
mail
- Points to:
your-webmail-server-ip
(e.g.,192.0.2.1
) - TTL (Time To Live): 3600 (1 hour) or a value that suits your needs
- Hostname:
- Create a new A record (Address Record) with the following settings:
- Hostname:
mail
- IP Address:
your-webmail-server-ip
(e.g.,192.0.2.1
) - TTL (Time To Live): 3600 (1 hour) or a value that suits your needs
- Hostname:
Step 2: Update Email Server Configuration
- Log in to your email hosting or web hosting control panel (e.g., cPanel, Plesk).
- Go to the "Email" or "Mail" section and look for the "Webmail" or "Mail Client" settings.
- Update the "Webmail URL" or "Mail Client URL" to
mail.domain.com
. - Save the changes.
Step 3: Update Webmail Configuration (optional)
If you're using a specific webmail client like Roundcube or SquirrelMail, you may need to update its configuration file to reflect the new URL.
Step 4: Verify the Changes
- Wait for the DNS changes to propagate (this may take up to 48 hours).
- Try accessing your webmail using the new URL:
mail.domain.com
. - Verify that you can log in and access your email account successfully.
That's it! Your webmail URL should now be mail.domain.com
. If you encounter any issues or have further questions, feel free to ask.