Set up Mail Server (RoundCube webmail) on aaPanel and CloudHosting

SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING

A mail server is the computerized equivalent of your friendly neighborhood mailman. Every email that is sent passes through a series of mail servers along its way to its intended recipient. Although it may seem like a message is sent instantly – zipping from one PC to another in the blink of an eye – the reality is that a complex series of transfers take place.

Without this series of mail servers, you would only be able to send emails to people whose email address domains matched your own — i.e., you could only send messages from one example.com account to another example.com account.

How to Set Up aaPanel Mail Server?

Video work through from step 1 to step 4

Step 1. Login Into 1byte’s Account And Navigate To Cloud Hosting

  • Type your Username and Password to login into your 1Byte account
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • After login, go to your Dashboard 
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • Find Cloud Hosting in your Dashboard
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • In this demo, we will set up a mail Server on this Cloud hosting: 220.158.232.118

Step 2. Point Domain To The Cloud Hosting

  • First, go to Domain and click Manage
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • At Nameserver, choose Basic DNS
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • Add a Record for this domain
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • Finally, login to aaPanel to prepare for the next steps
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING

Step 3. From The App Store, Install The Following Packages/applications

3.1. Search the Keyword “Mail Server” And Install

  • In App Store, type Mail Server in the Search App box. Find the Operation column and click Install
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • Turn on Display on the dashboard
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • Next, open up Mail Server and check what the missing conditions are
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • As you can see here, Mail Server has not recognized the hostname variable
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING

3.2. Download “Redis” From ” App Store

Similar to Mail Server, type redis at Search app box in App Store. And click Install at Operation column.

SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • In Performance tuning, type a password for Redis at require pass box.
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Go back to Mail Server to check if there is anything missing.
  • If everything is ready, click Submit button to proceed with the setup.
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Next, click on Add Domain in this Mail Server.
  • Add the Domain name and A record, then Submit.
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • After that you will see some missing record 
9-mising record
  • Click on Not Set and follow the prompts to add related records
10- add mx record
  • Go to Domain Dashboard add MX Record
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Add the remaining TXT records
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • After that, the TXT Record will look like an image below
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Finally, check to see if the DNS system has update these record for the Domain
10- add mx record
  • Don’t worry if a certain record has not been set. Click the Refresh Domain record button to re-check 
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Next we will set up SSL for mail Server by Click on Add SSL 
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Add these records to your Domain and then click the verification button
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • After installing SSL successfully, you will see your SSL expired date 
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting

3.3. Install “one-click-deployment” utility

One more time, now type one-click deployment at Search app box in App Store. And click Install at Operation column

Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • From one-click deployment, let’s install RoundCube
  • From RoundCube webmail, install PHP, Nginx and MySQL

3.4. Let’s Install PHP 8.0

This time, let’s type PHP 8.0 at the Search app box in the App Store. And click Install at the Operation column. 

  • Fill out the pop-up form and click submit
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting

3.5. Install Nginx Web Server

Type NGINX at Search app box in App Store. And click Install at Operation column.

Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting

3.6. Install MySQl Database for RoundCube

Type mySQL at Search app box in App Store. And click Install at Operation column.

SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING

3.7. Install RoundCube

Go to the Home dashboard and open one-click deployment

Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • RoundCube and click on One-Click to install 
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Set up URL for RoundCube webmail, then Submit
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • To login to RoundCube webmail, access your URL on the pop up
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • We just installed RoundCube, now we need to create an account of RoundCube.
  • From your Domain List, at the Operating column, click on User to create a new account. 
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting

Click Add User and fill in the details, then Submit.

Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting

Step 4. Test Sending And Receiving Email

Go to Webmail and use the newly created account to log in

SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING
  • Try to compose an email and send it to Gmail 
SETUP MAIL SERVER (ROUNDCUBE WEBMAIL) ON AAPANEL + CLOUDHOSTING

Check your mail in Gmail and send it back

Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting
  • Finally, we successfully created an email that can send and receive email
Setup Mail Server (RoundCube webmail) on aaPanel + CloudHosting

Conclusion

You should use your professional email address to convey confidence in your brand, company, or organization. Once you’ve decided on a domain name that reflects your company or profession.

1Byte is proud to provide the best cloud hosting from Cambodia. So, if you haven’t already, go ahead and buy now!