[GH-ISSUE #1510] 🐛 [Bug] Single Server + Default Profile + Default SMTP causing many SMTP's upon logins. #673

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

Originally created by @hidden1nin on GitHub (May 8, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1510

Originally assigned to: @IrAlfred on GitHub.

🐛 Bug

My issue is that I am running cypht for a few clients on my mail server. The issue that arises is that when users log in, another SMTP is created which they cannot see unless they open the compose page.

Image

I am running Cypht using:

sudo docker run -d \
  --name cypht \
  --network cypht-net \
  -p 42315:80 \
  -e AUTH_USERNAME=username \
  -e AUTH_PASSWORD=longlongpassword \
  -e DB_CONNECTION_TYPE=host \
  -e DB_DRIVER=mysql \
  -e DB_HOST=cypht-db \
  -e DB_NAME=cypht \
  -e DB_USER=cypht \
  -e DB_PASS=cypht_password \
  -e AUTH_TYPE=IMAP \
  -e IMAP_AUTH_NAME="ImapName" \
  -e IMAP_AUTH_SERVER=mail.example.org \
  -e IMAP_AUTH_PORT=993 \
  -e IMAP_AUTH_TLS=true \
  -e DEFAULT_SMTP_NAME=DefSMTP \
  -e DEFAULT_SMTP_SERVER=mail.example.org \
  -e DEFAULT_SMTP_PORT=465 \
  -e DEFAULT_SMTP_TLS=true \
  -e CYPHT_MODULES=core,contacts,local_contacts,imap,smtp,account,idle_timer,themes,nux,developer,history,saved_searches,advanced_search,highlights,profiles,inline_message,tags,imap_folders \
  -e AUTO_CREATE_PROFILE=true \
  -v ~/useremail:/var/lib/hm3/users \
  -e SINGLE_SERVER_MODE=true \
  cypht/cypht:2.4.0

Version & Environment

Rev: []

OS: Ubuntu, unlikely platform dependent

Originally created by @hidden1nin on GitHub (May 8, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1510 Originally assigned to: @IrAlfred on GitHub. <!-- You can find the latest issue templates here https://github.com/ulfgebhardt/issue-templates --> ## 🐛 Bug <!-- Describe your issue in detail. Include screenshots if needed. Give us as much information as possible. Use a clear and concise description of what the bug is.--> My issue is that I am running cypht for a few clients on my mail server. The issue that arises is that when users log in, another SMTP is created which they cannot see unless they open the compose page. <img width="1449" alt="Image" src="https://github.com/user-attachments/assets/a6c1fef6-6acd-41e6-a623-2f7b08d91181" /> I am running Cypht using: ```bash sudo docker run -d \ --name cypht \ --network cypht-net \ -p 42315:80 \ -e AUTH_USERNAME=username \ -e AUTH_PASSWORD=longlongpassword \ -e DB_CONNECTION_TYPE=host \ -e DB_DRIVER=mysql \ -e DB_HOST=cypht-db \ -e DB_NAME=cypht \ -e DB_USER=cypht \ -e DB_PASS=cypht_password \ -e AUTH_TYPE=IMAP \ -e IMAP_AUTH_NAME="ImapName" \ -e IMAP_AUTH_SERVER=mail.example.org \ -e IMAP_AUTH_PORT=993 \ -e IMAP_AUTH_TLS=true \ -e DEFAULT_SMTP_NAME=DefSMTP \ -e DEFAULT_SMTP_SERVER=mail.example.org \ -e DEFAULT_SMTP_PORT=465 \ -e DEFAULT_SMTP_TLS=true \ -e CYPHT_MODULES=core,contacts,local_contacts,imap,smtp,account,idle_timer,themes,nux,developer,history,saved_searches,advanced_search,highlights,profiles,inline_message,tags,imap_folders \ -e AUTO_CREATE_PROFILE=true \ -v ~/useremail:/var/lib/hm3/users \ -e SINGLE_SERVER_MODE=true \ cypht/cypht:2.4.0 ``` ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: [] <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: Ubuntu, unlikely platform dependent
kerem 2026-02-25 21:35:39 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@christer77 commented on GitHub (May 20, 2025):

🐛 Bug

My issue is that I am running cypht for a few clients on my mail server. The issue that arises is that when users log in, another SMTP is created which they cannot see unless they open the compose page.

Image I am running Cypht using:

sudo docker run -d
--name cypht
--network cypht-net
-p 42315:80
-e AUTH_USERNAME=username
-e AUTH_PASSWORD=longlongpassword
-e DB_CONNECTION_TYPE=host
-e DB_DRIVER=mysql
-e DB_HOST=cypht-db
-e DB_NAME=cypht
-e DB_USER=cypht
-e DB_PASS=cypht_password
-e AUTH_TYPE=IMAP
-e IMAP_AUTH_NAME="ImapName"
-e IMAP_AUTH_SERVER=mail.example.org
-e IMAP_AUTH_PORT=993
-e IMAP_AUTH_TLS=true
-e DEFAULT_SMTP_NAME=DefSMTP
-e DEFAULT_SMTP_SERVER=mail.example.org
-e DEFAULT_SMTP_PORT=465
-e DEFAULT_SMTP_TLS=true
-e CYPHT_MODULES=core,contacts,local_contacts,imap,smtp,account,idle_timer,themes,nux,developer,history,saved_searches,advanced_search,highlights,profiles,inline_message,tags,imap_folders
-e AUTO_CREATE_PROFILE=true
-v ~/useremail:/var/lib/hm3/users
-e SINGLE_SERVER_MODE=true
cypht/cypht:2.4.0

Version & Environment

Rev: []

OS: Ubuntu, unlikely platform dependent

Hi @hidden1nin

Can you tell us how you proceed to create these user accounts in Cypht?

<!-- gh-comment-id:2894427465 --> @christer77 commented on GitHub (May 20, 2025): > ## 🐛 Bug > My issue is that I am running cypht for a few clients on my mail server. The issue that arises is that when users log in, another SMTP is created which they cannot see unless they open the compose page. > > <img alt="Image" width="1449" src="https://private-user-images.githubusercontent.com/8339670/441874360-a6c1fef6-6acd-41e6-a623-2f7b08d91181.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDc3NDgwMDcsIm5iZiI6MTc0Nzc0NzcwNywicGF0aCI6Ii84MzM5NjcwLzQ0MTg3NDM2MC1hNmMxZmVmNi02YWNkLTQxZTYtYTYyMy0yZjdiMDhkOTExODEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDUyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTA1MjBUMTMyODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODhjNmYwNDhlMTU2NWE0MmU2OGZiYjg2YTQxMzUzNjk3ODM5NjBlYzc3MWQ3ZTQ2ODBmMjkyMWNkZWViYzE5ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.8ME5taeWA-pry6Wmczl_PJprsfew43laWQppb_bRKsE"> > I am running Cypht using: > > sudo docker run -d \ > --name cypht \ > --network cypht-net \ > -p 42315:80 \ > -e AUTH_USERNAME=username \ > -e AUTH_PASSWORD=longlongpassword \ > -e DB_CONNECTION_TYPE=host \ > -e DB_DRIVER=mysql \ > -e DB_HOST=cypht-db \ > -e DB_NAME=cypht \ > -e DB_USER=cypht \ > -e DB_PASS=cypht_password \ > -e AUTH_TYPE=IMAP \ > -e IMAP_AUTH_NAME="ImapName" \ > -e IMAP_AUTH_SERVER=mail.example.org \ > -e IMAP_AUTH_PORT=993 \ > -e IMAP_AUTH_TLS=true \ > -e DEFAULT_SMTP_NAME=DefSMTP \ > -e DEFAULT_SMTP_SERVER=mail.example.org \ > -e DEFAULT_SMTP_PORT=465 \ > -e DEFAULT_SMTP_TLS=true \ > -e CYPHT_MODULES=core,contacts,local_contacts,imap,smtp,account,idle_timer,themes,nux,developer,history,saved_searches,advanced_search,highlights,profiles,inline_message,tags,imap_folders \ > -e AUTO_CREATE_PROFILE=true \ > -v ~/useremail:/var/lib/hm3/users \ > -e SINGLE_SERVER_MODE=true \ > cypht/cypht:2.4.0 > ### Version & Environment > Rev: [] > > OS: Ubuntu, unlikely platform dependent Hi @hidden1nin Can you tell us how you proceed to create these user accounts in Cypht?
Author
Owner

@IrAlfred commented on GitHub (Nov 25, 2025):

Hello @hidden1nin,

I've been able to reproduce your issue and determined this is actually not a bug but a misconfiguration.

Please use:

SINGLE_SERVER_MODE=false

Even if you have only one outgoing server.

Here's the difference in behavior:

With SINGLE_SERVER_MODE=true,

  • Cypht tries to re-synchronize SMTP on every login.
  • A new SMTP connection is created for each user login

With SINGLE_SERVER_MODE=false:

  • Creates the SMTP profile once
  • Never tries to regenerate” it

Could you please test this configuration change and let us know if it resolves the issue? We really appreciate your contributions in helping improve Cypht webmail.

<!-- gh-comment-id:3575183293 --> @IrAlfred commented on GitHub (Nov 25, 2025): Hello @hidden1nin, I've been able to reproduce your issue and determined this is actually not a bug but a misconfiguration. Please use: ``` SINGLE_SERVER_MODE=false ``` Even if you have only one outgoing server. Here's the difference in behavior: With `SINGLE_SERVER_MODE=true`, - Cypht tries to re-synchronize SMTP on every login. - A new SMTP connection is created for each user login With `SINGLE_SERVER_MODE=false`: * Creates the SMTP profile **once** * Never tries to regenerate” it Could you please test this configuration change and let us know if it resolves the issue? We really appreciate your contributions in helping improve Cypht webmail.
Author
Owner

@IrAlfred commented on GitHub (Nov 27, 2025):

If you are still experiencing the error, please don't hesitate to reopen this issue. Your feedback is essential.

<!-- gh-comment-id:3584476501 --> @IrAlfred commented on GitHub (Nov 27, 2025): If you are still experiencing the error, please don't hesitate to reopen this issue. Your feedback is essential.
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#673
No description provided.