[GH-ISSUE #249] Recipient email domain matching includes other "valid" top level domains #785

Closed
opened 2026-03-14 10:34:55 +03:00 by kerem · 1 comment
Owner

Originally created by @jakoberpf on GitHub (Jan 5, 2022).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/249

I think that during setup and now testing I stumbled over a domain matching bug. I deployed anonaddy on a domain anonaddy.example.de with . But i cannot register a user/recipient email with domain of *example.de eg. testexample.de because of The recipient cannot use a local domain or be an alias.. But testexample.de actually is not a local domain or an alias from what i understand. I think the check should detect test.example.de but not testexample.de.

Originally created by @jakoberpf on GitHub (Jan 5, 2022). Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/249 I think that during setup and now testing I stumbled over a domain matching bug. I deployed anonaddy on a domain anonaddy.example.de with . But i cannot register a user/recipient email with domain of *example.de eg. testexample.de because of `The recipient cannot use a local domain or be an alias.`. But testexample.de actually is not a local domain or an alias from what i understand. I think the check should detect `test.example.de` but not `testexample.de`.
kerem closed this issue 2026-03-14 10:35:00 +03:00
Author
Owner

@willbrowningme commented on GitHub (Jan 14, 2022):

What do you have in your .env file for ANONADDY_ALL_DOMAINS?

Is it ANONADDY_ALL_DOMAINS=example.de

There is a check to make sure that the recipient domain does not end with any of the domains listed in ANONADDY_ALL_DOMAINS.

I've just pushed a small change that I think should fix this. Please give it a try and let me know.

<!-- gh-comment-id:1013286737 --> @willbrowningme commented on GitHub (Jan 14, 2022): What do you have in your `.env` file for `ANONADDY_ALL_DOMAINS`? Is it `ANONADDY_ALL_DOMAINS=example.de` There is a check to make sure that the recipient domain does not end with any of the domains listed in `ANONADDY_ALL_DOMAINS`. I've just pushed a small change that I think should fix this. Please give it a try and let me know.
Sign in to join this conversation.
No labels
bug
pull-request
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/anonaddy#785
No description provided.