maddy icon indicating copy to clipboard operation
maddy copied to clipboard

maddy 0.8 something broke email_localpart_optional

Open petrm opened this issue 11 months ago • 4 comments

Describe the bug

I have maddy set up as described here: https://maddy.email/multiple-domains/.

    check {                   
        authorize_sender {
            user_to_email chain {  
            step email_localpart_optional           # remove domain from username if present
            step email_with_domain $(local_domains) # expand username with all allowed domains
            }                                        
        }                                                         
    } 

Something has changed in 0.8, because when I authenticate with [email protected], I get the error below.

maddy  | 2025-01-25T19:31:05.563762356Z submission/sasl: authentication failed  {"reason":"no auth. provider accepted creds, last err: unknown credentials","src_ip":"192.168.1.2:59842","username":"[email protected]"}

Authenticating with just user allows the client to log in, but then I end up with:

maddy  | 2025-01-25T19:38:41.643632364Z submission/sasl: authentication failed  {"reason":"no auth. provider accepted creds, last err: unknown credentials","src_ip":"192.168.1.2:39680","username":"[email protected]"}

For now I rolled back to 0.7.1.

Configuration file

Nothing was changed in the config.

  • maddy version: 0.8

petrm avatar Jan 25 '25 19:01 petrm

c48332a should fix the issue

foxcpp avatar Jan 28 '25 20:01 foxcpp

I built master c852199ec9447d2fcfc58dd9cd35e68a0df1627f and the problem is still there. Any debugging I can do?

petrm avatar Jan 31 '25 15:01 petrm

Try again with 01c65cf

foxcpp avatar Feb 02 '25 10:02 foxcpp

Tested, 01c65cf works fine.

petrm avatar Feb 02 '25 16:02 petrm