<div dir="ltr"><div>You're right.</div><div>My apologies.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom., 15 dic. 2019 a las 7:54, Christian Kivalo (<<a href="mailto:ml%2Bdovecot@valo.at">ml+dovecot@valo.at</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On December 15, 2019 2:50:03 AM GMT+01:00, "Eudald Valcàrcel Lacasa" <<a href="mailto:eudald.valcarcel@gmail.com" target="_blank">eudald.valcarcel@gmail.com</a>> wrote:<br>
>Hello,<br>
>I'm trying to set up a mailbox for a bunch of domains.<br>
>To do so I'm running some docker containers (I know I can use<br>
>multidomain<br>
>set up and I'm doing so, but I need to have some domains on different<br>
>containers for specific reasons).<br>
><br>
>In order to keep it all clean, I want to use different PostgreSQL<br>
>databases<br>
>for each container, and I'm running the container with an environment<br>
>file<br>
>containing database parameters, such as:<br>
>DB_USER<br>
>DB_HOST<br>
>DB_NAME<br>
>I've been trying to pass these parameters to dovecot's configuration,<br>
>but<br>
>they don't get parsed and I end up with messages like: dovecot: auth:<br>
>Error: pgsql(%{env:DB_HOST}): Connect failed to database %{env:DB_NAME}<br>
><br>
>I've tried to pass variables alone, using import_environment = DB_HOST<br>
>DB_NAME DB_USER, but I'm stuck at the same errors.<br>
><br>
>Is there anything I could do to fix this?<br>
There was this exact question a short time ago. <br>
See the list archive from December 4, there is your answer. <br>
Basically, the pgsql library will use specific env variables when they exist and aren't set through dovecot configuration. <br>
>Thank you!<br>
>Eudald<br>
<br>
-- <br>
Christian Kivalo<br>
</blockquote></div>