Skip to content

Auto-tagging by username not working #617

@albertogalisteo

Description

@albertogalisteo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions