Filter email domains


  • Used Zammad version: 5.2.x
  • Used Zammad installation type: source, package
  • Operating system: Ubuntu Server 20.04.4
  • Browser + version: any

Expected behavior:

  • Zammad should create tickets from certain e-mail domains

Actual behavior:

  • We use email fetching to create new tickets (via IMAP) and is works great. We want to ignore any emails that arrives not from our clients.
    We have LDAP and Exchange integration so it would be great, if there’s a possible way to filter mails with one of the integrations.

On the other hand we tried the postmaster filtering under the email channels menu, but there we can add only one domain to ignore messages from.

Steps to reproduce the behavior:

Thank you very much for your help!

Postmaster filter are processed alphabetically and they get all processed, not only the first match.

Maybe filters like this:

  1. Unconditionally set ignore = yes for all mails
  2. When In-reply to contains your Zammad hostname: ignore = no (just to be sure)
  3. When from contain your own domain: ignore = no, group = x etc.
  4. When from contains ignore = no, group = y etc.
  5. When from contains ignore = no, group = z etc.

The setting in Filter 1 is not for the faint of heart and could mean lost mails if configured incorrectly. So beware and test extensively.

Alternatively, and probably better:

If you have the option, see if you can configure this at the mail server level. You could reject mails with a message before they even hit the mailbox you are fetching from.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.