Running your own email server can be a rewarding task—giving you control over your communications, better security, and independence from third-party providers. With a Singapore Private RDP, especially from reliable providers like 99RDP, you get the flexibility and control needed to host a lightweight email server for personal use, small business communication, or testing purposes.
In this comprehensive guide, we’ll walk you through the process of setting up a lightweight email server using Postfix, Dovecot, and Roundcube on a Singapore Private RDP. This setup ensures minimal resource consumption and maximum deliverability, ideal for private or low-volume usage.
Why Host Your Email Server on Singapore Private RDP?
Using a Singapore-based Private RDP brings several advantages:
-
Low latency for Southeast Asian users
-
Stable and secure infrastructure
-
High uptime guarantees from providers like 99RDP
-
Customizability for installing your own server stack
-
Data sovereignty compliance with Singapore’s PDPA (Personal Data Protection Act)
Hosting your mail server on a Singapore Private RDP is a cost-effective and reliable option, especially when you're targeting users in Asia-Pacific.
Prerequisites
Before starting, make sure you have:
-
A Singapore Private RDP (preferably running Ubuntu 22.04 or Debian 12)
-
Root or sudo access
-
A domain name (e.g., example.com)
-
DNS access to configure MX, A, and PTR records
-
Minimum 1GB RAM and 1 CPU core (for low-volume usage)
-
Firewall access or
ufwconfigured
If you haven’t purchased your RDP yet, you can get one from 99RDP, which offers custom configurations, 24/7 support, and blazing-fast Singapore servers.
Step 1: Update Your RDP Server
sudo apt update && sudo apt upgrade -y
Install essential packages:
sudo apt install curl wget git ufw unzip net-tools -y
Step 2: Set the Hostname and FQDN
Ensure your hostname matches your domain’s subdomain (e.g., mail.example.com):
sudo hostnamectl set-hostname mail.example.com
Edit your /etc/hosts:
127.0.0.1 localhost
127.0.1.1 mail.example.com mail
Step 3: Configure DNS Records
On your domain registrar:
-
A Record:
mail.example.com -> your RDP IP -
MX Record:
@ -> mail.example.com (Priority: 10) -
SPF Record (TXT):
"v=spf1 mx ~all" -
DKIM & DMARC (optional for now)
Wait for DNS propagation before proceeding.
Step 4: Install Postfix (SMTP Server)
sudo apt install postfix -y
During installation, choose:
-
General type of mail configuration: Internet Site
-
System mail name: example.com
After installation, modify Postfix configuration:
sudo nano /etc/postfix/main.cf
Add or edit the following lines:
myhostname = mail.example.com
mydomain = example.com
myorigin = /etc/mailname
inet_interfaces = all
inet_protocols = ipv4
mydestination = $myhostname, localhost.$mydomain, localhost
home_mailbox = Maildir/
smtpd_banner = $myhostname ESMTP
Then restart Postfix:
sudo systemctl restart postfix
Step 5: Install Dovecot (IMAP Server)
sudo apt install dovecot-core dovecot-imapd -y
Configure Dovecot:
sudo nano /etc/dovecot/conf.d/10-mail.conf
Change:
mail_location = maildir:~/Maildir
Enable authentication:
sudo nano /etc/dovecot/conf.d/10-auth.conf
Uncomment:
disable_plaintext_auth = no
Restart Dovecot:
sudo systemctl restart dovecot
Step 6: Add Mail User
Create a new Linux user for email:
sudo adduser mailuser
This user will automatically get a Maildir when Dovecot is active and the first mail is delivered.
Step 7: Install Roundcube Webmail (Optional but Recommended)
Install Apache, PHP, and MySQL:
sudo apt install apache2 mariadb-server php php-mysql php-intl php-mbstring php-xml php-common php-curl php-zip php-imagick -y
Start and secure MariaDB:
sudo mysql_secure_installation
Create a database and user for Roundcube:
CREATE DATABASE roundcubemail;
GRANT ALL PRIVILEGES ON roundcubemail.* TO 'roundcube'@'localhost' IDENTIFIED BY 'yourpassword';
FLUSH PRIVILEGES;
Download Roundcube:
cd /var/www/html
wget https://github.com/roundcube/roundcubemail/releases/download/1.6.6/roundcubemail-1.6.6-complete.tar.gz
tar -xvzf roundcubemail-1.6.6-complete.tar.gz
mv roundcubemail-1.6.6 roundcube
Set correct permissions:
chown -R www-data:www-data /var/www/html/roundcube
Now navigate to http://your-rdp-ip/roundcube/installer in your browser and follow the instructions.
Step 8: Open Required Ports
sudo ufw allow 22/tcp
sudo ufw allow 25/tcp
sudo ufw allow 143/tcp
sudo ufw allow 587/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
Step 9: Test the Email Server
You can test sending mail from your server using:
echo "Test email body" | mail -s "Test Subject" your-email@example.com
And log in via Roundcube or Thunderbird using:
-
Username:
mailuser -
Password: (Linux password you set earlier)
-
Incoming server (IMAP): mail.example.com, port 143
-
Outgoing server (SMTP): mail.example.com, port 587
Step 10: Add SSL with Let's Encrypt (Optional but Secure)
Install Certbot:
sudo apt install certbot python3-certbot-apache -y
Run:
sudo certbot --apache -d mail.example.com
This will automatically secure Roundcube and other services.
Bonus: Add DKIM and DMARC (for Better Email Deliverability)
For higher deliverability and to avoid spam folders:
-
Install OpenDKIM
-
Generate keys and publish the public key as a DNS TXT record
-
Configure Postfix to sign outgoing mail
You can also test deliverability using mail-tester.com.
Conclusion
Setting up a lightweight email server on Singapore Private RDP can seem technical, but it’s highly manageable if you follow the steps systematically. You not only save money by avoiding third-party providers but also gain full control over your data and email routing.
Using 99RDP as your hosting provider ensures optimal performance, especially for Asia-Pacific users. Their Singapore Private RDPs are optimized for tasks like self-hosting, automation, and secure communication tools like email servers.
Need Help or Want It Pre-Configured?
If you’d rather skip the technical setup and get a pre-configured email server on a Singapore RDP, contact 99RDP and request a custom email hosting RDP. Their support team can help you with tailored deployments and security hardening.

Comments
Post a Comment