[GH-ISSUE #18] mailfrom.endswith block all #15

Closed
opened 2026-02-25 23:39:36 +03:00 by kerem · 1 comment
Owner

Originally created by @aagarop on GitHub (Mar 8, 2021).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/18

Hi
I have a problem with blocking emails that do not come from a specific domain.
The mailfrom.endswith element works independently in test but in the server all received mails are "Email not trusted".
if (not mailfrom.endswith("@mydomain.com") or not mailfrom.endswith("@mydomain2.com")): raise Exception("Email not trusted")

Originally created by @aagarop on GitHub (Mar 8, 2021). Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/18 Hi I have a problem with blocking emails that do not come from a specific domain. The mailfrom.endswith element works independently in test but in the server all received mails are "Email not trusted". `if (not mailfrom.endswith("@mydomain.com") or not mailfrom.endswith("@mydomain2.com")): raise Exception("Email not trusted")`
kerem closed this issue 2026-02-25 23:39:36 +03:00
Author
Owner

@geek-at commented on GitHub (Nov 10, 2021):

should now work with the latest update

<!-- gh-comment-id:964871973 --> @geek-at commented on GitHub (Nov 10, 2021): should now work with the latest update
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#15
No description provided.