docker compose file
dovecot: container_name: dovecot image: dovecot/dovecot volumes: - /root/docker/dovecot/etc:/etc/dovecot - /root/docker/dovecot/mail:/srv/mail
make sure this folder is owned by user 1000 : /root/docker/dovecot/mail
test IMAP
echo -ne '1 login toto pass\n2 select inbox\n3 logout\n' | nc localhost 143
test POP
echo -ne 'user toto\npass pass\nquit\n' | nc localhost 110