Skip to content

Invalid smtp value in database breaks admin UI #2809

@laurentS

Description

@laurentS

Version:

  • listmonk: v5.1.0
  • OS: nixos

Description of the bug and steps to reproduce:
When an invalid smtp value is set in the database (in the settings table), the frontend shows nothing under Settings / smtp, with no explanation in the logs, nor any error message. Unless you have direct access to the database, this is a deadend, with no obvious solution.
Worse, the "save" button does not work, as it seems to validate the smtp values, but it doesn't offer any guidance.

In my case, the invalid value was probably set from the nixos configuration (I will report that issue separately), but I would expect listmonk to help me figure out what is wrong (to fix my problem, I copied a sample value I found in this repo, as the default database value of {} did not help).

The specific value that caused the problem: [{"host": "localhost", "port": 587, "enable": true, "enabled": true, "tls_type": "STARTTLS", "max_conns": 1}].

I think a simple line in the logs saying that the setting is incorrect (and maybe a suggestion for a valid default value) would be very helpful.

Screenshots:
I'm aware this screenshot shows the "bounce" section, but this is what it looked like for SMTP (I fixed the value in the db before posting this issue). I am now wondering what is meant to happen with bounces...

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions