What is the simplest way to send automated notifications through Delta Chat?

I’m migrating my email to a new provider that has significant delivery limits and that does not have great “push” support.

While trying to improve push delivery of emails, I played around with Delta Chat and realized it did push email better than many alternatives! I had heard great things about Delta Chat, but had never sat down to play with it, and I’m now thinking it’s “the future”!

I would like to use Delta Chat for notifications about my infrastructure- I don’t want to use my new provider because of their delivery limits.

I thought about just sending email to a Delta Chat email address, but chatmail servers require encrypted email.

How would you got for the absolutely most minimalistic way to have a “command” like:

$ notify -s Foobar <<EOF
Content of the notification
EOF

That notifies me on Delta Chat?

Please use forum search before posting questions.

@Minim Still no progress with CLI sending to DC?

(Edited out incorrect info)

The default Chatmail server requires it only for outbound emails. You can receive unencrypted emails just fine. See passthrough_recipients (added in add support for specifying whole domains for passthrough · chatmail/relay@72df078 · GitHub).

Edit: see

But otherwise you can make a Delta Chat bot: GitHub - deltachat-bot/deltabot-cli-py: Library to speedup Delta Chat bot development.

@WofWca’s advice is probably more relevant to the OP than the rest of this post.

Indeed there has been progress! I may even finish getting Neomutt sending Chatmails in the next day or so, assuming nothing else goes wrong, which it probably will :slight_smile:. At which point I shall post my config, which unfortunately requires a recompile of Neomutt.

My choices are heavily constrained by my working on a Pinephone and wanting a mobile-usable client, among other things. On a desktop, using a CLI but not necessarily a client, there are probably easier ways.

You need Autocrypt functionality; this list of tools with Autocrypt functionality says that it is outdated, but I haven’t found better (@Simon pointed me at it). It is worth checking things not on the list; for instance, KMail has Autocrypt support. Also worth checking if GUI mail clients have command-line interfaces.

Hmmm, I tried sending an unencrypted email from GMail to my nine.testrun.org and it bounced immediately. I intend to use existing servers, so I don’t think I have much leeway to change passthrough_recipients.

I’ve read about bots and stuff- I was just wondering what’s the shortest path to getting something running. Bots don’t seem difficult, but it seems weird to write a bot for an “immediate” one-way email delivery, instead of for a long-running process that can read and send messages.

I’m using msmtp as the posts that 9er links currently too.

My question was more… is it easier to write a bot than to send encrypted mail that nine.testrun.org will accept? Or use something else?

I’m just evaluating options. I can just use something else, although it looked neat to get notifications through Delta Chat- with different contacts I could apply different notification policies, etc. If I had infinite time I’d go for a bot, because it might be cool to reply to some notifications (e.g. send a reboot command if I receive an alert that package updates for a server require a reboot).

this is no longer true. Chatmail server require end-to-end-encryption for both, incoming and outbound mails, see Delta Chat V2: a major security upgrade, beautified contact profiles, new email action and direct app access in chats - Delta Chat

this was different in the past, and existing profiles were not changed, but for new profiles end-to-end-encryption is mandatory

2 Likes

On send Chatmail mails without using Deltatouch, I was going to write up what I’d done when I got it working, but perhaps I should post the bits I’m fairly sure are right as I go. I have not found it trivial, substantially because the tools are often not well-documented, though I’m sure I’m making it harder for myself. I’d think a bot might well be easier.

See Chatmail with Neomutt. Note I still haven’t got it working, advice welcome!