I have installed stalwart now correctly, but system mails are not sent. what is wrong?

Your question

I have installed stalwart now correctly, but system mails are not sent. what is wrong?

The question is quite broad (“system mails are not sent”), so here is a structured diagnostic approach based on what the docs cover:


“System mails not sent” can have several root causes. Here is what to check, in order:

1. Check the outbound queue
Go to the WebUI under Management > Queue (the QueuedMessage object). Look at the queued messages to see if the mails are sitting there with a TemporaryFailure or PermanentFailure status and an error type such as dnsError, connectionError, or tlsError. This will pinpoint what is actually failing.

2. Check DNS and routing
Stalwart by default resolves recipient domains via MX records (Mx route). If your server cannot do outbound DNS lookups, or if port 25 is blocked by your hosting provider (very common on VPS/cloud), delivery will fail silently. Make sure:

  • Your server can resolve external DNS (test with dig MX gmail.com from the server).
  • Outbound port 25 is not blocked by your firewall or hosting provider.
  • If port 25 is blocked, you need to configure a relay host (Settings > MTA Outbound Routing, choose the Relay variant and point it at a smarthost/relay that accepts your mail).

3. Check sender address configuration
System-generated mails (DSNs, alerts, calendar notifications) use a MAILER-DAEMON@<your-domain> sender by default. If your domain is not configured correctly in Stalwart, or the fromAddress is invalid, some remote servers may reject them.

4. Enable telemetry/logging for delivery events
Turn on delivery.* and queue.* events in your telemetry configuration so you can see exactly what is happening per message attempt.

Relevant docs:

Could you share what error you see in the queue (TemporaryFailure/PermanentFailure and the error type), or what logs you see? That will help narrow it down significantly.

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

everything seems ok.
the strange thing is, at the beginning, the system mails worked. but after a certain point ( I don’t know what has changed) this stopped.

Check your logs for details. The error description you provided is too generic.

it works now. i had to set up a custom wrapper with msmtp-mta