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.
Postmaster filter are processed alphabetically and they get all processed, not only the first match.
Maybe filters like this:
Dangerzone
Unconditionally set ignore = yes for all mails
When In-reply to contains your Zammad hostname: ignore = no (just to be sure)
When from contain your own domain: ignore = no, group = x etc.
When from contains @domain1.com: ignore = no, group = y etc.
When from contains @domain2.com: 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.