Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

maddy 0.8 something broke email_localpart_optional

Open
#751 4 comments 1 reaction 1 assignee View on GitHub

@foxcpp is already working on this.

Since Jan 26, 2025.

Assessment

This issue has not been assessed yet.

Description

bug release-blocker

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 user@email.tld, 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":"printer@domain.tld"}

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":"printer@domain.tld"}

For now I rolled back to 0.7.1.

Configuration file

Nothing was changed in the config.

  • maddy version: 0.8
Dominant language
Go
Stars
6.1k
Forks
327
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from foxcpp/maddy

All issues in foxcpp/maddy

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.