[GH-ISSUE #284] regex case insensitive #187

Closed
opened 2026-03-15 13:06:15 +03:00 by kerem · 1 comment
Owner

Originally created by @q16marvin on GitHub (Apr 25, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/284

Hi,

first you make a great job... mailpit is awesome!

2 small things, can we make regex case insensitve?

currently it would only work like this:

MP_SMTP_RELAY_ALLOWED_RECIPIENTS: "@example\.de$|@EXAMPLE\.DE$"

and btw i musst set escape this "" with "\"... otherwise docker will not except it :)

Thx!

Originally created by @q16marvin on GitHub (Apr 25, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/284 Hi, first you make a great job... mailpit is awesome! 2 small things, can we make regex case insensitve? currently it would only work like this: MP_SMTP_RELAY_ALLOWED_RECIPIENTS: "@example\\.de$|@EXAMPLE\\.DE$" and btw i musst set escape this "\" with "\\"... otherwise docker will not except it :) Thx!
kerem closed this issue 2026-03-15 13:06:20 +03:00
Author
Owner

@axllent commented on GitHub (Apr 25, 2024):

Thanks, I'm glad you like it @q16marvin!

Actually you can set this yourself MP_SMTP_RELAY_ALLOWED_RECIPIENTS: '(?i)@example\.de$' (I think a single quote works in a docker-compose file). Regular expressions are a little different in Go - see https://regex101.com/r/JUehoJ/1

<!-- gh-comment-id:2076972608 --> @axllent commented on GitHub (Apr 25, 2024): Thanks, I'm glad you like it @q16marvin! Actually you can set this yourself `MP_SMTP_RELAY_ALLOWED_RECIPIENTS: '(?i)@example\.de$'` (I _think_ a single quote works in a docker-compose file). Regular expressions are a little different in Go - see https://regex101.com/r/JUehoJ/1
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/mailpit#187
No description provided.