Comments (4)
This output Error: default config/data dir "/test_user/.getmail/" does not exist
suggest you missed the /home
part of the path.
The Docker command parameter -v /srv/mail/home:/home
specifies which host/outside directory is mapped into the container as /home
directory. Of course, the user in the container (which is not root) needs access to the directories outside for this to work. So, check the permissions and if uid/gid 1000:1000
has access.
The entrypoint.sh
generates new users based on directories it finds in /home
, but unfortunately does not take into account their existing uid/gid and just assigns new uid/gid numbers, for the first user this is 1000:1000
. You are welcome to submit a PR to take uid/gid into account when creating these users (and maybe even check if they will have access).
from docker-dovecot-getmail.
okay i understand the workflow.
I managed to make getmail work correctly when setting permissions 1000:1000
to the volume mapped to /home
.
Unfortunately i ran into similar problem when adding more users.
- order of users. As
uid/gid
in the container are just counting up and list of users is in some order i dont't really understand (could be alphabetic?) ids inside and outside do not match. maybe this can solved by reading theuid:gid
from the directorys using$(stat -c '%u' /path/to/folder):$(stat -c '%g' /path/to/folder)
in theentrypoint.sh
- As
/home
also gets permissions of a specific user, i can only run getmail for this user. this means another user cannot execute getmail cause of missing permisons for/home
and the owner of home cannot execute getmail for another user cause of missing permissions for/home/<some_other_user>
. It returnsError: default config/data dir "/home/some_other_user/.getmail/" does not exist
.
I tried to set gid=100
inside and outside the container but it didn't work. Any suggestions.
from docker-dovecot-getmail.
maybe this can solved by reading the
uid:gid
from the directorys using$(stat -c '%u' /path/to/folder):$(stat -c '%g' /path/to/folder)
in theentrypoint.sh
Yes, exactly. Please clone the repository, make modifications, rebuild the Docker image locally, and when it works submit a PR with your changes.
As /home also gets permissions of a specific user...
The best approach (Docker creates it by default if the directory does not exist) would be for /home
to be owned by root (uid:gid 0:0
) and with world readable flags (chmod 755
), like:
drwxr-xr-x 3 root root 4096 Feb 27 2017 home
With this everything should just work once the entrypoint.sh
script is fixed to respect existing uid:gid
.
from docker-dovecot-getmail.
It will be my first work with GitHub but I will give it a try. Send you an PR soon.
from docker-dovecot-getmail.
Related Issues (3)
- Rspamd with Træfik HOT 1
- how to connect to dovecot HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-dovecot-getmail.