Skip to content

-smtp-require-tls ignored when specifying authentication and password file #446

Closed
@AAAlvesJr

Description

@AAAlvesJr

I am not sure if it is a bug, or a feature, but as I have understood the documentation, it should be possible to activate SSL/TLS and also specify a password file to enable logins on smtp.

I am getting the situation below :

$  ./mailpit --smtp-tls-cert cert.pem --smtp-tls-key key.pem  --smtp-require-tls  --smtp-auth-file passwdfile  --smtp-require-tls
INFO[2025/02/17 21:44:49] [smtpd] enabling login authentication        
INFO[2025/02/17 21:44:49] [smtpd] starting on [::]:1025 (STARTTLS required) 
INFO[2025/02/17 21:44:49] [http] starting on [::]:8025                 
INFO[2025/02/17 21:44:49] [http] accessible via http://localhost:8025/ 

Mailpit runs with (STARTTLS required).

However, when I remove --smtp-auth-file passwdfile, I get the situation below:

$  ./mailpit --smtp-tls-cert cert.pem --smtp-tls-key key.pem --smtp-require-tls
INFO[2025/02/17 21:54:16] [smtpd] starting on [::]:1025 (SSL/TLS required) 
INFO[2025/02/17 21:54:16] [http] starting on [::]:8025                 
INFO[2025/02/17 21:54:16] [http] accessible via http://localhost:8025/ 

I am running the latest release v1.22.3 on linux 64bits.

Am I doing something wrong? How to get SSL/TLS and authentication ?

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