With VPS hosting, many other options are also available which are easy to go with VPS. Some people want to have their email hosting to save their personal data to share with other email hosts. For doing this, they need to host their email with VPS. For doing it, a person needs to opt for right VPS hosting provider first of all. A VPS hosting provider with speedy hosting, proper support & with the latest technology will be best to choose. Running own mail server is quite difficult, and it has to monitor all the time.
Moreover, as long as the server is not encrypted a person should use a client-based encryption for a person's email client. It is also a good idea to separate this from other services. It is better to use a small 128 MB RAM for running the mail server. It is fine for five users. If a person wants to run additional services like ClamAV and if he has more than five users then he should use 512 MB of RAM. Email servers can have a lot of features like marking spam, graylisting, virus scanning, virtual mappings, etc.
Steps to Setup VPS email Hosting
- First, if all a person needs to create an A record that is pointing to VPS, which runs the mail server.”mailserver.domain.com”. This name is quite important because it is used in many different places. A person can add additional CNAME to ensure that all the mail clients find the correct IP address. The AAAA records are also required if a person wants to support IPv6.
- Then a person needs to create an MX record for domain and sub-domains. So all email for a person's domain should be sent to “mailserver.domain.com”. A person needs to build records for his subdomains too. To ensure that SPF gets more support a person needs to add TXT DNS entry too. @ INTXT”v=spf1 mx -all” This adds the additional security that says that only a person's MX entries are allowed to send emails for his domains. He can add other IPs like @ INTXT”v=spf1 mx ip4:188.8.131.52 a:mail.company.com -all” This states that all MX servers, the IP 184.108.40.206 and the mail.company.com are allowed to send emails for a person's domains. This is a way to approve external emails. Secondly, a person needs to go to VPS control panel and add the DNS record “mailserver.domain.com” to his IP address 220.127.116.11. Then a person needs to set up his mailname in /etc sudo nano /etc/mailname Add”mailserver.mydomain.com”
- Next step is to setup IP table’s rules. If a person run a server with SSL certificates, then he can disable the POP3 and IMAP rules. A lot of email clients first try the non-SSL ports and will, therefore, suggest a not secured connection. A person needs to keep in mind that all communication without SSL will not save. Then a person needs to set up his mail server installation which is quite simple because of the excellent packages available. All mail for a different domain will be rejected. “smtpd_recipient_restrictions” is a list of filters to ensure that a person should not get spam emails in his inbox. For a private mail server, it just saves a lot of time.
Email Scanning verifies that email and attachments entering and leaving your network are free from viruses and other malicious code.
Email VPS hosting as discussed is not that easy to set because it requires lots of additional programming but for people who do not want to share their personal details with others have to take the pain required to setup email VPS hosting.