email_localpart not working for auth #531
-
I'm in the middle of trying to debug email authentication after having written a new authentication module, and I'm running into the problem that I need to get the username of the authenticating entity and pass that into the auth module, same for lookups for the table module. I have tried using email_localpart in my auth_map and delivery_map and it still passes the full email address to the auth module, which obviously fails since its not a username that exists. Here's my config:
The docs aren't super helpful here, they just point me to the storage backend documentation which documents the syntax of the auth_map directive, but not how to actually use it to do anything. Is there somewhere that has more complete docs for how to actually use maddy? Update 1 Just to be sure, the entire thing that led me down this path was troubleshooting that even though my backend authentication service responds with success and I return a Going on that assumption I am now just trying to understand why I can't auth successfully even though the backend service returns an OK status. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The more I look into this the more it looks like |
Beta Was this translation helpful? Give feedback.
-
I eventually completely gave up on this approach, I don't think auth_map is used anywhere in authentication, despite the name and that it appears to require PlainAuth be implemented. Given that everything appears to eventually flow through SASL I just imported |
Beta Was this translation helpful? Give feedback.
-
Not working auth_map is definitely unintentional. I will create an issue for this.. |
Beta Was this translation helpful? Give feedback.
I eventually completely gave up on this approach, I don't think auth_map is used anywhere in authentication, despite the name and that it appears to require PlainAuth be implemented. Given that everything appears to eventually flow through SASL I just imported
github.com/foxcpp/maddy/framework/address
into the netauth authentication driver and do the address split there so that the driver pretends to accept email addresses and subsequently discards the domain component.