Possible Bug: S/MIME uses the wrong address for decryption

English! place to talk about development, programming and coding
Post Reply
schulmann
Znuny wizard
Posts: 470
Joined: 20 Nov 2011, 16:08
Znuny Version: 6.5.4
Real Name: Schulmann

Possible Bug: S/MIME uses the wrong address for decryption

Post by schulmann »

Hi,

Kernel/System/PostMaster/Filter/Decrypt.pm searches for the sender's private key instead of the recipient's private key.

Here is my code change:

Code: Select all

root@o6:/opt/otrs/Kernel/System/PostMaster/Filter# diff -u3 Decrypt.pm.~1~ Decrypt.pm
--- Decrypt.pm.~1~	2022-03-09 15:49:06.000000000 +0100
+++ Decrypt.pm	2022-04-17 15:15:56.135413283 +0200
@@ -215,7 +215,7 @@
     }
 
     my $IncomingMailAddress;
-    for my $Email (qw(From)) {
+    for my $Email (qw(To)) {
 
         my @EmailAddressOnField = $Self->{ParserObject}->SplitAddressLine(
             Line => $Self->{ParserObject}->GetParam( WHAT => $Email ),
root@o6:/opt/otrs/Kernel/System/PostMaster/Filter# 
Best regards
CD
Znuny6/Debian/ESXi
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Possible Bug: S/MIME uses the wrong address for decryption

Post by root »

Hi,

If you're sure this is a bug please file a report at https://github.com/znuny/Znuny/issues/new/choose

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply