[Dovecot] popa3d migration problem
Hello,
I tried to migrate from popa3d to dovecot but I couldn't manage with 'pop3_reuse_xuidl = yes' option.
First of all it turned out that the feature is not supported in dovecot for Fedora Core 4 (dovecot-0.99.14-4.fc4). So I downloaded latest stable release of Dovecot but it didn't have this option included too. Then I compiled the newest alpha version (dovecot 1.0.alpha4) and I tried to login with 'pop3_reuse_xuidl = yes' option enabled and I've got in my logfile the following output:
Nov 1 00:58:33 sneogg dovecot: pop3-login: Login: user=<test2>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 1 00:58:33 sneogg dovecot: pop3(test2): Set pop3_uidl_format setting in config file Nov 1 00:58:33 sneogg dovecot: child 32067 (pop3) returned error 89
And my session was disconnected immediately each time after sucessful authentication..
I tried to set up pop3_uidl_format to MD5 (%m) but it didn't work...
Let me ask if there is a possibility to migrate from popa3d to dovecot (by using a proper patch maybe?)?
I'd thankful for any response...
Janusz
Janusz Batko wrote:
Nov 1 00:58:33 sneogg dovecot: pop3(test2): Set pop3_uidl_format setting in config file I tried to set up pop3_uidl_format to MD5 (%m) but it didn't work...
Did you put it inside protocol pop3 section?
protocol pop3 { pop3_uidl_format = %m }
-- Tomi Hakala
Nov 1 00:58:33 sneogg dovecot: pop3(test2): Set pop3_uidl_format setting in config file I tried to set up pop3_uidl_format to MD5 (%m) but it didn't work...
Did you put it inside protocol pop3 section? protocol pop3 { pop3_uidl_format = %m }
Yes, I put it there.
When I'm logging on port 110 using telnet I got this message:
-ERR Internal error occurred. Refer to server log for more information. [2005-11-01 12:31:24] Connection closed by foreign host.
And the log file reports:
Nov 1 12:31:24 sneogg dovecot: pop3-login: Login: user=<test2>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 1 12:31:24 sneogg dovecot: pop3(test2): open(/var/mail/.temp.sneogg.araneo.pl.15235.cf176acb943a102d) failed: Permission denied Nov 1 12:31:24 sneogg dovecot: pop3(test2): file_lock_dotlock() failed with mbox file /var/mail/test2: Permission denied Nov 1 12:31:24 sneogg dovecot: pop3(test2): Mailbox init failed top=0/0, retr=0/ del=0/0, size=0
Thank you for quick reponse!
Greetings, Janusz
On Tue, Nov 01, 2005 at 12:36:28PM +0100, Janusz Batko wrote:
Nov 1 12:31:24 sneogg dovecot: pop3-login: Login: user=<test2>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 1 12:31:24 sneogg dovecot: pop3(test2): open(/var/mail/.temp.sneogg.araneo.pl.15235.cf176acb943a102d) failed: Permission denied Nov 1 12:31:24 sneogg dovecot: pop3(test2): file_lock_dotlock() failed with mbox file /var/mail/test2: Permission denied Nov 1 12:31:24 sneogg dovecot: pop3(test2): Mailbox init failed top=0/0, retr=0/ del=0/0, size=0
If your incoming mail directory is not /var/mail, you need to tell dovecot where it is. (see mailenv)
That's a permissions problem with /var/mail. If you want to use "dot locking", which is necessary if you have more than one way of accessing the incoming mail, such as using a different pop and imap daemon, some people reading the mail locally, or sharing the mail via NFS or SAMBA, then you need to:
The standard (and less than wonderful) way is to make /var/mail world writeable as in:
ls -ld /var/spool/mail drwxrwxrwt 2 root mail 4096 Nov 1 14:14 /var/spool/mail
This makes the incoming mail directory owned by root, with a group of mail and world writeable. Note that this does not let individual people read others mail, but on a system used by many people it's dangerous.
It would be better to make the directory owned by root, with a group mail and permissions set to 0775. This allows anyone in group mail to write to it, without allowing a general user to do so.
Make sure that your mail delivery program will allow you to do this, some will not and require the incoming mail directory to be world writeable.
Then make sure that you have the options set in your dovecot.conf file:
mail_extra_groups = mail
lock_method = dotlock
mbox_read_locks = dotlock
mbox_write_locks = dotlock
(other locking methods may be better, it depends upon what else
access your mail directory)
Geoff.
Geoffrey S. Mendelson, Jerusalem, Israel gsm@mendelson.com N3OWJ/4X1GM IL Voice: (07)-7424-1667 IL Fax: 972-2-648-1443 U.S. Voice: 1-215-821-1838 You should have boycotted Google while you could, now Google supported BPL is in action. Time is running out on worldwide radio communication.
participants (3)
-
Geoffrey S. Mendelson
-
Janusz Batko
-
Tomi Hakala