Email filter with partially matching email addresses

We have several support email addresses, each of which should be routed to its own group:

Group: Marketing
Email address: marketing-support@mydomain.com
Email filter:

Group: Customer Support
Email address: support@mydomain.com
Email filter:

How can we ensure that emails sent to marketing-support@mydomain.com end up in the Marketing group? Currently, the emails are ending up in the Customer Support group.

I’ve read that the filters are processed in alphabetical order, but even if I name the filters “A_Marketing” and “B_Customer Support,” both emails always end up in the Customer Support group.

How can I ensure that the emails end up where they belong?

Without knowing what mail service you are using, your question is fairly hard to answer.
I’m going to take a wild guess: Microsoft 365 / Exchange.

If so, Microsoft loves to rewrite the recipient from mailbox alias to the main mail address of the mailbox. I believe you can somehow deactivate this behavior - unless you do that, you basically have no chance.

You should also see that in the “To” attribute of the mail that gets incorrectly routed.

Yes, we’re using M365/Exchange Online.
But if we use seperate Mailboxes for the Support adresses this should be no problem?
Let’s say we have a Shared Mailbox for support@mydomain.com and marketing-support@mydomain.com stays a mail alias for our “main zammad mailbox”?