Message is sent as indicated by a green checkmark at the bottom right of the message.
Actual behavior
A cross symbol instead of a checkmark indicates that the message has not been sent.
Below the message is an info box saying “permanent: 5.3.3 Command not implemented”.
Steps to reproduce the problem
I wanted to send a regular message to a contact as I had done without problems two weeks earlier.
I haven’t updated Delta Chat or changed the configuration in the meantime.
I only switched to a second account at some point and switched back today.
It fails also for other contacts, even in “Saved messages”.
As I understand the description on the mail provider’s page, it’s a Microsoft server:
The mailboxes of a mail domain are hosted on a central Exchange system
However, sending mails from Thunderbird and K-9 Mail works with that account as usual.
There are also no issues in Delta Chat with the second account which is on a completely different server.
I’m aware that it’s therefore probably a server issue. I don’t know what to make of the error message, though – which is the unimplemented command and why is it suddenly a problem? I also wonder why it doesn’t appear in the other e-mail applications.
Debug logs
Logs
03-04 20:22:28.069 5237 12544 W DeltaChat: src/job.rs:254: SMTP failed to send: permanent: 5.3.3 Command not implemented
03-04 20:22:28.069 5237 12544 W DeltaChat: src/message.rs:1500: Msg#445 failed: permanent: 5.3.3 Command not implemented
03-04 20:22:28.100 5237 12544 I DeltaChat: src/job.rs:1100: Finished immediate try 0 of job #387, action SendMsgToSmtp
03-04 20:22:28.100 5237 12544 W DeltaChat: src/job.rs:1052: Smtp removes job #387, action SendMsgToSmtp as it failed with error Permanent SMTP error: permanent: 5.3.3 Command not implemented
If you use Linux, I can give instructions on how to run command-line client with SMTP logs enabled.
My guess is that command not implemented is STARTTLS. You can try to fix the problem by going into “Settings” → Your avatar → “Password and account” and clicking the tickmark without changing anything. This will run autoconfiguration again and, if succeeds, overwrite your configuration with a new working one.
Thanks, I do use Linux and those instructions would be highly welcome.
I had already tried the different SMTP security settings. None of them worked and after going back to the initial Automatic option, the error still appears.
You need to install git (sudo apt-get install git) and Rust (from https://rustup.rs/ with a command curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none running as normal non-root user).
Then clone GitHub - deltachat/deltachat-core-rust: Delta Chat Rust Core library, used by Android/iOS/desktop apps and bindings repository with git clone https://github.com/deltachat/deltachat-core-rust.git. In the folder with deltachat-core-rust source code, run RUST_LOG=info,async_smtp=trace cargo run --example repl --features repl -- deltachat.db. This will compile and run command-line client (REPL, Read-Eval-Print-Loop) with SMTP tracing enabled. There, run the command import-backup your-backup-file.bak and then configure. Or, instead of importing backup, run set addr your-address, set mail_pw your-password and then configure.
Looks like the server advertises 8BITMIME and SMTPUTF8 in response to EHLO, but then rejects MAIL FROM:<${address}> BODY=8BITMIME SMTPUTF8 after successful STARTTLS and AUTH with 502 5.3.3 Command not implemented.
Looks like a bug in MS exchange, but I wonder why Thunderbird and K-9 work, they probably have some workaround for this.