purelymail-issues icon indicating copy to clipboard operation
purelymail-issues copied to clipboard

Routing Rule Create API doesn't support any address catchall rules

Open cramey opened this issue 2 years ago • 1 comments

Routing rules are available in four types via the web interface:

The exact address Any address starting with Any address Any address except valid user addresses (catchall)

In the createRoutingRule API, "The exact address" types can be created with prefix set to false, and the domainName and matchUser set accordingly. "Any address starting with" can be done the same way, just by setting prefix to true.

"Any address" is created by setting prefix to true and leaving matchUser blank. Using this logic, one would expect setting prefix to false would allow creating a routing rule of type "Any address except valid user addresses (catchall)", however this just creates a "The exact address" with a blank matchUser.

cramey avatar Jul 04 '23 15:07 cramey

Hi, I'm working on #316 (https://github.com/vic1707/ansible-collection-purelymail), This seems to be resolved?

I was able use the API and check against the UI against

  - WebUI match cases:
      - [Any address] → C(match_user="", prefix=True, catchall=False)
      - [Any address except valid user address (catchall)] → C(match_user="", prefix=True, catchall=True)
      - [Any address starting with] → C(match_user="<anything you want>", prefix=True, catchall=False)
      - [The exact address] → C(match_user="<anything you want>", prefix=False, catchall=False)

Can you try again on your side?

vic1707 avatar Oct 23 '25 13:10 vic1707