Re: [Dovecot] pop3 authentication failure - password mismatch
On 7/22/05, Girish Patangay girish@intoto.com wrote:
Shouldn't you be using "shadow" instead of passwd for the passdb?
Just a curious question.
Yes! You are right. "shadow" should work as well.
I just give it a try and auth worked! Thanks.
However, I am not hitting another problem : no proper permission.
If I understand correctly I have set it in dovecot.conf file to use "root" for processing. How come I don't have enough permission?
Jul 23 02:26:56 hsiufen dovecot: Dovecot v1.0-stable starting up Jul 23 02:28:10 hsiufen dovecot: pop3-login: Login: jam [24.6.106.170] Jul 23 02:28:10 hsiufen dovecot: POP3(jam): open(/var/mail/.temp.hsiufen.net.15682.f3c4cf83d750e6e4) failed: Permission denied Jul 23 02:28:10 hsiufen dovecot: POP3(jam): file_lock_dotlock() failed with mbox file /var/mail/jam: Permission denied Jul 23 02:28:31 hsiufen dovecot: Killed with signal 2
Any ideas?
Jun
On Fri, 2005-07-22 at 19:46 -0700, James Sun wrote:
open(/var/mail/.temp.hsiufen.net.15682.f3c4cf83d750e6e4) failed: Permission denied Jul 23 02:28:10 hsiufen dovecot: POP3(jam): file_lock_dotlock() failed with mbox file /var/mail/jam: Permission denied
On 7/23/05, Timo Sirainen tss@iki.fi wrote:
On Fri, 2005-07-22 at 19:46 -0700, James Sun wrote:
open(/var/mail/.temp.hsiufen.net.15682.f3c4cf83d750e6e4) failed: Permission denied Jul 23 02:28:10 hsiufen dovecot: POP3(jam): file_lock_dotlock() failed with mbox file /var/mail/jam: Permission denied
Great! It worked after I added the extra_mail_groups.
(BTW, it would be nice if all the pains I have gone through could be lumped into some kind of FAQ. Just a wish.)
One thing I can confirm is that 1.0-stable does *not* add "Status: O" to header anymore, even with pop3_no_flag_updates turned off. Perhaps the header re-write with "Status: O" was a known bug in the previous versions? Why nobody else noticed this?
I am still having trouble with ssl in my own-built 1.0 version. Any pointer would be appreiciated. I suspect it is because openssl-devel was not installed. Timo, can you confirm that? It would be nice it gives out an warning if ssl is configured but no ssl devel libraries were found. Silence gives an impression everything was built as configured.
Cheers.
Jun
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQBC4fXtyUhSUUBViskRArPIAJ4iDTLhgTc5jaFuzSiseQ+aH6/rtQCfS/0A k9+BSf67/ozLKu5TI7M+02A= =I4M0 -----END PGP SIGNATURE-----
James,
The way I understand it is that when you login with a user, whether it be pop3 or imap, it uses that user's privileges to access the files. Therefore, all you need to do is have the file chowned to the user it belongs to and it should work. Personally I wouldn't use dotlocking since it's inefficient, try one of the other methods, they work great as long as you don't have the mail partition nfs mounted or a weird filesystem.
Good luck!
Girish
On Fri, 2005-07-22 at 19:46 -0700, James Sun wrote:
On 7/22/05, Girish Patangay girish@intoto.com wrote:
Shouldn't you be using "shadow" instead of passwd for the passdb?
Just a curious question.
Yes! You are right. "shadow" should work as well.
I just give it a try and auth worked! Thanks.
However, I am not hitting another problem : no proper permission.
If I understand correctly I have set it in dovecot.conf file to use "root" for processing. How come I don't have enough permission?
Jul 23 02:26:56 hsiufen dovecot: Dovecot v1.0-stable starting up Jul 23 02:28:10 hsiufen dovecot: pop3-login: Login: jam [24.6.106.170] Jul 23 02:28:10 hsiufen dovecot: POP3(jam): open(/var/mail/.temp.hsiufen.net.15682.f3c4cf83d750e6e4) failed: Permission denied Jul 23 02:28:10 hsiufen dovecot: POP3(jam): file_lock_dotlock() failed with mbox file /var/mail/jam: Permission denied Jul 23 02:28:31 hsiufen dovecot: Killed with signal 2
Any ideas?
Jun
participants (3)
-
Girish Patangay
-
James Sun
-
Timo Sirainen