domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
966 stars 210 forks source link

parsedmarc_1 | ERROR:cli.py:752:You must supply input files or a mailbox connection #346

Open bbccdd opened 1 year ago

bbccdd commented 1 year ago

Hi. After spending a few hours troubleshooting based on the documentation, I kindly request your suggestions for unlocking me at this error:

parsedmarc_1 | ERROR:cli.py:752:You must supply input files or a mailbox connection

However, I am using proper formatting I belive. parsedmarc is called with -c parsedmarc.ini, included (anonymized) here:

[general]
save_aggregate = True
save_forensic = True
output = /output/

[imap]
host = fqdn
port = 143
ssl = True
user = username
password = secret

[mailbox]
watch = True
delete = False

[elasticsearch]
hosts = elasticsearch:9200
ssl = False

Your pointers are most welcome!

PS parsedmarc is used as part of https://github.com/debricked/dmarc-visualizer.

d18c7db commented 1 year ago

I had the exact same error, turns out the service which runs as user "parsedmarc" had no permission to access the .ini file You can verify if this is in fact your problem by running the service as the user, adjust the paths according to your installation.

sudo -u parsedmarc /opt/parsedmarc/venv/bin/parsedmarc -c /etc/dmarc/parsedmarc.ini