Set up your own corporate mail server from scratch. Step-by-step technical documentation for a highly reputable and fully controlled email infrastructure that does not get stuck in spam filters.
Hosting your own mail server provides data privacy and complete control, but requires the right hardware and network infrastructure. Minimum recommended for a mail server of 2026 standards VPS Features include:
The company from which you rented the server 25. Port (SMTP) Make sure it allows output. Many providers close this port by default to prevent spam.
The first step in mail server setup is to set the server name (FQDN) correctly.
DNS records are vital for e-mails to go to services such as Gmail and Outlook without falling into the "Spam" folder. domain name Add the following records from your panel.
| Record Type | Ad (Host) | Value | Description |
|---|---|---|---|
| A | SERVER_IP | Mail server IP address | |
| MX | @ | mail.ekaservucu.com (Priority: 10) | Mail server address |
| TXT (SPF) | @ | v=spf1 ip4:SERVER_IP -all | Proxy server IP |
| TXT (DMARC) | _dmarc | v=DMARC1; p=none; rua=mailto:[email protected] | Policy management |
This registration is not done through the hosting panel, but from the IP address management section of the panel of the company you bought the server from (Eka Sunucu). Your IP address must resolve to "mail.domain.com".
Postfix handles sending and receiving mail (MTA). During installation, select the "Internet Site" option.
main.cf Edit the file according to modern standards as follows:
Dovecot is required for users to read their emails from Outlook or their phones.
Edit Dovecot configuration files:
For encryption of e-mail traffic SSL certificate It is mandatory. You can get it for free with Certbot.
Once the certificate is received, introduce it to Postfix and Dovecot:
Digitally signing emails is mandatory in 2026 for providers such as Google and Yahoo.
Send the output of the above command to your DNS panel. mail._domainkey Add it as a TXT record with the name .
When you purchase a VPS, basic mail server installation can be done free of charge by our technical team.
Get SupportUninterrupted communication with Eka Sunucu's high-performance VPS infrastructure.
Check out VPS Packages