Narazil jsem na problem s predavanim logu do postgresql z rsyslogu.
mail.log:
Jan 6 00:07:50 SOMEHOST postfix/smtp[462873]: 4Np2F15wZMz1YK: to=<SOMEMAIL>, relay=eur.olc.protection.outlook.com[104.47.18.161]:25, delay=0.92, delays=0.1/0/0.79/0.02, dsn=5.7.1, status=bounced (host eur.olc.protection.outlook.com[104.47.18.161] said: 550 5.7.1 Unfortunately, messages from [SOMEIP] weren't sent. Please contact your Internet service provider since part of their network is on our block list (S3150). You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors. [AM7EUR06FT064.eop-eur06.prod.protection.outlook.com] (in reply to MAIL FROM command))
postgresql.log:
2023-01-06 00:07:50.778 CET [3445242] USER@DB ERROR: syntax error at or near "t" at character 390
2023-01-06 00:07:50.778 CET [3445242] USER@DB STATEMENT: INSERT INTO SOMETABLE (message, timereported) values('Jan 6 00:07:50 SOMEHOST postfix/smtp[462873]: 4Np2F15wZMz1YK: to=<SOMEUSER>, relay=eur.olc.protection.outlook.com[104.47.18.161]:25, delay=0.92, delays=0.1/0/0.79/0.02, dsn=5.7.1, status=bounced (host eur.olc.protection.outlook.com[104.47.18.161] said: 550 5.7.1 Unfortunately, messages from [SOMEIP] weren\'t sent. Please contact your Internet service provider since part of their network is on our block list (S3150). You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors. [AM7EUR06FT064.eop-eur06.prod.protection.outlook.com] (in reply to MAIL FROM command))','2023-01-05 23:07:50')
Predpokladam, ze je to zpusobeno weren't
ktere je v sql dotazu jako weren\t
.
Jaka je nejlepsi cesta? Funkce na strane postgre? Nejaka extra uprava (jaka?) na strane rsyslogu (viz ta ##postfix konfigurace o prispevek vyse)?