I tried with this decoder:
<decoder name="postfix">
<prematch>postfix/qmgr[\S+]|postfix/smtp[\S+]|postfix/lmtp[\S+]</prematch>
</decoder>
<decoder name="postfix-1">
<parent>postfix</parent>
<regex>(\S+): from=\<(\S+)>, size=(\S+), nrcpt=(\S+)</regex>
<order>id, from, size, nrcpt</order>
</decoder>
<decoder name="postfix-1">
<parent>postfix</parent>
<regex>(\S+): to=\<(\S+)>, relay=(\S+), delay=(\S+), delays=(\S+), dsn=(\S+), status=(\ .+)</regex>
<order>id, to, relay, delay, delays, dsn, status</order>
</decoder>
<decoder name="postfix-1">
<parent>postfix</parent>
<regex offset="after_parent">(\S+): (\S+)</regex>
<order>id, status</order>
</decoder>
But it brings me another field where it says "status" it is precisely the field that I want to make a rule.
This is the example log:
Feb 14 09:55:44 NAS-Synology postfix/smtp[17524]: 0D000125267: to=<
m.de...@fiambresdj.com.ar>, relay=
farmesa-com.mail.protection.outlook.com[104.47.57.110 ]:25, conn_use=2, delay=15, delays=0.08/7.8/0.33/6.5, dsn=2.6.0, status=sent (250 2.6.0 <
ADR48000...@farmesa.com> [InternalId=24502788433552, Hostname=
CP2PR80MB4499.lamprd80.prod.outlook.com] 614065 bytes in 3.432, 174.706 KB/sec Queued mail for delivery)
El martes, 14 de febrero de 2023 a las 11:09:31 UTC-3, Damian Nicastro escribió: