i sent a test mail from the Postfix container and it sends out correctly without putting me in both TO and CCN.
From the logs of the container nothing seems to be wrong. I'll attach it here to have a look:
Jun 30 08:09:19 wazuh-smtp smtpd[521]: connect from wazuh.master
Jun 30 08:09:20 wazuh-smtp smtpd[521]: 03176186CC0CB: client=wazuh.master
Jun 30 08:09:20 wazuh-smtp cleanup[524]: 03176186CC0CB: warning: header Subject: Wazuh notification - (OMISSIS) any - Alert level 11 from wazuh.master[OMISSIS]; from=<OMISSIS> to=<OMISSIS> proto=SMTP helo=<
notify.ossec.net>
Jun 30 08:09:20 wazuh-smtp cleanup[524]: 03176186CC0CB: message-id=<>
Jun 30 08:09:20 wazuh-smtp qmgr[96]: 03176186CC0CB: from=<OMISSIS>, size=812, nrcpt=3 (queue active)
Jun 30 08:09:20 wazuh-smtp smtpd[521]: disconnect from wazuh.master
Jun 30 08:09:22 wazuh-smtp smtp[525]: 03176186CC0CB: to=<OMISSIS>, relay=
smtp.gmail.com[172.253.120.108]:587, delay=2.3, delays=0.09/0.08/0.63/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1656569362 p28-20020a1c545c000000b003a02de5de80sm1445702wmi.4 - gsmtp)
Jun 30 08:09:22 wazuh-smtp smtp[525]: 03176186CC0CB: to=<OMISSIS>, relay=
smtp.gmail.com[172.253.120.108]:587, delay=2.3, delays=0.09/0.08/0.63/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1656569362 p28-20020a1c545c000000b003a02de5de80sm1445702wmi.4 - gsmtp)
Jun 30 08:09:22 wazuh-smtp smtp[525]: 03176186CC0CB: to=<OMISSIS>, relay=
smtp.gmail.com[172.253.120.108]:587, delay=2.3, delays=0.09/0.08/0.63/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1656569362 p28-20020a1c545c000000b003a02de5de80sm1445702wmi.4 - gsmtp)
Jun 30 08:09:22 wazuh-smtp qmgr[96]: 03176186CC0CB: removed
Daniel D.