debricked / dmarc-visualizer

Analyse and visualize DMARC results using open-source tools
Apache License 2.0
662 stars 163 forks source link

IMAP Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate #21

Open MrHappy opened 3 years ago

MrHappy commented 3 years ago

After the three containers are started I get the following message parsedmarc_1 | ERROR:cli.py:696:IMAP Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131) dmarc-visualizer_parsedmarc_1 exited with code 1 That is weird because my mailserver has no self-signed-certificate, but a genuine one which expires somewhere late october. My parsedmarc.ini settings are:

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

[imap]
host = mailserver.domain.tld
WRONG_VERSION_NUMBER]
port = 993
user = user@domain.tld
password = password
watch = true
reports_folder = INBOX

[elasticsearch]
hosts = elasticsearch:9200
ssl = false

Setting ssl = False and skip_certificate_verification = True makes no difference.

Any reason why parsedmarc does not start and gives this error?

HumphRey123 commented 3 years ago

Same here with an validated wildcard cert . ERROR:cli.py:696:IMAP Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)

supaeasy commented 3 years ago

Do you use port 993? Do you have special characters in your password?

HumphRey123 commented 3 years ago

my solution is in cli.py ssl verify in #668 and #729 to False . Then it works !

MrHappy commented 3 years ago

Do you use port 993? Do you have special characters in your password?

I use port 993 and have not specials chars in my password.

my solution is in cli.py ssl verify in #668 and #729 to False . Then it works !

Where did you find this file? I cannot use the shell in the container because it keeps restarting... --- nvm found it in an overlay folder. Changed it now it works...

MrHappy commented 3 years ago

After some caching error with a reset password I get the following error:

parsedmarc_1     |    ERROR:cli.py:696:IMAP Error: EOF occurred in violation of protocol (_ssl.c:1129)
dmarc-visualizer_parsedmarc_1 exited with code 1

What is this? It used to work before I reset everything (except the settings etc).

HumphRey123 commented 3 years ago

I don't use the container files. I don't like docker containers , very Inflexible. I have build it like this: https://www.linuxbabe.com/mail-server/parsedmarc-ubuntu-18-04-16-04 and then connect with a grafana instance, that runs since years for me.

HumphRey123 commented 3 years ago

cli.py is located in parsedmarc build