Mail aliases API

I’m trying to figure out the exact working of the new mail aliases API (using the curl examples). Getting the (JSON-encoded) list of all mail aliases is working. But when I try to add an alias I get the error:

The alias must either forward to an address or have a permitted sender

Can someone verify this functionality is working? Or tell me the stupid mistake I’m making to get this message?

Found it! It was a stupid mistake. :disappointed_relieved: I used ‘forward_to’ not ‘forward s _to’

@Erik,

How did you add the permitted sender to the code?

I don’t understand your question. The given examples worked for me.