[GH-ISSUE #727] Unable to save this server, are the username and password correct? #456

Closed
opened 2026-02-25 21:35:04 +03:00 by kerem · 13 comments
Owner

Originally created by @XargonWan on GitHub (Jul 4, 2023).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/727

Originally assigned to: @IrAlfred on GitHub.

💬 Question

Whatever server I add, I got the following error: Unable to save this server, are the username and password correct?.
I tried google login, google IMAP, microsoft IMAP without any success.

I am running a test server with the default composer file:

version: '3'
services:
  db:
    image: mariadb:10
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=root_password
      - MYSQL_DATABASE=cypht
      - MYSQL_USER=cypht
      - MYSQL_PASSWORD=cypht_password
  cypht:
    image: sailfrog/cypht-docker:latest
    volumes:
      - ./cypht/users:/var/lib/hm3/users
    ports:
      - "8888:80"
    environment:
      - CYPHT_AUTH_USERNAME=admin
      - CYPHT_AUTH_PASSWORD=admin_password
      - CYPHT_DB_CONNECTION_TYPE=host
      - CYPHT_DB_HOST=db
      - CYPHT_DB_NAME=cypht
      - CYPHT_DB_USER=cypht
      - CYPHT_DB_PASS=cypht_password
      - CYPHT_SESSION_TYPE=DB

I don't know where the logs are located as with docker logs it prompt me the nginx logs.

Any help?

Originally created by @XargonWan on GitHub (Jul 4, 2023). Original GitHub issue: https://github.com/cypht-org/cypht/issues/727 Originally assigned to: @IrAlfred on GitHub. ## 💬 Question Whatever server I add, I got the following error: `Unable to save this server, are the username and password correct?`. I tried google login, google IMAP, microsoft IMAP without any success. I am running a test server with the default composer file: ``` version: '3' services: db: image: mariadb:10 volumes: - ./db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=root_password - MYSQL_DATABASE=cypht - MYSQL_USER=cypht - MYSQL_PASSWORD=cypht_password cypht: image: sailfrog/cypht-docker:latest volumes: - ./cypht/users:/var/lib/hm3/users ports: - "8888:80" environment: - CYPHT_AUTH_USERNAME=admin - CYPHT_AUTH_PASSWORD=admin_password - CYPHT_DB_CONNECTION_TYPE=host - CYPHT_DB_HOST=db - CYPHT_DB_NAME=cypht - CYPHT_DB_USER=cypht - CYPHT_DB_PASS=cypht_password - CYPHT_SESSION_TYPE=DB ``` I don't know where the logs are located as with docker logs it prompt me the nginx logs. Any help?
kerem 2026-02-25 21:35:04 +03:00
Author
Owner

@kroky commented on GitHub (Jul 4, 2023):

Hi, I just tested the stock docker-compose running on port 8888 and it sucessfullu connects with an IMAP server. It also displays the emails just fine. Google driver might need some special auth, I suggest you first test with another IMAP server.

The error message you see is connected with a failure to authenticate with remote IMAP server with provided credentials. There are no more logs that could be helpful. You can basically run Cypht in debug mode and have the logs appear either on-screen or logged to the standard php error log.

<!-- gh-comment-id:1620364537 --> @kroky commented on GitHub (Jul 4, 2023): Hi, I just tested the stock docker-compose running on port 8888 and it sucessfullu connects with an IMAP server. It also displays the emails just fine. Google driver might need some special auth, I suggest you first test with another IMAP server. The error message you see is connected with a failure to authenticate with remote IMAP server with provided credentials. There are no more logs that could be helpful. You can basically run Cypht in debug mode and have the logs appear either on-screen or logged to the standard php error log.
Author
Owner

@XargonWan commented on GitHub (Jul 4, 2023):

Hi, I just tested the stock docker-compose running on port 8888 and it sucessfullu connects with an IMAP server. It also displays the emails just fine. Google driver might need some special auth, I suggest you first test with another IMAP server.

The error message you see is connected with a failure to authenticate with remote IMAP server with provided credentials. There are no more logs that could be helpful. You can basically run Cypht in debug mode and have the logs appear either on-screen or logged to the standard php error log.

Thanks for your prompt reply.

How can I run it in debug mode?

<!-- gh-comment-id:1620394888 --> @XargonWan commented on GitHub (Jul 4, 2023): > Hi, I just tested the stock docker-compose running on port 8888 and it sucessfullu connects with an IMAP server. It also displays the emails just fine. Google driver might need some special auth, I suggest you first test with another IMAP server. > > The error message you see is connected with a failure to authenticate with remote IMAP server with provided credentials. There are no more logs that could be helpful. You can basically run Cypht in debug mode and have the logs appear either on-screen or logged to the standard php error log. Thanks for your prompt reply. How can I run it in debug mode?
Author
Owner

@marclaporte commented on GitHub (Jul 5, 2023):

The debug mode is documented in https://github.com/cypht-org/cypht/blob/master/INSTALL

FYI, Google and Microsoft nowadays usually restrict traditional IMAP access. My suggestions:

  1. See https://github.com/cypht-org/cypht/wiki/OAUTH2-over-IMAP
  2. As Victor indicated, "first test with another IMAP server."
  3. Make sure Google and Microsoft are set up for traditional IMAP with another mail client (ex.: Claws Mail)
<!-- gh-comment-id:1620885414 --> @marclaporte commented on GitHub (Jul 5, 2023): The debug mode is documented in https://github.com/cypht-org/cypht/blob/master/INSTALL FYI, Google and Microsoft nowadays usually restrict traditional IMAP access. My suggestions: 1. See https://github.com/cypht-org/cypht/wiki/OAUTH2-over-IMAP 2. As Victor indicated, "first test with another IMAP server." 3. Make sure Google and Microsoft are set up for traditional IMAP with another mail client (ex.: Claws Mail)
Author
Owner

@XargonWan commented on GitHub (Jul 5, 2023):

I found GMX that is serving IMAP, it's working on my Thunderbird but not on Cypht: I got Authentication failure and even in debug mode I got no clues why.
Basically what I'm trying to understand is if Cypht is retaining the emails in the database or not as I need to do some operations on my emails.

<!-- gh-comment-id:1621281487 --> @XargonWan commented on GitHub (Jul 5, 2023): I found GMX that is serving IMAP, it's working on my Thunderbird but not on Cypht: I got Authentication failure and even in debug mode I got no clues why. Basically what I'm trying to understand is if Cypht is retaining the emails in the database or not as I need to do some operations on my emails.
Author
Owner

@kroky commented on GitHub (Jul 6, 2023):

Yes, that's odd. Might be problems with SSL and docker or another thing - I see their IMAP is pretty standard (https://support.gmx.com/pop-imap/imap/server.html)

Note that cypht is a client only - it doesn't store messages, so it relies 100% on the remote IMAP server to read and display messages.

<!-- gh-comment-id:1623308371 --> @kroky commented on GitHub (Jul 6, 2023): Yes, that's odd. Might be problems with SSL and docker or another thing - I see their IMAP is pretty standard (https://support.gmx.com/pop-imap/imap/server.html) Note that cypht is a client only - it doesn't store messages, so it relies 100% on the remote IMAP server to read and display messages.
Author
Owner

@marclaporte commented on GitHub (Jul 7, 2023):

@XargonWan If you can provide SSH access to an environment with the issue, a Cypht team member (@josaphatim) can troubleshoot.

<!-- gh-comment-id:1624642026 --> @marclaporte commented on GitHub (Jul 7, 2023): @XargonWan If you can provide SSH access to an environment with the issue, a Cypht team member (@josaphatim) can troubleshoot.
Author
Owner

@XargonWan commented on GitHub (Jul 11, 2023):

Unfortunately not, however I set it up on an azure linux vm and even there I had the same issue, both native and docker.

<!-- gh-comment-id:1631272713 --> @XargonWan commented on GitHub (Jul 11, 2023): Unfortunately not, however I set it up on an azure linux vm and even there I had the same issue, both native and docker.
Author
Owner

@marclaporte commented on GitHub (Jul 12, 2023):

@XargonWan I really want to help and to do so, I need SSH access to an environment exhibiting the issue.

<!-- gh-comment-id:1632637962 --> @marclaporte commented on GitHub (Jul 12, 2023): @XargonWan I really want to help and to do so, I need SSH access to an environment exhibiting the issue.
Author
Owner

@marclaporte commented on GitHub (May 6, 2024):

@XargonWan please

<!-- gh-comment-id:2096946474 --> @marclaporte commented on GitHub (May 6, 2024): @XargonWan please
Author
Owner

@marclaporte commented on GitHub (Sep 28, 2024):

@XargonWan Last call :-)

<!-- gh-comment-id:2380402507 --> @marclaporte commented on GitHub (Sep 28, 2024): @XargonWan Last call :-)
Author
Owner

@marclaporte commented on GitHub (Sep 1, 2025):

@IrAlfred If you can't reproduce the issue, please close.

<!-- gh-comment-id:3240726531 --> @marclaporte commented on GitHub (Sep 1, 2025): @IrAlfred If you can't reproduce the issue, please close.
Author
Owner

@IrAlfred commented on GitHub (Sep 1, 2025):

@IrAlfred If you can't reproduce the issue, please close.

Noted !

<!-- gh-comment-id:3240970060 --> @IrAlfred commented on GitHub (Sep 1, 2025): > [@IrAlfred](https://github.com/IrAlfred) If you can't reproduce the issue, please close. Noted !
Author
Owner

@IrAlfred commented on GitHub (Sep 12, 2025):

Hello @XargonWan @marclaporte,

I've tried to reproduce this issue on my end, but so far, everything is working as expected.

I mark this issue as closed for now since we can't reproduce it. To help us investigate, would you be available for a brief screenshare?

If so, please DM me (@iralfred:gitter.im ) on Gitter. We can continue the discussion here and re-open the issue once we have more details.

Thanks!

<!-- gh-comment-id:3286410637 --> @IrAlfred commented on GitHub (Sep 12, 2025): Hello @XargonWan @marclaporte, I've tried to reproduce this issue on my end, but so far, everything is working as expected. I mark this issue as closed for now since we can't reproduce it. To help us investigate, would you be available for a brief screenshare? If so, please DM me (@iralfred:gitter.im ) on Gitter. We can continue the discussion here and re-open the issue once we have more details. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#456
No description provided.