rnwood / smtp4dev

smtp4dev - the fake smtp email server for development and testing
BSD 3-Clause "New" or "Revised" License
3.02k stars 338 forks source link

[Bug] Re-introduce 'allow any credentials' mode for SMTP #1425

Closed ahmed2m closed 4 months ago

ahmed2m commented 4 months ago

If I understand correctly and how it was working before (but not anymore) connections are refused if they have a user/password when the authentication is off (default).

Currently on 3.3.6. and the "Configuring Clients" wiki page says: "Authentication is not required, but will be accepted if your client insists on their configuration"

rnwood commented 4 months ago

Thanks for pointing out this regression in features and docs that need to be updated. I think this is important because some clients will insist on authenticating even if the server isn't offering it.

Currently if the require auth setting is off, smtp4dev doesn't advertise auth at all. The client will fail it insists on trying anyway.

I will add a new Allow authentication setting that defaults to on to match the old behaviour. So the server will advertise auth by default.

I will also add a Allow any credentials / Use configured users switch with it defaulting to the former. So the server will accept any username/password combination by default.

rnwood commented 4 months ago

PR #1428