Do you run your own mail server on your web hosting (VPS) using One-Click Apps, for example with the ZAP Webspace + Mail app, and find that some emails aren't being delivered successfully? You're in the right place. There are several factors to consider to ensure reliable email delivery. In this guide, you'll learn about the most important factors affecting email delivery and how to improve its reliability.
Haven't set up your own mail server yet? This article assumes that you've already installed your own mail server using One-Click Apps, for example with ZAP Webspace + Mail. For initial setup (installing the app, creating mailboxes, adding DNS records, and enabling outgoing mail), see the article Web Hosting: Set Up Email with Your Own Mail Server. This article focuses exclusively on optimizing deliverability afterward.
Your web hosting product is now a VPS, so your mail server runs on your VPS's own IP address—not on infrastructure shared with many other customers. The major benefit is that the reputation of this IP address depends entirely on your own email traffic, not on the behavior of other customers. This makes it especially important to follow the steps below carefully so your IP address can build and maintain a good reputation.
Authentication standards make it easier for email providers and mail servers to verify the sender's legitimacy. Three important standards have been established to prove that you're authorized to send email on behalf of a domain: SPF, DKIM, and DMARC.
SPF (Sender Policy Framework): SPF helps prevent email spoofing by specifying which IP addresses are authorized to send email on behalf of a domain. For example, you can add an SPF record in the DNS settings for your domain "example.com" that defines which mail servers are allowed to send email from "@example.com". If an email is sent from an unauthorized server, the receiving mail server may mark it as suspicious or reject it.
DKIM (DomainKeys Identified Mail): DKIM adds a digital signature header to an email, which helps verify that the email hasn't been altered in transit and really came from the stated domain. The receiving mail server uses this signature to check the email's integrity.
DMARC (Domain-based Message Authentication, Reporting & Conformance): DMARC builds on SPF and DKIM and adds another layer of protection. It lets you specify how emails that fail SPF or DKIM checks should be handled (for example, quarantined or rejected). DMARC also provides reports showing how your domain is used in emails, helping you monitor potential abuse.
Get the values from your mail app Your mail app shows the exact SPF, DKIM, and DMARC values for your domain. In ZAP Webspace + Mail, you can find them by clicking the DNS records link on the app card. Add these values as TXT records in your domain's DNS management. For details, see Web Hosting: Set Up Email with Your Own Mail Server.
In addition to SPF, DKIM, and DMARC, many receiving mail servers also check whether your mail server's IP address has a matching reverse DNS entry (PTR record)—in other words, whether a reverse lookup of the IP address points to a hostname that matches your sender domain (for example, mail.yourdomain.com). If this record is missing or points to a generic hostname, many providers consider that a sign of spam.
You can set the PTR record for your VPS's IP address directly in the ZapX customer panel:
- Open your VPS in the customer panel.
- Go to the Settings → Reverse DNS tab.
- Enter the hostname your mail server uses for its own name for your VPS's primary IP address (the same value you would typically configure as the MX or A record). For ZAP Webspace + Mail, this is the app's domain.
The PTR record and hostname should match Ideally, the PTR record (IP → hostname) should match your mail server's A record (hostname → IP). This is known as "Forward-Confirmed reverse DNS" (FCrDNS). It's one of the easiest ways to establish trust with many major email providers.
On new VPSs, outgoing connections on mail ports 25 and 465 are blocked until you verify a phone number on your account. You'll then see the message Email sending blocked on your VPS. While the block is in place, emails to external recipients will remain in the queue. Verify your phone number by clicking Verify phone number in the notice or going to My account → Settings → Profile. ZapX will then automatically enable outgoing mail for all your VPSs.
Even with your own dedicated IP address, it takes time to build a good reputation. Keep the following in mind:
- Increase your sending volume gradually (warmup): If you immediately send a large number of emails from a new IP address, many providers may consider it suspicious. Instead, start with a lower sending volume and gradually increase it over several days or weeks.
- Keep an eye on bounces and spam complaints: A high number of undeliverable addresses (bounces) or spam reports from recipients can cause lasting damage to your IP address's reputation. Clean up your recipient lists regularly.
- Use your mail server responsibly to avoid being blacklisted: If a provider adds your IP address to a blacklist due to abuse (for example, compromised login credentials or mass spam), your emails may no longer be delivered or may be marked as spam. Monitor your mail server for suspicious activity and consistently use your mail app's spam filters to prevent this from happening. If you do end up on a blacklist, use a standard blacklist checker (for example, mxtoolbox.com) to find out which list you're on. You can usually submit a delisting request directly with that list.
Email content also plays an important role. Aim for a balanced ratio of text to images. Also avoid problematic content such as videos, JavaScript, or forms, as these can trigger spam filters or cause delivery issues. Every email should also include an unsubscribe option and legal notice at the end.
Other best practices include using clear and concise language, avoiding overly aggressive marketing messages, and optimizing emails for mobile devices.
Before using your mail server in production, or if you suspect delivery issues, it's worth checking your DNS configuration:
- Use our free Email DNS Health Checker to check your domain's SPF, DMARC, MX, and (where possible) DKIM records online and get easy-to-understand information about any issues found.
- External services such as mail-tester.com and mailgenius.com go a step further: You send a test email to the address they provide, and the service evaluates things such as the content, headers, SPF/DKIM/DMARC, and blacklist status, then gives you specific suggestions for improvement.
These tools are especially useful for making sure your emails are configured correctly, improving deliverability, and avoiding common problems that could cause your emails to be marked as spam.
If you've followed and implemented all the recommendations, you should now be in a much better position to ensure secure and reliable email delivery. Your emails are more likely to be delivered and are also better protected against unauthorized access and abuse.
If you need help setting things up or optimizing your configuration, our support team is always happy to help.