[Dovecot] dovecot and fc2
Hello
I am migrate FC1 to FC2, in FC1 i use ipop3d, but in the migration to FC2 this programa is obsolete, i decide migrate to dovecot, but i have problems with the old mail i have the mail stored into /var/spool/mail/USER and this error appears with examine the mail with Oulook Express: Jun 6 23:24:10 dakota pop3(dakota): open(/var/spool/mail/dakota.lock) failed: Permission denied Jun 6 23:24:10 dakota pop3(dakota): file_lock_dotlock() failed with mbox file /var/spool/mail/dakota: Permission denied Jun 6 23:24:10 dakota pop3(dakota): open(/var/spool/mail/dakota.lock) failed: Permission denied Jun 6 23:24:10 dakota pop3(dakota): file_lock_dotlock() failed with mbox file /var/spool/mail/dakota: Permission denied Jun 6 23:24:10 dakota pop3: I/O leak: 0x8050b08 (0) Jun 6 23:24:10 dakota pop3: I/O leak: 0x807c2b4 (1) Jun 6 23:24:10 dakota pop3: Timeout leak: 0x8062520
into dovecot.conf i have proved differents options
###default_mail_env = mbox:/var/spool/mail/%u:INDEX=/var/indexes/%u #mbox:~/mail/:INBOX=/var/spool/mail/%u #maildir:/var/spool/mail/%1u/%u/Maildir default_mail_env =mbox:~/mail/imap/:INBOX=/var/spool/mail/%u
with pine not have problem to read the mail, but i need pop3 and imap for the external users i need help, i have 1 week without email :(
regards and sorry for my english
dakota@dakotabcn.net Administrador Servidor dakotabcn.net LINUX Registrered USER 93707 :) P.o Box 579 08913 Badalona (Barcelona) SPAIN firmas GnuPG en http://pgp.escomposlinux.org/ dakota@menta.net || dakota@escomposlinux.org
- Equipos PIV 2.2 Ghz - 1.5 Gb RAM - W-XP Pro Dual Xeon 2.8Ghz - 1 Gb Ram - Linux Fedora Core 1 Firma para spammers: test@spamout.com.ar (no usar!!!)
On Sun, Jun 06, 2004 at 11:33:46PM +0200, Javi Pardo (DAKOTA) wrote:
I am migrate FC1 to FC2, in FC1 i use ipop3d, but in the migration to FC2 this programa is obsolete, i decide migrate to dovecot, but i have problems with the old mail i have the mail stored into /var/spool/mail/USER and this error appears with examine the mail with Oulook Express: Jun 6 23:24:10 dakota pop3(dakota): open(/var/spool/mail/dakota.lock) failed: Permission denied Jun 6 23:24:10 dakota pop3(dakota): file_lock_dotlock() failed with mbox file /var/spool/mail/dakota: Permission denied
Looks to me like Dovecot is trying to create dotlock files within /var/spool/mail, but doesn't have sufficient permissions to do so.
There are usually two solutions to this:
(1) chmod 1777 /var/spool/mail
This allows any user to create files in /var/spool/mail, but the 'sticky' bit prevents a user from deleting another user's files.
(2) give the imap/pop3 server sufficient rights to create files under /var/spool/mail. Typically this means it running as group "mail", and /var/spool/mail will be mode 775 (rwxrwxr-x) with group owner "mail"
(3) don't use dotlocks at all; use flock or fcntl locking.
I'm only here to learn a bit more about Dovecot and am not actually using it at the moment, so I don't know how you configure Dovecot for case (2).
with pine not have problem to read the mail
Perhaps pine is running setgid mail? Try "ls -l /usr/bin/pine". If so, effectively pine is using solution (2) from above. Otherwise, perhaps pine is using solution (3).
It's very important that all your applications on the system use the same locking method, otherwise data corruption will occur when the same mailbox is accessed twice concurrently.
Personally I would migrate away from mbox to Maildir format; that gets rid of locking issues altogether.
Regards,
Brian.
participants (2)
-
Brian Candler
-
Javi Pardo (DAKOTA)