[GH-ISSUE #145] Can't connect unauthenticated #97

Closed
opened 2026-03-15 12:32:31 +03:00 by kerem · 3 comments
Owner

Originally created by @rubencallewaert on GitHub (Jul 18, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/145

Hi,

We are trying to run mailpit in a container unauthenticated so that we can connect without having to provide any authentication info.

We set the following env variables:

  MP_SMTP_AUTH_ACCEPT_ANY: 1
  MP_SMTP_AUTH_ALLOW_INSECURE: 1

But still get errors like these from the client:
'Mail command failed: 550 Unauthenticated senders not allowed'

When providing no authentication information, any ideas?

Originally created by @rubencallewaert on GitHub (Jul 18, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/145 Hi, We are trying to run mailpit in a container unauthenticated so that we can connect without having to provide any authentication info. We set the following env variables: ``` MP_SMTP_AUTH_ACCEPT_ANY: 1 MP_SMTP_AUTH_ALLOW_INSECURE: 1 ``` But still get errors like these from the client: 'Mail command failed: 550 Unauthenticated senders not allowed' When providing no authentication information, any ideas?
kerem closed this issue 2026-03-15 12:32:36 +03:00
Author
Owner

@axllent commented on GitHub (Jul 18, 2023):

This should be working. Using the combination of MP_SMTP_AUTH_ACCEPT_ANY & MP_SMTP_AUTH_ALLOW_INSECURE should do what you are expecting - effectively allow any connection whether it is authenticated or not. What does docker logs <your-container-name> report? You should see something like:

INFO[2023/07/19 08:23:32] [smtpd] enabling all auth (insecure)         
INFO[2023/07/19 08:23:32] [smtpd] starting on 0.0.0.0:1025             
INFO[2023/07/19 08:23:32] [http] starting server on http://localhost:8025/
<!-- gh-comment-id:1640947365 --> @axllent commented on GitHub (Jul 18, 2023): This should be working. Using the combination of `MP_SMTP_AUTH_ACCEPT_ANY` & `MP_SMTP_AUTH_ALLOW_INSECURE` should do what you are expecting - effectively allow any connection whether it is authenticated or not. What does `docker logs <your-container-name>` report? You should see something like: ``` INFO[2023/07/19 08:23:32] [smtpd] enabling all auth (insecure) INFO[2023/07/19 08:23:32] [smtpd] starting on 0.0.0.0:1025 INFO[2023/07/19 08:23:32] [http] starting server on http://localhost:8025/ ```
Author
Owner

@rubencallewaert commented on GitHub (Jul 18, 2023):

You are correct and there was a subtle misconfiguration on the the client that caused the issue. Mailpit works as expected. Apologies for the redundant report.

<!-- gh-comment-id:1640949051 --> @rubencallewaert commented on GitHub (Jul 18, 2023): You are correct and there was a subtle misconfiguration on the the client that caused the issue. Mailpit works as expected. Apologies for the redundant report.
Author
Owner

@axllent commented on GitHub (Jul 18, 2023):

Excellent, thanks for the confirmation 👍

<!-- gh-comment-id:1640949877 --> @axllent commented on GitHub (Jul 18, 2023): Excellent, thanks for the confirmation :+1:
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/mailpit#97
No description provided.