[GH-ISSUE #617] Auto-tagging by username not working #386

Closed
opened 2026-03-15 14:11:13 +03:00 by kerem · 3 comments
Owner

Originally created by @albertogalisteo on GitHub (Jan 15, 2026).
Original GitHub issue: https://github.com/axllent/mailpit/issues/617

I’m trying to enable auto-tagging of emails by SMTP username using the MP_TAGS_USERNAME option, but it doesn’t seem to be working.

Setup details:

  • Mailpit Docker image: axllent/mailpit:latest
  • Mailpit version: v1.28.2
  • Environment variables:
MP_TAGS_USERNAME: true
MP_SMTP_AUTH_ACCEPT_ANY: true
MP_SMTP_AUTH_ALLOW_INSECURE: true
MP_DATABASE: /data/mailpit.db
TZ: Europe/Madrid
MP_UI_AUTH: xxx:xxx

Expected behavior:

Emails should be automatically tagged with the SMTP username when authentication is used.

Actual behavior:

No username-based tags are added to the emails.

Question:

Is auto-tagging by username supposed to work when using MP_SMTP_AUTH_ACCEPT_ANY?
If not, is this a limitation or a bug?
Is there any additional configuration required for MP_TAGS_USERNAME to work in this scenario?

Originally created by @albertogalisteo on GitHub (Jan 15, 2026). Original GitHub issue: https://github.com/axllent/mailpit/issues/617 I’m trying to enable auto-tagging of emails by SMTP username using the `MP_TAGS_USERNAME` option, but it doesn’t seem to be working. Setup details: * Mailpit Docker image: `axllent/mailpit:latest` * Mailpit version: `v1.28.2` * Environment variables: ``` MP_TAGS_USERNAME: true MP_SMTP_AUTH_ACCEPT_ANY: true MP_SMTP_AUTH_ALLOW_INSECURE: true MP_DATABASE: /data/mailpit.db TZ: Europe/Madrid MP_UI_AUTH: xxx:xxx ``` ### Expected behavior: Emails should be automatically tagged with the SMTP username when authentication is used. ### Actual behavior: No username-based tags are added to the emails. ### Question: Is auto-tagging by username supposed to work when using `MP_SMTP_AUTH_ACCEPT_ANY`? If not, is this a limitation or a bug? Is there any additional configuration required for `MP_TAGS_USERNAME` to work in this scenario?
kerem 2026-03-15 14:11:13 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@axllent commented on GitHub (Jan 16, 2026):

Thank you @albertogalisteo - this was an oversight on my part when using an unencrypted connection and plain auth. I have pushed a fix for this which should hopefully be released this weekend, or maybe early next week.

<!-- gh-comment-id:3757562579 --> @axllent commented on GitHub (Jan 16, 2026): Thank you @albertogalisteo - this was an oversight on my part when using an unencrypted connection and plain auth. I have pushed a fix for this which should hopefully be released this weekend, or maybe early next week.
Author
Owner

@axllent commented on GitHub (Jan 18, 2026):

@albertogalisteo This issue should now be fixed in the latest release. I'll close this issue, but please confirm that this resolves the issue for you, thanks.

<!-- gh-comment-id:3765590597 --> @axllent commented on GitHub (Jan 18, 2026): @albertogalisteo This issue should now be fixed in the [latest release](https://github.com/axllent/mailpit/releases/tag/v1.28.3). I'll close this issue, but please confirm that this resolves the issue for you, thanks.
Author
Owner

@albertogalisteo commented on GitHub (Jan 19, 2026):

Yes, it’s fixed in the latest release. Thanks a lot!

<!-- gh-comment-id:3766769707 --> @albertogalisteo commented on GitHub (Jan 19, 2026): Yes, it’s fixed in the latest release. Thanks a lot!
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#386
No description provided.