I configured dovecot with Postfix with mysql Now I have directory /home/mail/virtual User/group postfix.postfix I added one domain, and one user. I login is successful but it gets interupted because of this. pop3(xx at private-projects.net): Aug 11 00:48:53 Error: lstat(/home/mail/virtual/private-projects.net/xx at private-projects.net/cur) failed: Permission denied pop3(xx at private-projects.net): Aug 11 00:48:53 Error: lstat(/home/mail/virtual/private-projects.net/xx at private-projects.net/cur) failed: Permission denied pop3(xx at private-projects.net): Aug 11 00:48:53 Warning: I/O leak: 0x8050cc0 (0) pop3(xx at private-projects.net): Aug 11 00:48:53 Warning: I/O leak: 0x8084e90 (1) [root at octalys dovecot]# ls -la /home/mail/virtual/private-projects.net/xx\@private-projects.net/cur/ total 8 drwxrw---- 2 postfix postfix 4096 Aug 2 21:47 . drwxrw---- 5 postfix postfix 4096 Aug 2 21:47 .. [root at octalys dovecot]# I added dovecot user to postfix group. I even tried chmod -R 777 * in virtual. It doesn't work. Whats the problem ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20040811/18f1c5f7/attachment-0003.html>
On Wed, 2004-08-11 at 11:20 +0200, Alex wrote:> I added dovecot user to postfix group. I even tried chmod ?R 777 * in > virtual.Dovecot user isn't used for accesing mails. I wrote a page about this in http://wiki.dovecot.org/moin.cgi/UserIds, please read and say if you didn't understand something. The fix is anyway to put the right UID in the Mysql database. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20040815/ea96ed99/attachment-0001.bin>
Oh thanks for answering. I fixed it with a stupid mysql query... 'gid as 89, uid as 89' But your article is right, is better to give every user his own uid/gid. Will change it tomorrow. -----Original Message----- From: Timo Sirainen [mailto:tss at iki.fi] Sent: Sunday, August 15, 2004 9:24 PM To: Alex Cc: dovecot at dovecot.org Subject: Re: [Dovecot] permission denied? On Wed, 2004-08-11 at 11:20 +0200, Alex wrote:> I added dovecot user to postfix group. I even tried chmod -R 777 * in > virtual.Dovecot user isn't used for accesing mails. I wrote a page about this in http://wiki.dovecot.org/moin.cgi/UserIds, please read and say if you didn't understand something. The fix is anyway to put the right UID in the Mysql database.
Timo Sirainen wrote:> I wrote a page about this in > http://wiki.dovecot.org/moin.cgi/UserIdsQuoting from http://wiki.dovecot.org/moin.cgi/UserIds:> 2. Dovecot user > dovecot user...is only used while Dovecot is processing user logins[...]> 5. Authentication process UID > auth_user setting...only specifies the UID under which dovecot-auth > process is run. ...you might want to create a separate dovecot-auth > user to use here if you're not authenticating with PAM or shadow file > which require roots.This and other documentation seems to suggest that the 'dovecot' user ID shouldn't be reused as the auth_user setting. But based on how you have described the purpose of the two IDs, they appear to be serving a similar purpose, and thus it might make sense to use the same ID. Could you clarify in the documentation whether this is an acceptable practice, or if not, why? A scenario in which I could see there being an advantage is one in which the network process (running as 'dovecot') is compromised, and the hacker would then be unable to access the password database due to it providing access only to the UID specified by auth_user. Although it seems that additional security steps are really necessary in order for that to be true. In a typical SQL database setup, the database won't enforce system UID access restrictions, so it'll be up to the administrator to make sure the Dovecot database configuration file (say dovecot-mysql.conf) is not generally readable. Which raises the question, how restrictive can permissions be on those configuration files? Are they read by Dovecot while root? Or will they be read by the authentication process while running as auth_user? If they can be readable only by root, and the administrator takes advantage of that, then it seems there would be little advantage for auth_user != login_user because any non-root account wouldn't be able to read the config file. I see my dovecot-mysql.conf is world readable. Oops. Probably not a good thing, given it contains a MySQL password in clear text. You might want to put a security check into the code somewhere for that, in the same way it is common for MTAs to check on the permissions of files they depend on. -Tom