question: dovecot lda running as special user (vmail) or normal user (marcel)?
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Fri Oct 10 09:27:33 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 10 Oct 2014, marcel.cochem wrote:
> I'm new to dovecot and wanted to build my own mailserver using
> dovecot+postfix.
> I currently have a Problem with Permissions with my mailfolder.
> I could solve it easily if i set it with chmod to 777. but thats no real
> solution.
>
> While reading my log files i see a lot messages like:
> Oct 10 05:19:52 lda(owncloud): Error: user owncloud: Initialization failed:
> Initializing mail storage from mail_location setting failed:
> stat(/home/vmail/example.com/owncloud/mail) failed: Permission denied
> (euid=100(owncloud) egid=1004(owncloud) missing +x perm: /home/vmail, dir
> owned by 5000:5000 mode=0700)
> Oct 10 05:19:52 lda(owncloud): Fatal: Invalid user settings. Refer to
> server log for more information.
>
> So Currently two Users need to acces the mail-folder:
> 1. The user itself (here: owncloud)
> 2. The vmail user
> I want to use dovecot with virtual users. Now the question is: shouldn't
> the directory be accessed only by the vmail user? and not by the owncloud
> user?
postfix starts the LDA as owncloud user, looks like you set postfix up to
use system users. Either make it use the vmail user or use LMTP.
>> userdb {
>> args = uid=5000 gid=5000 home=/home/vmail/example.com/%n
>> driver = static
>> }
Via IMAP/POP3 and LMTP all users will use these settings.
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBVDemh3z1H7kL/d9rAQIMxwf/cLh7M/VVUzweg5Vg1hQZx5rneCh/Lj6l
7NK1HSwEaXz/4u6kVQOpqXXRUhjHz9DXgAh6blQDifXOVHY3V1MpDleg8DKzHeah
wmhnfw3jWNuAGWd7z96Iys8mjuopPz35hy6nhVVwQtmv3wbFdqqch4PrCa2pOnvc
gnWUaht2wSdHhAP4ZCyNY5zWPPEQtIigpXqcYpfIRXVg/wO9TiYH0Uww6BBZvNUl
W/LRlS2E0jlQeacAueyRcdjoMuKC0ki/2ao12GWBffGW+2EJTD8U6dSTu4Ogviyr
g8SsPqUIG4NpQAvB2T5XwjECmsiR2gkxYaEJ8tLki0vUj4iQDGFgOA==
=aeeT
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list