Skip to content

Commit

Permalink
obox: azure: Add a hint that SHARED_KEY can be passed base64 encoded …
Browse files Browse the repository at this point in the history
…or hex escaped
  • Loading branch information
vmo69 committed Feb 14, 2024
1 parent 2826c33 commit 0cb38cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/configuration_manual/mail_location/obox/azure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ The parameters are:
different from what is used in Microsoft documentation. This is
especially relevant for the position of ACCOUNTNAME and CONTAINERNAME.

If the ``SHARED_KEY`` or ``ACCOUNTNAME`` contains any special characters, they can be %hex-encoded.
The ``SHARED_KEY`` can be alternatively be passed base64 encoded as shown above ``SHARED_KEY_BASE64``

.. Note::

``dovecot.conf`` handles :ref:`%variable <config_variables>` expansion internally as well, so % needs
to be escaped as %% and ':' needs to be escaped as %%3A. For example if the
SHARED_KEY is "foo:bar" this would be encoded as
``https://ACCOUNTNAME:foo%%3Abar@CONTAINERNAME.blob.core.windows.net/``. This double-%% escaping is needed only when the string is read from ``dovecot.conf`` - it doesn't apply for example if the string comes from a userdb lookup.

Debugging
---------

Expand Down

0 comments on commit 0cb38cf

Please sign in to comment.