You send a quote to a new customer and hear nothing back. A week later they mention it turned up in their junk folder, or never arrived at all. If you run your own mail server, this is one of the most frustrating problems you can have, because nothing on your side looks broken.
The good news is that outbound deliverability problems almost always come down to a short list of causes. This guide walks through why receiving servers distrust some mail, how to work out what's affecting yours, and what you can do about it.
How receiving servers decide whether to trust you
When your server hands a message to Gmail, Microsoft or Yahoo, the receiving side asks a few quick questions before it even reads the content:
- Who is connecting? The IP address your server sends from has a reputation, built from its history and from the addresses around it.
- Does the address look like a proper mail server? Reverse DNS (a PTR record) should point to a sensible hostname that matches how your server introduces itself.
- Is this server allowed to send for this domain? SPF answers that question.
- Has the message been tampered with, and is it really from you? DKIM signatures and a DMARC policy answer those.
Fail one or more of these and your mail is likely to be spam-foldered. Fail badly and it will be rejected outright.
The four most common causes
1. Poor IP reputation
If your IP address, or its neighbourhood, appears on lists such as Spamhaus or Barracuda, or is flagged in Microsoft's SNDS data, big providers will treat your mail with suspicion. Gmail tends to quietly spam-folder it; Microsoft often rejects it. This can happen even if you've never sent spam, simply because a previous user of that address or a neighbouring one did.
2. Blocked port 25
Most consumer ISPs, and many business ones, block outbound connections on port 25. If yours does, your server can't deliver directly to anyone at all. You'll usually see messages stuck in the queue with connection timeouts.
3. Dynamic or shared IP addresses
Residential broadband, shared hosting and NAT-pool addresses are treated as low-trust by default. Large providers assume, reasonably, that real mail servers don't live on them.
4. Missing PTR, SPF or DKIM
Without proper reverse DNS, an SPF record that includes your server, and a DKIM signature that aligns with your From domain, modern receivers will lean towards treating your mail as spam.
Diagnosing the problem
Before changing anything, gather evidence. A few simple checks usually point straight at the culprit.
- Read the bounce messages. Rejections often name the reason directly, such as a blocklist, a failed SPF check or a policy block.
- Check your mail queue. Lots of messages sitting there with connection timeouts suggests a blocked port 25.
- Send a test message to a Gmail or Outlook.com address and view the full headers. Look at the Authentication-Results line to see whether SPF, DKIM and DMARC passed.
- Look up your sending IP on the public blocklist checkers and confirm its reverse DNS resolves to your mail server's hostname.
- Ask your ISP whether your address is static or dynamic, and whether they filter port 25.
What you can fix yourself
| Problem | Self-help fix |
|---|---|
| No or wrong PTR record | Ask whoever owns the IP (your ISP or host) to set reverse DNS to your mail server's hostname. |
| No SPF record | Publish a TXT record listing the servers allowed to send for your domain. |
| No DKIM | Enable DKIM signing on your server and publish the public key in DNS. |
| No DMARC | Publish a DMARC record, starting with a monitoring policy before tightening it. |
| Listed on a blocklist | Find out why, fix the cause (for example a compromised account), then request delisting. |
These steps are worth doing regardless. But some problems simply can't be fixed from your end. You can't unblock a port your ISP filters, you can't make a residential address look like a datacentre, and you can't control what your IP neighbours do.
When a smarthost is the answer
A smarthost is a trusted relay that sends mail on your behalf. Instead of your server trying to deliver directly to every recipient, it hands each message to the relay over an authenticated, encrypted connection. The relay then delivers it from well-established IP addresses that already have a sending reputation.
Your users notice nothing. Your server keeps sending as it always has; it just passes mail to one trusted next hop instead of to the whole internet.
One quick check: if your mailboxes are on Microsoft 365 or Google Workspace, you almost certainly don't need a smarthost. Those platforms already send from reputable IPs. Smarthosts are for self-hosted mail servers and small-ISP setups.
Don't forget your SPF record
Whichever relay you use, add it to your domain's SPF record so receivers know it's authorised to send for you. Keep an eye on SPF's limit of ten DNS lookups, and tidy out old entries for services you no longer use.
How MxGuard Smarthost works
MxGuard Smarthost is an outbound relay you can bolt on to any domain that needs it. Your server hands outgoing mail to smtp.mxguard.uk on port 587 with STARTTLS. MxGuard relays it out over the same UK and EU IP addresses used to deliver scanned inbound mail.
Setup takes about five minutes:
- Enable outbound relay for the domain in the dashboard and choose how to authenticate.
- Point your server's smarthost, relayhost or "send-via host" setting at smtp.mxguard.uk:587 with the generated credentials.
- Outbound mail flows through MxGuard straight away, logged in your dashboard.
There are two ways to authenticate. SMTP authentication gives each domain a unique username and password that works from any IP, can be rotated freely and constrains the sender domain so nobody can spoof others; this is the recommended option. Alternatively, an IP allowlist trusts your static sending addresses with no credentials, which suits fixed-IP datacentre servers.
Handling is deliberately light-touch:
- ClamAV scans every attachment, so a compromised account can't send malware out under your name.
- Rate limiting defaults to 2,000 messages a day per account. If you exceed it, MxGuard contacts you rather than surprise-billing you.
- DKIM signing is available on request, though most customers already sign at their own server.
- Every outbound message appears in your dashboard tagged as outbound, showing who sent what, when, to whom and whether it was accepted.
- The inbound AI spam classifier is not run on your outbound mail, because it's trained to judge mail sent to you, not by you.
Both gateways, mx1 in the UK and mx2 in the EU, accept submissions in an active-active setup. If one node is unavailable, your server's connection simply succeeds on the other. When you enable the service, you're given the exact SPF include to add: include:_spf.mxguard.uk.
Get your mail back in the inbox
MxGuard Smarthost costs £19.99 a month per account, billed monthly and cancellable any time. Disabling it simply returns the domain to direct outbound with no other changes. It's also included free during the MxGuard trial, so you can see whether it fixes your deliverability before paying anything. If you'd like to talk through your setup or add the smarthost to your account, get in touch with the MxGuard team, or start from the MxGuard home page.