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

IMAP won't connect to Dovecot #563

Closed
gcstech opened this issue Sep 19, 2024 · 0 comments
Closed

IMAP won't connect to Dovecot #563

gcstech opened this issue Sep 19, 2024 · 0 comments

Comments

@gcstech
Copy link

gcstech commented Sep 19, 2024

I have set up parsedmarc, when connecting to the IMAP server there is a connection but parsedmarc never sends a login. There is a connection to the mailserver then it sits until Dovecot timesout the connection with no auth attempts in 30 seconds. Watching with tcpdump the connection is made and then parsedmarc does not do anything or send any login info.
Here are the log lines from parsedmarc. Any help would be appreciated.
2024-09-19T14:12:09.074478-05:00 postfixlogs parsedmarc[8699]: File "/opt/parsedmarc/venv/lib/python3.12/site-packages/parsedmarc/cli.py", line 1325, in _main
2024-09-19T14:12:09.074574-05:00 postfixlogs parsedmarc[8699]: mailbox_connection = IMAPConnection(
2024-09-19T14:12:09.074641-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^
2024-09-19T14:12:09.074703-05:00 postfixlogs parsedmarc[8699]: File "/opt/parsedmarc/venv/lib/python3.12/site-packages/parsedmarc/mail/imap.py", line 24, in init
2024-09-19T14:12:09.076086-05:00 postfixlogs parsedmarc[8699]: self._client = IMAPClient(host, user, password, port=port,
2024-09-19T14:12:09.076344-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-19T14:12:09.076903-05:00 postfixlogs parsedmarc[8699]: File "/opt/parsedmarc/venv/lib/python3.12/site-packages/mailsuite/imap.py", line 151, in init
2024-09-19T14:12:09.077108-05:00 postfixlogs parsedmarc[8699]: imapclient.IMAPClient.init(self,
2024-09-19T14:12:09.077286-05:00 postfixlogs parsedmarc[8699]: File "/opt/parsedmarc/venv/lib/python3.12/site-packages/imapclient/imapclient.py", line 288, in init
2024-09-19T14:12:09.077453-05:00 postfixlogs parsedmarc[8699]: self._imap = self._create_IMAP4()
2024-09-19T14:12:09.077570-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^^^^^^
2024-09-19T14:12:09.077646-05:00 postfixlogs parsedmarc[8699]: File "/opt/parsedmarc/venv/lib/python3.12/site-packages/imapclient/imapclient.py", line 332, in _create_IMAP4
2024-09-19T14:12:09.077707-05:00 postfixlogs parsedmarc[8699]: return imap4.IMAP4WithTimeout(self.host, self.port, connect_timeout)
2024-09-19T14:12:09.077805-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-19T14:12:09.077885-05:00 postfixlogs parsedmarc[8699]: File "/opt/parsedmarc/venv/lib/python3.12/site-packages/imapclient/imap4.py", line 13, in init
2024-09-19T14:12:09.077947-05:00 postfixlogs parsedmarc[8699]: imaplib.IMAP4.init(self, address, port)
2024-09-19T14:12:09.078008-05:00 postfixlogs parsedmarc[8699]: File "/usr/lib/python3.12/imaplib.py", line 205, in init
2024-09-19T14:12:09.078069-05:00 postfixlogs parsedmarc[8699]: self._connect()
2024-09-19T14:12:09.078129-05:00 postfixlogs parsedmarc[8699]: File "/usr/lib/python3.12/imaplib.py", line 247, in _connect
2024-09-19T14:12:09.078188-05:00 postfixlogs parsedmarc[8699]: self.welcome = self._get_response()
2024-09-19T14:12:09.078248-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^^^^^^
2024-09-19T14:12:09.078308-05:00 postfixlogs parsedmarc[8699]: File "/usr/lib/python3.12/imaplib.py", line 1075, in _get_response
2024-09-19T14:12:09.078367-05:00 postfixlogs parsedmarc[8699]: resp = self._get_line()
2024-09-19T14:12:09.078445-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^^
2024-09-19T14:12:09.078507-05:00 postfixlogs parsedmarc[8699]: File "/usr/lib/python3.12/imaplib.py", line 1183, in _get_line
2024-09-19T14:12:09.078566-05:00 postfixlogs parsedmarc[8699]: line = self.readline()
2024-09-19T14:12:09.078626-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^
2024-09-19T14:12:09.078698-05:00 postfixlogs parsedmarc[8699]: File "/usr/lib/python3.12/imaplib.py", line 323, in readline
2024-09-19T14:12:09.079485-05:00 postfixlogs parsedmarc[8699]: line = self.file.readline(_MAXLINE + 1)
2024-09-19T14:12:09.079702-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-19T14:12:09.079909-05:00 postfixlogs parsedmarc[8699]: File "/usr/lib/python3.12/socket.py", line 707, in readinto
2024-09-19T14:12:09.080025-05:00 postfixlogs parsedmarc[8699]: return self._sock.recv_into(b)
2024-09-19T14:12:09.080084-05:00 postfixlogs parsedmarc[8699]: ^^^^^^^^^^^^^^^^^^^^^^^
2024-09-19T14:12:09.080166-05:00 postfixlogs parsedmarc[8699]: TimeoutError: timed out
2024-09-19T14:12:09.222628-05:00 postfixlogs systemd[1]: parsedmarc.service: Main process exited, code=exited, status=1/FAILURE
2024-09-19T14:12:09.223207-05:00 postfixlogs systemd[1]: parsedmarc.service: Failed with result 'exit-code'.

seanthegeek added a commit that referenced this issue Oct 3, 2024
- Proper IMAP namespace fix (Closes issue #557 and issue #563)
  - Require `mailsuite>=1.9.17`
  - Revert PR #552
- Add pre-flight check for nameservers (PR #562 closes issue #543)
- Reformat code with `ruff`
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