I'm trying to set up Postfix relay server locally to send me alerts about events with rule.level 9 and over but i can't even make the test e-mail work. Every single time i get this error:
2024-11-27T17:05:27.187116+02:00 wazuh postfix/pickup[131198]: 2D8A5267D02: uid=0 from=<e-mail.address>
2024-11-27T17:05:27.198291+02:00 wazuh postfix/cleanup[131235]: 2D8A5267D02: message-id=<2024112715052...@wazuh.localdomain>
2024-11-27T17:05:27.205482+02:00 wazuh postfix/qmgr[131200]: 2D8A5267D02: from=<e-mail.address>, size=365, nrcpt=1 (queue active)
2024-11-27T17:05:27.277170+02:00 wazuh postfix/smtp[131237]: connect to
smtp.office365.com[2603:1026:c01:20::2]:587: Network is unreachable
2024-11-27T17:05:32.634794+02:00 wazuh postfix/smtp[131237]: 2D8A5267D02: to=<e-mail.address>, relay=
smtp.office365.com[40.99.150.98]:587, delay=5.5, delays=0.04/0.05/0.34/5, dsn=5.7.57, status=bounced (host
smtp.office365.com[40.99.150.98] said: 530 5.7.57 Client not authenticated to send mail. [
FR0P281CA0109.DEUP281.PROD.OUTLOOK.COM 2024-11-27T15:05:32.604Z 08DD0E7FDC152C81] (in reply to MAIL FROM command))
2024-11-27T17:05:32.635046+02:00 wazuh postfix/smtp[131237]: 2D8A5267D02: lost connection with
smtp.office365.com[40.99.150.98] while sending RCPT TO
2024-11-27T17:05:32.637201+02:00 wazuh postfix/cleanup[131235]: 9B2F72670AF: message-id=<2024112715053...@wazuh.localdomain>
2024-11-27T17:05:32.644711+02:00 wazuh postfix/bounce[131241]: 2D8A5267D02: sender non-delivery notification: 9B2F72670AF
2024-11-27T17:05:32.645031+02:00 wazuh postfix/qmgr[131200]: 9B2F72670AF: from=<>, size=2521, nrcpt=1 (queue active)
2024-11-27T17:05:32.645098+02:00 wazuh postfix/qmgr[131200]: 2D8A5267D02: removed
2024-11-27T17:05:32.646134+02:00 wazuh postfix/smtp[131237]: connect to
smtp.office365.com[2603:1026:301:54::2]:587: Network is unreachable
2024-11-27T17:05:37.986005+02:00 wazuh postfix/smtp[131237]: 9B2F72670AF: to=<e-mail.address>, relay=
smtp.office365.com[52.98.179.34]:587, delay=5.3, delays=0.01/0/0.3/5, dsn=5.7.57, status=bounced (host
smtp.office365.com[52.98.179.34] said: 530 5.7.57 Client not authenticated to send mail. [
FR5P281CA0052.DEUP281.PROD.OUTLOOK.COM 2024-11-27T15:05:37.955Z 08DD0E659F4DA349] (in reply to MAIL FROM command))
2024-11-27T17:05:37.986399+02:00 wazuh postfix/smtp[131237]: 9B2F72670AF: lost connection with
smtp.office365.com[52.98.179.34] while sending RCPT TO
2024-11-27T17:05:37.989345+02:00 wazuh postfix/qmgr[131200]: 9B2F72670AF: removed
2024-11-27T17:05:42.554937+02:00 wazuh postfix/smtpd[131243]: error: open database /etc/aliases.db: No such file or directory
2024-11-27T17:05:42.555084+02:00 wazuh postfix/smtpd[131243]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
2024-11-27T17:05:42.556597+02:00 wazuh postfix/smtpd[131243]: connect from localhost[127.0.0.1]
2024-11-27T17:05:42.558188+02:00 wazuh postfix/smtpd[131243]: 8834E267CFB: client=localhost[127.0.0.1]
2024-11-27T17:05:42.599748+02:00 wazuh postfix/cleanup[131235]: 8834E267CFB: message-id=<2024112715054...@wazuh.localdomain>
2024-11-27T17:05:42.608176+02:00 wazuh postfix/qmgr[131200]: 8834E267CFB: from=<e-mail.address>, size=1660, nrcpt=1 (queue active)
2024-11-27T17:05:42.608303+02:00 wazuh postfix/smtpd[131243]: disconnect from localhost[127.0.0.1] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5