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
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
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.
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). 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?