Introduction
Use the following information to receive email messages on the hostname of the server.
The Default email account for cPanel users
For each cPanel user, there exists an email account in the following format:
cpanelusername@hostname.example.tld
To check messages that have been sent to this account you may use the following steps:
- Login to the cPanel
- Click on the Email Accounts icon
- Locate the account with the blue "Default" badge
- Click "Check Email"
cPanel Supported Aliases on the hostname
There are 3 alias email addresses recognized by cPanel that you may configure to forward to an email address of your choice:
You can configure each of those addresses to forward to your own email address of choice in WHM with the following steps:
- Login to WHM as the root user
- Navigate to: Home »Server Contacts »Edit System Mail Preferences
- Enter your desired email address(s)
- Click the blue Update button
Non cPanel Recognized Aliases
It is possible to add additional email aliases on the hostname and have them forward to an address of your choice by forwarding them to one of the cPanel supported aliases.
For example, if you wanted customaddress@hostname.domain.tld to forward to exampleuser@gmail.com, you could do the following:
- Use "Edit System Mail Preferences" in WHM to configure root@hostname.domain.tld to forward to exampleuser@gmail.com
- Login to the server via SSH or Terminal as the root user
- Open /etc/aliases with a text editor such as vi
- Add the following line somewhere in the file:
customaddress: root
You can then test the routing of the address by executing the following command as the root user via SSH or Terminal:
exim -bt customaddress@hostname.domain.tld
That configuration will forward messages for customaddress@hostname.domain.tld to root@hostname.domain.tld, and then finally to exampleuser@gmail.com
Comments
0 comments
Article is closed for comments.