Closed il2020 closed 1 month ago
There is no bug. The Basic authentication scheme requires the username and password be base64 encoded.
See https://www.rfc-editor.org/rfc/rfc7617.html
You can just use curl's -u argument instead of appending the header manually. curl -u "$KEY:" https://example.com/admin/mail/aliases
, or use the management/cli.py tool.
There is no bug. The Basic authentication scheme requires the username and password be base64 encoded.
See https://www.rfc-editor.org/rfc/rfc7617.html
You can just use curl's -u argument instead of appending the header manually.
curl -u "$KEY:" https://example.com/admin/mail/aliases
, or use the management/cli.py tool.
Thank you. I found that solution on the forum: https://discourse.mailinabox.email/t/api-requires-2fa/7222/2 It would be great if there were instructions on how to use the API key in the admin area.
Trying to use the key from /var/lib/mailinabox/api.key:
And I'm getting an error:
I'm using Mail-in-a-Box v69b.