userjack6880 / Open-Report-Parser

A Perl based tool to parse DMARC reports from an IMAP mailbox or from the filesystem, and insert the information into a database. Derived from Techsneeze's dmarcts-report-parser
GNU General Public License v3.0
33 stars 9 forks source link

[Bug]: Wrong mysql socket location #33

Open OnniSaarni opened 5 months ago

OnniSaarni commented 5 months ago

Describe the bug The script can not connect to a database because of a wrong mysql.sock location

To Reproduce I was using bitnami lamp which has mariadb installed by default and it has a different location for mysql.sock. Start the script without changing it manually from report.parser.pl

Expected behavior Script should have ran without any problems.

Software Version [X] Version 0 Alpha 5 [] Version 0 Alpha 4 [] Version 0 Alpha 3 [] Version 0 Alpha 2

Server (please complete the following information):

Additional context I fixed it by adding changing line 367 in report-parser.pl:

kuva

Could be nice to have some kind of option to change that in the config.

Also changing MySQL my.cnf did not fix this issue.