# SPF check failed

**URL:** https://support.stalw.art/t/spf-check-failed/2196
**Category:** Issues
**Created:** [November 3, 2026, 9:12pm UTC](https://support.stalw.art/t/spf-check-failed/2196 "2026-11-03T21:12:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Fluffy41](https://support.stalw.art/user_avatar/support.stalw.art/fluffy41/32/1241_2.png) [@Fluffy41](https://support.stalw.art/u/Fluffy41)
#### Post date: [November 3, 2026, 9:12pm UTC](https://support.stalw.art/t/spf-check-failed/2196/1 "2026-11-03T21:12:24Z")

</div>

### Issue Description

When trying to send send a E-Mail to homebase-verein.at it gets rejected from stalwart because it apperantly does not exist? The records do exist the weird thing is that its only for this domain and not for every domain. Tried it with big companies like icloud and there it works.

### Expected Behavior

The email should be accepted

### Actual Behavior

app-1 | 2026-11-03T21:08:05Z INFO SPF EHLO check failed (smtp.spf-ehlo-fail) listenerId = “smtp”, localPort = 25, remoteIp = 78.46.219.3, remotePort = 43048, domain = “mail.homebase-verein.at”, result = SPF check failed (spf.fail), elapsed = 0ms

### Relevant Log Output

app-1 | 2026-11-03T21:08:05Z INFO SPF EHLO check failed (smtp.spf-ehlo-fail) listenerId = “smtp”, localPort = 25, remoteIp = 78.46.219.3, remotePort = 43048, domain = “mail.homebase-verein.at”, result = SPF check failed (spf.fail), elapsed = 0ms

### Stalwart Version

v1.x

### Installation Method

Docker

### Database Backend

PostgreSQL

### Blob Storage

S3-compatible

### Search Engine

PostgreSQL

### Directory Backend

Internal

### I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

### I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

---

<div class="post-metadata">

### Author: ![helpbot](https://support.stalw.art/user_avatar/support.stalw.art/helpbot/32/13_2.png) [@helpbot](https://support.stalw.art/u/helpbot)
#### Post date: [November 3, 2026, 9:12pm UTC](https://support.stalw.art/t/spf-check-failed/2196/2 "2026-11-03T21:12:34Z")

</div>

The log line you posted doesn’t show a rejection. It only shows an SPF result for the sending server, and it’s very likely not the cause of your problem.

By default, Stalwart runs both SPF checks in `relaxed` mode on port 25. That mode records the result and never refuses the connection. `smtp.spf-ehlo-fail` is an INFO log entry saying the EHLO identity `mail.homebase-verein.at` failed SPF from IP 78.46.219.3. The result feeds DMARC and the spam score, but it doesn’t reject anything unless you changed `spfEhloVerify` or `spfFromVerify` to `strict`.

SPF failing here means the SPF record for `mail.homebase-verein.at` doesn’t authorize 78.46.219.3. That is a problem on the sender’s side. Check it with `dig TXT mail.homebase-verein.at`, and look for a missing record or one without that IP. Also check that the record isn’t broken, for example by having multiple SPF records or too many DNS lookups.

To work out which direction the failure is in:

- **Mail from homebase-verein.at is rejected by your Stalwart.** Check the SMTP reply the sender received, and whether you set `spfEhloVerify` or `spfFromVerify` to `strict` on the SenderAuth object. A strict check refuses anything that isn’t a `pass`, and that includes domains with no SPF record at all. Setting it back to `relaxed` stops the rejections.
- **Your Stalwart can’t send to homebase-verein.at.** The log above isn’t relevant to that. Look at the outbound delivery logs and the exact error from the remote server. A “does not exist” error usually points to the recipient domain’s MX or DNS records, or to the remote server’s own policy.

If you post the exact rejection text, and say whether it’s inbound or outbound, I can narrow it down further.

Docs: [SPF | Stalwart](https://stalw.art/docs/mta/authentication/spf)

_This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong._

---

<div class="post-metadata">

### Author: ![stalwart](https://support.stalw.art/user_avatar/support.stalw.art/stalwart/32/12_2.png) [@stalwart](https://support.stalw.art/u/stalwart)
#### Post date: [November 4, 2026, 6:59am UTC](https://support.stalw.art/t/spf-check-failed/2196/3 "2026-11-04T06:59:00Z")

</div>

Hi,

I ran the SPF check for that host against the current DNS and it passes. `mail.homebase-verein.at` publishes `v=spf1 mx:homebase-verein.at -all`, the MX for `homebase-verein.at` is `mail.homebase-verein.at`, and that resolves to 78.46.219.3, the IP in your log. So either the records were different when that connection came in, or your server’s DNS resolver returned something else at the time. The MX and A records have a TTL of 1 second, which makes me think they were being edited recently. If the problem is still there today, I’d look at the resolver your Docker container uses.

The log line also points the other way from what you describe: it’s `mail.homebase-verein.at` connecting to your server on port 25, not your server delivering to them. With the default settings the EHLO SPF check is relaxed, so a failure there only gets logged and the message isn’t rejected (see `spfEhloVerify` in [SenderAuth | Stalwart](https://stalw.art/docs/ref/object/sender-auth)). Whatever rejects your outgoing mail happens somewhere else.

What’s the full error text in the bounce you get back when you send to homebase-verein.at?
