Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsedmarc-1 don't start #37

Open
LMarly opened this issue Apr 8, 2024 · 1 comment
Open

parsedmarc-1 don't start #37

LMarly opened this issue Apr 8, 2024 · 1 comment

Comments

@LMarly
Copy link

LMarly commented Apr 8, 2024

Hello all,

When I start the project, the container parsedmarc-1 don't start
When I go in the logs I see that :

2024-04-03 11:07:52    ERROR:cli.py:500:A file does not exist at /etc/parsedmarc/config.ini

2024-04-08 09:41:27   Traceback (most recent call last):
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/site-packages/parsedmarc/cli.py", line 1211, in _main
2024-04-08 09:41:27     mailbox_connection = IMAPConnection(
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/site-packages/parsedmarc/mail/imap.py", line 24, in __init__
2024-04-08 09:41:27     self._client = IMAPClient(host, user, password, port=port,
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/site-packages/mailsuite/imap.py", line 151, in __init__
2024-04-08 09:41:27     imapclient.IMAPClient.__init__(self,
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/site-packages/imapclient/imapclient.py", line 288, in __init__
2024-04-08 09:41:27     self._imap = self._create_IMAP4()
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/site-packages/imapclient/imapclient.py", line 325, in _create_IMAP4
2024-04-08 09:41:27     return tls.IMAP4_TLS(
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/site-packages/imapclient/tls.py", line 44, in __init__
2024-04-08 09:41:27     imaplib.IMAP4.__init__(self, host, port)
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/imaplib.py", line 202, in __init__
2024-04-08 09:41:27     self.open(host, port, timeout)
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/site-packages/imapclient/tls.py", line 52, in open
2024-04-08 09:41:27     sock = socket.create_connection(
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/socket.py", line 824, in create_connection
2024-04-08 09:41:27     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
2024-04-08 09:41:27   File "/opt/pypy/lib/pypy3.10/socket.py", line 955, in getaddrinfo
2024-04-08 09:41:27     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2024-04-08 09:41:27 _socket.gaierror: [Errno -2] Name or service not known
2024-04-08 09:42:28    ERROR:cli.py:1223:IMAP Error

I'm working on the version v4.28.0 on docker desktop on windows 11.
Do you have any idea of how to solve this problem ?

Thank you

@sdonchez
Copy link

sdonchez commented May 3, 2024

I'm guessing from the timestamp gap that you addressed the first issue here - The config.ini not existing. (if not, look at the README - it prompts you to copy the example over)

Assuming you've done that, and edited the file to suit your implementation, it looks like the credentials in said file for email access aren't valid. I would double check them against whatever account you're routing dmarc reports to, and keep in mind that gmail, as well as others, no longer support direct imap access with the account credentials, but need you to setup an app password. (I just re-learned this the hard way while setting up this stack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants