gutmensch / docker-dmarc-report

229 stars 26 forks source link

imap read folder not defined #55

Closed Project23D closed 7 months ago

Project23D commented 7 months ago

docker-compose.yml except:

root@vault:~/dmarc-report# docker run -e docker-compose.yml -ti gutmensch/dmarc-report CRIT: Dmarc reports could not be parsed. Check your IMAP and MYSQL Settings. DEBUG: Parsing failed with the following output: dmarcts-report-parser.pl: $imapreadfolder not defined. Check config file at /usr/bin/dmarcts-report-parser.pl line 201.

gutmensch commented 7 months ago

@Project23D For docker-compose format you need actually docker-compose and not only docker e.g. from here https://docs.docker.com/compose/install/standalone/

For your command you would need to change this to something like

docker run -e PARSER_IMAP_SERVER=example.com -e PARSER_IMAP_READ_FOLDER=Inbox -e ... -ti gutmensch/dmarc-report
gutmensch commented 7 months ago

The docker compose format in the README is just provided as example - if you don't use compose and/or use other container "wrappers" you need to figure out the correct application of environment variables yourself.