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: 454
Joined: 20 Nov 2011, 16:08
Znuny / OTRS Version: 6.0.43
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: 3183
Joined: 18 Dec 2007, 12:23
Znuny / OTRS Version: Znuny LTS and 4/5/6
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 LTS and ((OTRS) Community Edition 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