Redirects created using API do not work
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)
-
repo owner -
repo owner - changed status to resolved
large refactoring - adding tests - fix
#182leaking formating from CMD API - fix#181CMD quota fix - fix#180poste.c compilation warnings - fix#130redirects not working created from API, removed requirement for passwordPlaintext - updated to last deps→ <<cset 00ab4cc85f06>>
- Log in to comment
Issue
#152was marked as a duplicate of this issue.