Redirects created using API do not work

Issue #130 resolved
yannikh created an issue

I have a number of Email addresses that forward to other addresses (alias). I did not want to add them all manually while migrating my mail system so I used the API like this:

curl -X POST https://mymailserver.tld/admin/api/v1/boxes --data "email=$mail&redirectTo[]=$forward&passwordPlaintext=$pw" -u USER:PASSWORD

I am confused that passwordPlaintext is required so maybe I have a confusion here and this call is not doing what I expect. However I just threw in random data for the passwords and when I look at the admin interface I see that the addresses are configured as I expect (as redirect to the address I supplied). They also look the same as redirects I created manually on the admin interface.

However the mailboxes I created using the API behave differently: The emails are not redirected. Instead the emails end up in the Maildir folder of the original addressed address.

Comments (2)

  1. SH repo owner

    large refactoring - adding tests - fix #182 leaking formating from CMD API - fix #181 CMD quota fix - fix #180 poste.c compilation warnings - fix #130 redirects not working created from API, removed requirement for passwordPlaintext - updated to last deps

    → <<cset 00ab4cc85f06>>

  2. Log in to comment