nextcloud / mail

💌 Mail app for Nextcloud
https://apps.nextcloud.com/apps/mail
GNU Affero General Public License v3.0
839 stars 259 forks source link

S/MIME singing only works if mailbody is empty or has just one word #9796

Open cypress-hill-car opened 3 months ago

cypress-hill-car commented 3 months ago

Steps to reproduce

  1. install a S/MIME Certificate
  2. add Cert to the Mail-Account
  3. Send a Mail "S/MIME signed" with no Text in the body => Works fine
  4. Send a Mail "S/MIME signed" with Text in the body => Singing invalid (view Sent-Folder)

See test results of "Test Signing 1" with empty mail body and "Test Signign 2" with filled mail body: signed_none_empty_mailbody signed_empty_mailbody

Expected behavior

Mails with Attachments and/or Text in Mailbody should be signed properly.

Actual behavior

For signed emails with attachments and/or text in the mail body, the signature verification fails.

Mail app version

mail: 3.7.2

Mailserver or service

No response

Operating system

archlinux arm

PHP engine version

PHP 8.3

Web server

Nginx

Database

MariaDB

Additional info

Hint: Mail encryption works as espected.

ChristophWurst commented 3 months ago

@st3iny can you check this?

cypress-hill-car commented 3 months ago

Falls es hilft: Nextcloud 29.0.3 Kernel 6.9.7-1-aarch64-ARCH mariadb from 11.4.2-MariaDB, client 15.2 for Linux (aarch64) using readline 5.1 PHP 8.3.9 (built: Jul 3 2024 01:58:08) (NTS) nginx/1.26.1 with modsecurity 3.0.12-1 OpenVPN 2.6.11, OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)

Ansonsten für weitere Infos gerne nachfragen. VG Markus