Hostinger Emails Landing in Spam: Fixing SPF, DKIM and DMARC
Why Hostinger emails land in spam and how to fix it with SPF, DKIM and DMARC records, plus the send limits that silently break contact forms.
Live:Hostinger's 48-month pricing is down to$2.99/mo— free domain + SSL included.
See the dealSix reasons a Hostinger SSL certificate fails, from provisioning delays and DNS mismatches to Cloudflare proxy conflicts, mixed content and a stale site URL.
“The SSL is not working” covers several different failures, and they have different fixes. The browser error message tells you which one you have.
| What you see | What it means | Where to start |
|---|---|---|
ERR_CERT_AUTHORITY_INVALID or “not secure” |
No valid certificate served for this hostname | Fix 1 and Fix 2 |
ERR_SSL_PROTOCOL_ERROR |
Nothing answering on port 443 | Fix 2 |
| Padlock with a warning triangle | Certificate valid, some resources insecure | Fix 4 |
| Padlock missing but page loads over https | Mixed content or an unforced redirect | Fix 4, then force HTTPS |
| Error in one browser only | Cached certificate | Fix 5 |
| Error only after adding Cloudflare | Proxy conflict | Fix 3 |
| Redirect loop between http and https | WordPress site URL still set to http | Fix 6 |
Read the message before changing anything. Half the time people rebuild a certificate that was never the problem.
Quick isolation test: open the site in a private window and in a second browser. If it works in one and not the other, the certificate is fine and you have a cache problem. If it fails everywhere, the problem is on the server or in DNS.
Hostinger installs SSL certificates automatically. The process depends on DNS resolving to Hostinger first, because the certificate authority has to validate that you control the domain.
In hPanel, open the SSL section for the domain. You will see whether a certificate is issued, pending, or missing. If it is pending, the correct action is to wait — usually a short time, but up to a day in the worst case.
Do not request a new certificate while one is pending. Multiple simultaneous requests for the same hostname can cause rate limiting at the certificate authority and leave you waiting longer than if you had done nothing.
If the certificate has been pending for more than a day, move to Fix 2. The certificate is almost certainly waiting on DNS.
A certificate cannot be issued for a domain that does not resolve to the server requesting it. This is the most common cause of a “stuck” certificate.
Check two things:
www points at the IP address shown in
hPanel. If either is missing, the certificate for that hostname cannot
validate.Also check for a leftover AAAA record pointing at an old IPv6 address. A stale AAAA record can make the domain resolve to a host that knows nothing about your site, and it is easy to miss because everything looks correct on IPv4.
DNS changes take time to propagate. Do not judge the result until a few hours have passed, and remember that the certificate authority may have cached the old answer.
If your domain sits behind Cloudflare, there are two possible conflicts.
Validation interception. Cloudflare’s proxy can intercept the certificate validation request. If issuance keeps failing, temporarily set the DNS record to DNS-only in Cloudflare so the validation reaches the origin, then re-enable the proxy after the certificate issues.
Mode mismatch. Cloudflare’s SSL mode must be consistent with what your origin serves. If the mode is set to a strict mode that requires a valid origin certificate and your origin certificate is not yet issued, visitors get an error. A flexible mode, where Cloudflare talks to the origin over plain HTTP, avoids that error but creates a redirect loop if your origin also forces HTTPS — which it should.
The correct end state is: a valid certificate on the origin, Cloudflare set to a full or strict mode, and the origin forcing HTTPS. Do not leave the origin unencrypted just to make the error go away.
If you enabled a proxy and SSL broke in the same hour, undo the proxy change first and confirm the site works again before you touch anything else. One change at a time is what makes the cause identifiable.
A valid certificate plus an insecure resource equals no padlock. Browsers treat
a page that loads any resource over http:// as not fully secure, and some
browsers block the resource outright.
Find the offending resources with the browser’s developer tools. Open the Console, reload, and look for mixed content warnings. They name the exact URL that is loading over http.
Then fix the source:
http:// reference to a font, image or script in
a template file. Edit the file in the file manager.After fixing the source, purge every cache layer: the LiteSpeed Cache page cache, any object cache, and the CDN cache. A cached HTML page will keep serving the old http references even after you have fixed the database.
If the certificate is valid on the server, the site loads over https in a private window, but your normal browser still complains, the browser is holding an old certificate or an HSTS state from a previous configuration.
This one is worth its own entry because it mimics mixed content and survives
every other fix. If WordPress’s siteurl and home options are set to http://,
WordPress generates http links everywhere, and forcing the redirect creates a
loop where the browser bounces between http and https.
Check the values in the WordPress settings, or in wp-config.php if they are
defined there. Update them to https://, then purge the cache. If the admin area
becomes unreachable after the change, that is the classic symptom of a mismatch —
revert the value, fix the redirect, and try again in the other order.
Even with a perfect certificate, visitors who type the plain domain or follow an
old http:// link will land on the unencrypted version. Force the redirect.
In the SSL area for the domain there is an HTTPS redirect setting. Enabling it makes Hostinger handle the redirect at the server level, which is the cleaner option because it survives theme changes and plugin updates.
If you prefer to control it yourself, add a rewrite rule to the .htaccess file
in your site’s root directory, above the WordPress block:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Back up .htaccess before editing it. A syntax error in this file takes the
whole site down with a 500 error, not just the redirect.
If you are also changing the site’s canonical URL, do the redirect first, confirm the site loads over https, and only then update the WordPress site URL. Changing both at once makes it hard to tell which one broke the site.
www. A certificate issued for one and not the
other is a common and easily missed failure.Test
https://andhttps://www.separately, every time. Roughly half the “SSL is broken” reports we see turn out to be a certificate that covers one hostname and not the other.
.htaccess.Free SSL is included on every plan, and unlimited certificates on most — the Premium plan page covers what is bundled at the entry tier, and Cloud Startup adds a dedicated IP. If the site is slow rather than insecure, the speed checklist is the better starting point, and if mail rather than the website is failing, see the email deliverability guide.
Confirm the certificate exists and is issued
Open the SSL section for the domain in hPanel. If the certificate is still provisioning, wait. Issuance is normally fast but depends on DNS resolving correctly first.
Confirm DNS points at Hostinger
Check that the domain's nameservers or A records resolve to your Hostinger hosting. A certificate cannot validate for a domain that resolves elsewhere.
Resolve any Cloudflare proxy conflict
If the domain is behind Cloudflare, the proxy can intercept the validation request and the SSL mode setting can conflict with the origin certificate. Set the mode appropriately or temporarily disable the proxy while the certificate issues.
Fix mixed content
A padlock that shows a warning rather than a lock usually means the page loads some resources over http. Search the theme and database for http:// references and replace them with https://.
Force HTTPS
Enable the HTTPS redirect for the domain in hPanel, or add a rewrite rule to .htaccess so that every http request is redirected to https.
Clear stale browser and CDN caches
If the certificate is valid but your browser still shows an error, the browser is holding an old certificate. Clear the SSL state, try a private window, and purge the CDN cache.
Daniel Okafor
Technical editor
Daniel is a systems engineer who runs a fleet of KVM boxes for client projects. He writes our VPS, performance and troubleshooting guides.
Last updated
HostScope tests hosting hands-on and publishes the renewal prices, resource limits and limitations that most review sites leave out. Read ourtesting methodologyandeditorial policy.
Why Hostinger emails land in spam and how to fix it with SPF, DKIM and DMARC records, plus the send limits that silently break contact forms.
Twelve fixes for a slow Hostinger site, in priority order, from the built-in CDN and LiteSpeed Cache to PHP version, images, database bloat and plan limits.
Why WordPress loses its database on Hostinger and how to fix it: credentials, user permissions, host name, size limits, corrupted tables and phpMyAdmin repair.
A blank WordPress page is almost always a hidden fatal PHP error. Turn on WP_DEBUG, raise the memory limit, disable plugins and restore from a backup.