Reports to stalwart.email fail

Your question

Hello, stalwart wants to send reports to stalwart.email, however it doesn’t work, and stalwart doesn’t stop with this, it retries and retries…

I get this error message:

INFO SMTP greeting failed (delivery.greeting-failed) queueId = 326738569095822848, queueName = “default”, from = “[email protected]”, to = [“[email protected]”], size = 3563, total = 1, domain = “stalwart.email”, hostname = “mail.stalw.art”, details = “Temporary Failure for mail.stalw.art: Connection failed: Unparseable SMTP reply”

can I disable this for only the stalwart.email domain?

best regards, Stefan

You can scope a fast-expiring delivery schedule to just that recipient domain, so Stalwart stops retrying deliveries to stalwart.email without touching your report generation for anything else.

Reports going to [email protected] are ordinary outbound queue items, subject to the same routing/scheduling engine as any other outbound mail. On the MtaOutboundStrategy singleton, the schedule expression is evaluated per recipient and can branch on rcpt_domain:

{
  "schedule": {
    "match": [
      {"if": "rcpt_domain == 'stalwart.email'", "then": "'no-retry'"}
    ],
    "else": "'remote'"
  }
}

Then define a MtaDeliverySchedule named no-retry that expires after a single attempt instead of retrying for days:

{
  "name": "no-retry",
  "queueId": "<MtaVirtualQueue id>",
  "retry": {"@type": "Default"},
  "notify": {"@type": "Default"},
  "expiry": {"@type": "Attempts", "maxAttempts": 1}
}

This makes any message queued for stalwart.email (including reports) fail fast and bounce/expire instead of retrying indefinitely, while all other outbound mail keeps using your normal remote schedule. See the Scheduling and Strategies docs for the full field reference:

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

what should i choose here? “report” ?

This is not normal. Can you try executing ‘telnet mail.stalw.art 25’ and paste here the response?
Are you having problems with other domains? Do you have a proxy of some kind sitting in front of your server?

telnet mail.stalw.art 25
Trying 2a01:4f9:c011:b43c::1…
Connected to mail.stalw.art.
Escape character is ‘^]’.
220 mail.stalw.art Stalwart ESMTP at your service

but there is this:

It looks like your IPv4 was banned by our server, if you can email your IP addresses to [email protected] we will investigate

ok. I sent you the email.