On 24/08/25, Benny Pedersen via dovecot (dovecot@dovecot.org) wrote:
> Steve Litt via dovecot skrev den 2025-08-24 03:17:
> > Aki Tuomi via dovecot said on Sat, 23 Aug 2025 20:51:00 +0300 (EEST)

> > unzip:  cannot find zipfile directory in one of
> > ../dovecot-2.4.0-example-config.tar.gz or
> > ../dovecot-2.4.0-example-config.tar.gz.zip, and cannot find
> > ../dovecot-2.4.0-example-config.tar.gz.ZIP, period. [slitt@mydesk junk]$
> 
> its not a zip file :)
> 
> $ tar -xvzf <archive>

There is also a dovecot.conf in the docker image, which you can either read out 
or swap out for testing.

for example, to read out:

    docker run -p 1143:143 -p 1993:993 dovecot/dovecot:latest
    CONT_NAME=$(docker container ls --filter="ancestor=dovecot/dovecot:latest" 
--format='{{.Names}}')
    docker cp ${CONT_NAME}:/etc/dovecot/dovecot.conf /tmp/d.conf

or to swap out:

    (assuming you have 'dovecot.conf' and other support files in a local 
directory)

    docker run -p 1143:143 -p 1993:993 \
    -v ./:/etc/dovecot \
    dovecot/dovecot:latest

I found the latter very helpful for syntax checking.

By the way the dovecot binaries are at '/dovecot/bin' in the Docker image, so 
you can use those with a running Docker instance if needed. eg

    docker exec ${CONT_NAME} /dovecot/bin/doveadm config imap

Cheers


_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to