[GH-ISSUE #1512] 🐛 [Bug] Duplicate default SMTP servers appearing #675

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

Originally created by @mcjoshea on GitHub (May 11, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1512

🐛 Bug

When I add a default SMTP server in the .env file, I get a duplicate server appearing each time I save and log back in.

This is how my server settings look after a few saves:

Image

These are my SMTP settings:

DEFAULT_SMTP_NAME=localhost
DEFAULT_SMTP_SERVER=localhost
DEFAULT_SMTP_PORT=25
DEFAULT_SMTP_TLS=false
DEFAULT_SMTP_NO_AUTH=true

I have used version v1.4 before with similar settings and this did not happen. That is still running on the same server but in a different folder, using a different database and credentials, with older PHP, but still good. No issues with that.

If I update the config file and change the details, that default server appears as an additional server when I save and log back in.

I'm using the database for storing user settings. I can delete the config from the database and when I log on after that they are all gone. But they soon build up again.

If I comment out the above settings, delete the unwanted servers, do a save, and log out and back in, everything is fine. I no longer get the additional default SMTP servers building up.

I'm going to revert back to before I installed version 2.4 tonight and try installing it again in a few days time to see if I've done anything wrong, but if you can think of anything to try next time, please let me know.

Version & Environment

Rev: v2.4.0
OS: Debian 12 (Bookworm)
PHP version: 8.3.20
Zend version: 4.3.20
SAPI: fpm-fcgi
Enabled Modules: core, contacts, local_contacts, ldap_contacts, gmail_contacts, feeds, jmap, imap, smtp, account, idle_timer, desktop_notifications, calendar, themes, nux, developer, profiles, imap_folders, sievefilters, 2fa
Git version: at revision (May 11, 2025)

Originally created by @mcjoshea on GitHub (May 11, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1512 <!-- 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.--> When I add a default SMTP server in the .env file, I get a duplicate server appearing each time I save and log back in. This is how my server settings look after a few saves: ![Image](https://github.com/user-attachments/assets/9f88f987-0ac1-4298-8df8-ca56266724dd) These are my SMTP settings: ``` DEFAULT_SMTP_NAME=localhost DEFAULT_SMTP_SERVER=localhost DEFAULT_SMTP_PORT=25 DEFAULT_SMTP_TLS=false DEFAULT_SMTP_NO_AUTH=true ``` I have used version v1.4 before with similar settings and this did not happen. That is still running on the same server but in a different folder, using a different database and credentials, with older PHP, but still good. No issues with that. If I update the config file and change the details, that default server appears as an additional server when I save and log back in. I'm using the database for storing user settings. I can delete the config from the database and when I log on after that they are all gone. But they soon build up again. If I comment out the above settings, delete the unwanted servers, do a save, and log out and back in, everything is fine. I no longer get the additional default SMTP servers building up. I'm going to revert back to before I installed version 2.4 tonight and try installing it again in a few days time to see if I've done anything wrong, but if you can think of anything to try next time, please let me know. ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: v2.4.0 OS: Debian 12 (Bookworm) PHP version: 8.3.20 Zend version: 4.3.20 SAPI: fpm-fcgi Enabled Modules: core, contacts, local_contacts, ldap_contacts, gmail_contacts, feeds, jmap, imap, smtp, account, idle_timer, desktop_notifications, calendar, themes, nux, developer, profiles, imap_folders, sievefilters, 2fa Git version: at revision (May 11, 2025)
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

When I add a default SMTP server in the .env file, I get a duplicate server appearing each time I save and log back in.

This is how my server settings look after a few saves:

Image

These are my SMTP settings:

DEFAULT_SMTP_NAME=localhost
DEFAULT_SMTP_SERVER=localhost
DEFAULT_SMTP_PORT=25
DEFAULT_SMTP_TLS=false
DEFAULT_SMTP_NO_AUTH=true

I have used version v1.4 before with similar settings and this did not happen. That is still running on the same server but in a different folder, using a different database and credentials, with older PHP, but still good. No issues with that.

If I update the config file and change the details, that default server appears as an additional server when I save and log back in.

I'm using the database for storing user settings. I can delete the config from the database and when I log on after that they are all gone. But they soon build up again.

If I comment out the above settings, delete the unwanted servers, do a save, and log out and back in, everything is fine. I no longer get the additional default SMTP servers building up.

I'm going to revert back to before I installed version 2.4 tonight and try installing it again in a few days time to see if I've done anything wrong, but if you can think of anything to try next time, please let me know.

Version & Environment

Rev: v2.4.0 OS: Debian 12 (Bookworm) PHP version: 8.3.20 Zend version: 4.3.20 SAPI: fpm-fcgi Enabled Modules: core, contacts, local_contacts, ldap_contacts, gmail_contacts, feeds, jmap, imap, smtp, account, idle_timer, desktop_notifications, calendar, themes, nux, developer, profiles, imap_folders, sievefilters, 2fa Git version: at revision (May 11, 2025)

Hi @mcjoshea,

Thank for this catch, can we have a screen sharing session if you don't mind please?

<!-- gh-comment-id:2894481179 --> @christer77 commented on GitHub (May 20, 2025): > ## 🐛 Bug > When I add a default SMTP server in the .env file, I get a duplicate server appearing each time I save and log back in. > > This is how my server settings look after a few saves: > > ![Image](https://github.com/user-attachments/assets/9f88f987-0ac1-4298-8df8-ca56266724dd) > > These are my SMTP settings: > > ``` > DEFAULT_SMTP_NAME=localhost > DEFAULT_SMTP_SERVER=localhost > DEFAULT_SMTP_PORT=25 > DEFAULT_SMTP_TLS=false > DEFAULT_SMTP_NO_AUTH=true > ``` > > I have used version v1.4 before with similar settings and this did not happen. That is still running on the same server but in a different folder, using a different database and credentials, with older PHP, but still good. No issues with that. > > If I update the config file and change the details, that default server appears as an additional server when I save and log back in. > > I'm using the database for storing user settings. I can delete the config from the database and when I log on after that they are all gone. But they soon build up again. > > If I comment out the above settings, delete the unwanted servers, do a save, and log out and back in, everything is fine. I no longer get the additional default SMTP servers building up. > > I'm going to revert back to before I installed version 2.4 tonight and try installing it again in a few days time to see if I've done anything wrong, but if you can think of anything to try next time, please let me know. > > ### Version & Environment > Rev: v2.4.0 OS: Debian 12 (Bookworm) PHP version: 8.3.20 Zend version: 4.3.20 SAPI: fpm-fcgi Enabled Modules: core, contacts, local_contacts, ldap_contacts, gmail_contacts, feeds, jmap, imap, smtp, account, idle_timer, desktop_notifications, calendar, themes, nux, developer, profiles, imap_folders, sievefilters, 2fa Git version: at revision (May 11, 2025) Hi @mcjoshea, Thank for this catch, can we have a screen sharing session if you don't mind please?
Author
Owner

@mcjoshea commented on GitHub (May 24, 2025):

Hi @mcjoshea,

Thank for this catch, can we have a screen sharing session if you don't mind please?

Yes, I'd be happy to do this, How do we set one up?

<!-- gh-comment-id:2906647973 --> @mcjoshea commented on GitHub (May 24, 2025): > Hi [@mcjoshea](https://github.com/mcjoshea), > > Thank for this catch, can we have a screen sharing session if you don't mind please? Yes, I'd be happy to do this, How do we set one up?
Author
Owner

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

Thank you @mcjoshea,

I have finally managed to reproduce the issue. We are working on it.

<!-- gh-comment-id:2915785731 --> @christer77 commented on GitHub (May 28, 2025): Thank you @mcjoshea, I have finally managed to reproduce the issue. We are working on it.
Author
Owner

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

Hi @mcjoshea,

can we discuss on Cypht Community please!

thanks

<!-- gh-comment-id:2921631012 --> @christer77 commented on GitHub (May 30, 2025): Hi @mcjoshea, can we discuss on [Cypht Community](https://gitter.im/cypht-org/community) please! thanks
Author
Owner

@Baraka24 commented on GitHub (Jul 11, 2025):

Hello @mcjoshea, we retried reproducing this issue more than twice and we are not able to reproduce it. Please reopen if still exist and we'll likely want you to join us at Cypht Community and help where needed.

<!-- gh-comment-id:3061691510 --> @Baraka24 commented on GitHub (Jul 11, 2025): Hello @mcjoshea, we retried reproducing this issue more than twice and we are not able to reproduce it. Please reopen if still exist and we'll likely want you to join us at [Cypht Community](https://gitter.im/cypht-org/community) and help where needed.
Author
Owner

@IrAlfred commented on GitHub (Feb 18, 2026):

Related to this https://github.com/cypht-org/cypht/issues/1878
Seems this has never fully been fixed

<!-- gh-comment-id:3923181111 --> @IrAlfred commented on GitHub (Feb 18, 2026): Related to this https://github.com/cypht-org/cypht/issues/1878 Seems this has never fully been fixed
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#675
No description provided.