[GH-ISSUE #54] Discard unknown discarding all wildcard domains #36

Closed
opened 2026-02-25 23:39:40 +03:00 by kerem · 3 comments
Owner

Originally created by @DasDunkel on GitHub (Nov 8, 2023).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/54

With DISCARD_UNKNOWN set to true emails sent to an address using a wildcard domain are discarded.

For example;
Domain: *.domain.tld,domain.tld
Address: random.user@rand.domain.tld
Log message: Discarding email for unknown domain: rand.domain.tld

Originally created by @DasDunkel on GitHub (Nov 8, 2023). Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/54 With `DISCARD_UNKNOWN` set to `true` emails sent to an address using a wildcard domain are discarded. For example; Domain: `*.domain.tld,domain.tld` Address: `random.user@rand.domain.tld` Log message: `Discarding email for unknown domain: rand.domain.tld`
kerem closed this issue 2026-02-25 23:39:40 +03:00
Author
Owner

@geek-at commented on GitHub (Nov 11, 2023):

Cannot reproduce. Did you restart the mailserver after changing the config?

<!-- gh-comment-id:1806826819 --> @geek-at commented on GitHub (Nov 11, 2023): Cannot reproduce. Did you restart the mailserver after changing the config?
Author
Owner

@DasDunkel commented on GitHub (Nov 11, 2023):

Yes, even with the container completely remade it still rejects wildcard domains; screenshot of docker compose file and logs: https://dunk.dev/x2gMWjdMk8h5.png
The address I sent the test email to was randomly generated by the WebUI

<!-- gh-comment-id:1806828532 --> @DasDunkel commented on GitHub (Nov 11, 2023): Yes, even with the container completely remade it still rejects wildcard domains; screenshot of docker compose file and logs: https://dunk.dev/x2gMWjdMk8h5.png The address I sent the test email to was randomly generated by the WebUI
Author
Owner

@geek-at commented on GitHub (Nov 11, 2023):

probably because of the quotation marks. Check the config.ini that was generated but removing the quotation marks should fix it

<!-- gh-comment-id:1806922475 --> @geek-at commented on GitHub (Nov 11, 2023): probably because of the quotation marks. Check the config.ini that was generated but removing the quotation marks should fix it
Sign in to join this conversation.
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/opentrashmail#36
No description provided.