Add the ability to remove contacts from the spam list of the mail server

Expected behavior

Actual behavior

Example Images

can you elaborate? i do not really understand

When migrating to Deltachat as part of a team, we create accounts on the email service. After a short exchange of messages, they stop arriving.

It turns out this happens because the messages are marked as spam and end stop for sending to Deltachat.

To restore message exchange in Deltachat, i have to log in to the web page of your email account and remove the messages that have traped in the spam list.

Messages end up in the spam list due to similar (almost identical) subj, topics and other similar features. For reliability, it’s better to first force add the item to the spam list and then unspam it. That is, mark it as not spam.
Everything seems simple, but often i have to do this work for your colleagues — log in to their mailbox and unspam yourself and others persons.

Therefore, I suggest adding an item to the context menu for each contact: “unspam.” I found that the IMAP API has suitable methods.

in general, Delta Chat is build so that the server is not meant to know anything about any data. this also means that we’re using as few commands and means as possible, so we do not want to communicate with servers this way.

but there are other solutions:

Delta Chat works best with chatmail relays - which avoid the complications of “message triage” by not doing it. things are end-to-end-encrypted between clients, and the clients and only the clients decide about if a message is worthful or not.

so, maybe using chatmail relais is an option - that could be the default relays or a dedicated relay you set up for your company. this would also make the onboarding far easier.

this not depending much on the server, exactly allows to also use classic email servers as relays. in that case, there are some larger challenges as you just encountered, e.g. you need to configure the spam filter on the server itself. however, “Delta Chat” cannot give support on that.

First, we tried using DeltaChat relay. The result was the same. Moreover, there are incomprehensible means of administering your account. I can compose separate/standalone Python scripts that solve this problem. Or do you think my problem is far‑fetched and not worth paying attention to?

Also i understand how to see account(email) of persons from my contacts?

you cannot.

the addresses are used for transport only and not meaningful for delta chat - in fact, user can always change them. see our new blogpost to get an idea.

from UI and end-user-perspective, best is, to forget that imap/smtp is used technically - similar as the protocol does not matter for whatsapp, signal etc. as well.

to get in contact, you need to use an invitation link

I run a relay, there is no spam monitoring (nor could there be in a classic sense, as it’s impossible to scan the content) nor any concept of whitelisting an account or sender. The relay only cares about the encryption state of the payload and surrounding technicalities to enforce E2EE.

Is it possible what you’re running into is rate limiting, in that you have 1 or more persons sending an abnormally large number of messages per second? This can be adjusted running your own relay, it’s a configurable value - the defaults are 60 msgs/min with a 10 slot burst bucket per user. Sending more than one message a second will probably trip this limit.

The message exchange rate is low, no more than 1 message per minute. After the “spam cleanup,” the message exchange was good. And initially, the web interface showed a cluster of frozen messages in the spam list. I might not be very smart, so I might not understand what’s going on. )))

Nah it’s not about you not being smart - the “problem” is the emails which DC is pushing around are RFC compliant, but they can look like spam because all the fields are generally redacted on purpose; the headers are basically stripped of normal information. This lack of a normal looking email - an object with a mangled from, to and internal headers - is causing a generic spam filter to categorize it as malicious. It’s a reasonable take, even if DKIM, DMARC and SPF are good. The content is a blob they can’t scan (PGP payload).

The writing is on the wall (and a new blog post from the DC devs) - using classic email servers is not part of the future, the focus is on using ephemeral relays which know how to handle chatmail objects for what they are, not what they look like. You’ve run into a problem which adds weight to their choice, traditional spam filters and chatmail objects are oil and water, I think, and furthers the goal to move to relay only infra. (not only that, more work on the relays to make them invisible to sniffers in certain locations on the planet).