How to Create a Linux VPS Server on Kamatera

This article is going to explain how to create a Linux VPS (Virtual Private Server) on Kamatera, so you can run your own email server and website.

ScalaHosting vs Kamatera

In a previous tutorial, I explained how to create a Linux VPS server on Scalahosting, which is my recommended hosting provider for running email servers, because it has the best IP reputation. However, Scalahosting plans start at $26/month (2 CPUs, 8GB RAM). It’s a bit expensive for some folks since they don’t need that much RAM to get started.

If your business depends on email, I still recommend ScalaHosting, because it will give you better email deliverability. If you are short of money, then you can choose Kamatera VPS hosting, which starts at $4/month (1 CPU, 1GB RAM) and you will get one month for free.

I have email servers on both hosting providers and I will share my experience in Kamatera with you.

create linux vps server kamatera

Why Run Your own Email Server

There’re hosted email solutions like Google Workspace and Microsoft Exchange Online, but they become very expensive when you have many users. If you run a self-hosted email server on a VPS, you can add unlimited users, unlimited domains, and send unlimited email messages for a very low price.

You can easily set up a mail server with iRedMail.

And you can install a self-hosted email marketing platform like Mautic on your email server,  so you can cancel your Mailchimp/AWeber subscription and save hundreds of dollars every month.

Find a VPS for Email

It’s not an easy task to find a VPS provider suitable for email hosting. Many hosting companies like DigitalOcean blocks port 25. DigitalOcean would not unblock port 25, so you will need to set up SMTP relay to bypass blocking, which can cost you additional money. Another problem is that big well-known hosting providers like DigitalOcean are abused by spammers. Often the server IP address is on several blacklists.

Kamatera is a very good option to run a mail server because

  • They don’t block port 25.
  • The IP address isn’t on any email blacklist. (At least this is true in my case. I chose the Dallas data center.) You definitely don’t want to be listed on the dreaded Microsoft Outlook IP blacklist or the spamrats blacklist. Some blacklists block an entire IP range and you have no way to delist your IP address from this kind of blacklist.
  • You can edit PTR record to improve email deliverability.
  • They allow you to send newsletters to your email subscribers with no hourly limits or daily limits, whatsoever. Note that you are not allowed to send spam, also known as unsolicited bulk email. If the recipient doesn’t explicitly give you permission to send emails, and you send emails to them, that’s unsolicited email.
  • You can order multiple IP addresses for a single server. This is very useful for folks who need to send a large volume of emails. You can spread email traffic on multiple IP addresses to achieve better email deliverability.

As you can see from the screenshot below, The IP address (63.250.61.81) of my mail server (smtp01.linuxbabe.com) isn’t on any blacklist.

mxtoolbox-email-blacklist-check kamatera

How To Create a Linux VPS Server on Kamatera

Go to Kamatera website and click the Get Started for Free button to create an account.

kamatera-vps-mail-server

You will need to verify your email address.

kamatera email verification

Next, you need to add a billing profile.

kamatera cloud platform

Enter your address and phone number.

kamatera billing

Then add your mobile phone number for 2 step verification.

kamatera 2 step verificationAfter verifying your phone number, go to the next step and enter your credit card information. A promo code (1MONTH300) is automatically added to give you one month of free usage (up to 100 USD).

kamatera one month free

Now your billing profile is added, go to My cloud -> Create New Server to add a new server. Select your server location, OS image (Ubuntu, Debian, AlmaLinux, etc) and server type.

kamatera create new server

For an email server, I recommend the following specs,  which costs $9/month. 3 GB RAM is required if you want to run a full-featured email server. If you need a simple email server, then 2GB RAM is fine.

  • server type: A availability
  • CPU: 1 core
  • RAM: 3GB
  • SSD: 20GB

kamatera server types
Next, set a root password for the VPS and give it a hostname.

kamatera VPS hostname

Finally, click the create server button. Note that you will not be billed right away. You can use the server for one month free. It can take several minutes for your servers to be created. You can check the progress in the task queue.

After your server is created, you will receive an email notification. And you can log into your server via SSH. If you are using Linux on your desktop computer, you can open a terminal window and run the following command to log into your server. Replace 12.34.56.78 with your server’s IP address. Then enter the root password.

ssh [email protected]12.34.56.78

kamatera ssh login

Congrats! Now you can start your Linux server project. If you are using Windows, please read the following article on how to use SSH client.

Creating a sudo User

I strongly recommend creating a sudo user for managing your server rather than using the default root user. Not only it increases your server’s security, but also allows you to log in as the new user if you can’t log in as the root user.

Debian/Ubuntu

If you installed Debian or Ubuntu on your server, run the following command to create a user.

adduser username
adduser scalahosting

Then add the user to the sudo group.

adduser username sudo

Now you can exit from the root user.

exit

And login as the new user.

ssh username@12.34.56.78

CentOS/AlmaLinux

If you installed CentOS/AlmaLinux on your server, run the following command to create a user. Replace username with your preferred username.

adduser username

Set a password for this user.

passwd username

Add this user to the wheel group in order to use sudo.

gpasswd -a username wheel

Make sure you have the sudo utility installed.

dnf install sudo

Now you can exit from the root user.

exit

And login as the new user.

ssh username@12.34.56.78

Tips for Staying Out of the Spam Folder

I highly recommend following email sending best practices, so your emails can land into the inbox and stay out of the spam folder.

Create PTR Record for Your Kamatera VPS

Kamatera doesn’t allow you to edit PTR record in the control panel. Instead, you need to open a support ticket and tell them to add PTR record for you. It’s not convenient, you might think, but this is to keep spammers away from the platform, so legitimate email senders like us will have a great IP reputation.

Web-based VNC Console

Kamatera provides a web-based VNC console in the account control panel. This VNC connection is not affected by SSH. If you accidentally lock yourself out of the SSH service, you can always use the VNC console to fix the errors in the SSH service. Note that after you create a fresh VPS on Kamatera, you may need to wait a few hours to use the VNC console.

Go to My cloud -> Servers -> Actions -> Console to launch the VNC console.

kamatera VNC console

How to Upgrade Server Specs

If you need more resources on your VPS, then go to My Cloud -> Server -> Actions -> Configure to add more CPU, RAM, or disk space to your VPS. Click Update Configuration button to apply the changes. You can run the htop command over SSH to check if the upgrade is successful. If you still see the original server spec, then go to Kamatera website and click the reboot button to reboot your server. (Rebooting from the command line might not be able to apply the changes.)

How to Add Multiple IP Addresses to Your VPS

It’s a good practice for bulk email senders to use multiple IP addresses to send emails, so as to maintain good IP reputation and improve email deliverability. To add additional IP addresses for your Kamatera VPS, you need to shut down your VPS with the following command.

sudo shutdown -h now

Then go to Kamatera web interface, select My Cloud -> Servers, click on your VPS, then select the Network tab -> Your WAN network interface -> Add IP address.

kamatera VPS add new IP

Next, choose automatic IP selection.

kamatera auto IP selection

Then click Reboot and Add Automatically button, and wait for the task to finish.

Kamatera will automatically create a snapshot when adding IP address to your VPS. When you see the following message in your Kamatera account, you need to go to the Snapshots tab and commit the snapshot.

Server has active snapshots. Reconfiguring server's networks can't be done while server has active snapshots. Please commit all Snapshots to proceed.

After that is done, power on your VPS. And login via SSH. You can use the following command to check the network interface and IP addresses on your VPS.

sudo ip -c a

As you can see, the main network interface now has two public IP addresses.

kamatera multiple IP addresses for single VPS

Once you have multiple IP addresses, follow the tutorial linked below to set up multiple instances of Postfix SMTP server, so it can make use of the multiple IP addresses.

How to Remove an IP Address

The process is very similar to adding a new IP address. First, you need to shut down your VPS, then go to the networks tab and select the remove IP address option. Next, commit the snapshot which is automatically generated by Kamatera. Finally, power on your VPS.

Wrapping Up

I hope this article helped you create a Linux VPS on Kamatera. As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks. Take care 🙂

Rate this tutorial
[Total: 1 Average: 5]

One Response to “How to Create a Linux VPS Server on Kamatera

  • Thanks for this tip regarding Kamatera VPS; very good deal, friendly tech support.

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here