Skip to content

[SMTP] Allow unsecured mailservers #645

Closed
@sharknoon

Description

@sharknoon

Hello,

I have ntfy deployed in a containerized environment with docker. There I have an external mailserver (SMTP) that is only accessible via a docker network. My mailserver has no authentification, because it is not public. Only containers in the same network can access it.

When I leave the field smtp-sender-user / smtp-sender-pass blank, the error is the following:

Mismatched type for flag 'smtp-sender-user'. Expected 'string' but actual is ''

When I comment it out, the error is the following:

if smtp-sender-addr is set, base-url, smtp-sender-user, smtp-sender-pass and smtp-sender-from must also be set

This error comes from here.

I would be very happy, if we would allow mailservers without auth. Especially for cases, where the mailserver is exclusive to ntfy by being bundled in the same docker-compose network.

Btw Thank you @binwiederhier for making such a great app and putting so much effort in it, I am loving ntfy :)

Kind regards from the southwest of germany (Stuttgart)

Sharknoon

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestserverRelates to the main binary (server or client)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions