Hi dear team,
I've modified the zimbra logs by adding custom headers as subject and attachment, and
i need help to decoded this logs,for example
Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Subject: con subject y attachment from mail.cxxa[x.x.x.x]; from=<axx@cxxa> to=<bxxx@rxe> proto=ESMTP helo=<mail.xxx2.xx>
Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Content-Disposition: attachment; filename="report incident ransonware.pdf" from mail.cxxa[x.x.x.x]; from=<axx@cxa> to=<bx@rox> proto=ESMTP helo=<mail.xxx2.xx>
I've tried with these decoders :
<decoder name="postfix-subject">
<program_name>^cleanup</program_name>
</decoder>
<decoder name="postfix-subject1">
<parent>postfix-subject</parent>
<regex>85FCE1015056: warning: (\w+) Subject: (\.+) from (\S+)[\S+]; from=\<(\S+)> to=\<(\S+)> proto=(\S+) helo=\<(\S+)></regex>
<order>header, subject, dominio, postfixfrom, postfixto, postfixproto, postfixelo</order>
</decoder>
<decoder name="postfix-attachment">
<parent>postfix-subjt</parent>
<regex>warning: (\w+) \w+-\w+: \w+; filename=(\.+) from (\S+)[\d+.\d+.\d+.\d+]; from=\<(\S+)> to=\<(\S+)> proto=(\S+) helo=\<(\S+)></regex>
<order>warning, filename, dominio, pxfrom, pxto, postfixproto, postfixelo</order>
</decoder>
but the results are not as expected;

I 've tested my regex in the wazuh-regex test, as shown below:
/var/ossec/bin/wazuh-regex '85FCE1015056: warning: (\w+) Subject: (\.+) from (\S+)[\d+.\d+.\d+.\d+]; from=\<(\S+)> to=\<(\S+)> proto=(\S+) helo=\<(\S+)>|85FCE1015056: warning: (\w+) \w+-\w+: \w+; filename=(\.+) from (\S+)[\d+.\d+.\d+.\d+]; from=\<(\S+)> to=\<(\S+)> proto=(\S+) helo=\<(\S+)>'
Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Subject: con subject y attachment from mail.cxxa[172.16.20.7]; from=<axx@cxxa> to=<bxe@rxe> proto=ESMTP helo=<mail.cxxa>
+OSRegex_Execute: Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Subject: con subject y attachment from mail.cxxa[172.16.20.7]; from=<axx@cxxa> to=<bxe@rxe> proto=ESMTP helo=<mail.cxxa>
-Substring: header
-Substring: con subject y attachment
-Substring: mail.cxxa
-Substring: axx@cxxa
-Substring: bxe@rx
-Substring: ESMTP
-Substring: mail.cxxa
+OS_Regex : Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Subject: con subject y attachment from mail.cxxa[172.16.20.7]; from=<axx@cxxa> to=<
bx...@rop.pe> proto=ESMTP helo=<mail.cxxa>
Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Content-Disposition: attachment; filename="report incident ransonware.pdf" from mail.cxxa[172.16.20.7]; from=<axx@cxxa> to=<bxxe@rxe> proto=ESMTP helo=<mail.cxxa>
+OSRegex_Execute: Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Content-Disposition: attachment; filename="report incident ransonware.pdf" from mail.cxxa[172.16.20.7]; from=<axx@cxxa> to=<bxe@rxe> proto=ESMTP helo=<mail.cxa>
-Substring: header
-Substring: "report incident ransonware.pdf"
-Substring: mail.cxxa
-Substring: araez@cxxa
-Substring: bxxe@rxe
-Substring: ESMTP
-Substring: mail.cxxa
+OS_Regex : Jun 27 09:36:26 mail postfix/cleanup[2722285]: 85FCE1015056: warning: header Content-Disposition: attachment; filename="report incident ransonware.pdf" from mail.cxxa[172.16.20.7]; from=<axx@cxxa> to=<bxe@rxe> proto=ESMTP helo=<mail.cxxa>
So , what is my mistake?