[Dovecot] question about
Hi, I am running Dovecot (dovecot-0.99.11-2.EL4.1 on centos 4) and we are switching from newer machines. I copied all usernames from /etc/passwd,/etc/group and /etc/shadow to the new machine. I do not want that every user has it's own /home/$user directory.. When I test my dovecot installation with a telnet 'servername' 110 user test pass test
I get this error: ################################################################################ Jun 20 13:22:47 mx01 pop3(aaptest): mbox: Can't create root IMAP folder /home/aaptest/mail: Permission denied Jun 20 13:22:47 mx01 pop3(aaptest): MAIL environment missing and autodetection failed (home /home/aaptest) Jun 20 13:22:47 mx01 dovecot: child 3393 (pop3) returned error 89 ##############################################################################
So I changed the MAIL environment to /var/spool/mail (using Sendmail and mbox)
Now I get this error:
###############################################################################3 Jun 20 13:27:37 mx01 pop3-login: Login: aaptest [::ffff:10.101.3.37] Jun 20 13:27:37 mx01 pop3(aaptest): open(/var/spool/mail//inbox, O_CREAT) failed: Permission denied Jun 20 13:27:37 mx01 pop3(aaptest): mkdir_parents(/var/spool/mail//.imap/INBOX) failed: Permission denied #################################################################################
Wht is Dovecot trying to AUTOcreate IMAP folders? I do not want Dovecot to do this hence I tell Dovecot to serve only pop3 and pop3s: # imap imaps pop3 pop3s protocols = pop3 pop3s
# IP or host address where to listen in for connections. It's not currently # possible to specify multiple addresses. "*" listens in all IPv4 interfaces. # "[::]" listens in all IPv6 interfaces, but may also listen in all IPv4 # interfaces depending on the operating system. You can specify ports with # "host:port". #imap_listen = [::] pop3_listen = [::]
Does anyone know how I can dissable this IMAP-AUTOcreate behaviour?
Thanks in advance.
Michiel
On Mon, 2005-06-20 at 13:41 +0200, Michiel van Es wrote:
I do not want that every user has it's own /home/$user directory..
See last chapter of http://wiki.dovecot.org/moin.cgi/MailLocation
Timo Sirainen wrote:
On Mon, 2005-06-20 at 13:41 +0200, Michiel van Es wrote:
I do not want that every user has it's own /home/$user directory..
See last chapter of http://wiki.dovecot.org/moin.cgi/MailLocation
I do not get it.. I have all usersmail stored in /var/spool/mail/%u But Dovecot HAS to write somewhere an INBOX file/directory ? My questions is WHY does it have to create an INBOX directory/file??
Jun 20 15:14:54 mx01 pop3-login: Login: aaptest [::ffff:10.101.3.37] Jun 20 15:14:54 mx01 pop3(aaptest): mbox: Can't create root IMAP folder /home/aaptest/mail: Permission denied Jun 20 15:14:54 mx01 pop3(aaptest): Failed to create storage with data: mbox:/var/spool/mail/aaptest Jun 20 15:14:54 mx01 dovecot: child 3698 (pop3) returned error 89
I told dovecot that I do not want an IMAP server but it HAS to create an IMAP folder?
And if I have to allow dovecot to create an IMAP folder..how do I tell Dovecot it can put al his INBOX files per user in /tmp?
Thanks in advance.
Michiel
Michiel van Es wrote:
Timo Sirainen wrote:
On Mon, 2005-06-20 at 13:41 +0200, Michiel van Es wrote:
I do not want that every user has it's own /home/$user directory..
See last chapter of http://wiki.dovecot.org/moin.cgi/MailLocation
I do not get it.. I have all usersmail stored in /var/spool/mail/%u But Dovecot HAS to write somewhere an INBOX file/directory ? My questions is WHY does it have to create an INBOX directory/file??
Jun 20 15:14:54 mx01 pop3-login: Login: aaptest [::ffff:10.101.3.37] Jun 20 15:14:54 mx01 pop3(aaptest): mbox: Can't create root IMAP folder /home/aaptest/mail: Permission denied Jun 20 15:14:54 mx01 pop3(aaptest): Failed to create storage with data: mbox:/var/spool/mail/aaptest Jun 20 15:14:54 mx01 dovecot: child 3698 (pop3) returned error 89
I told dovecot that I do not want an IMAP server but it HAS to create an IMAP folder?
And if I have to allow dovecot to create an IMAP folder..how do I tell Dovecot it can put al his INBOX files per user in /tmp?
Thanks in advance.
Michiel I think I found it!
default_mail_env = mbox:/var/spool/mail/%u:INBOX=/var/mail/%u:INDEX=/tmp/indexes
Michiel van Es wrote:
Michiel van Es wrote:
Timo Sirainen wrote:
On Mon, 2005-06-20 at 13:41 +0200, Michiel van Es wrote:
I do not want that every user has it's own /home/$user directory..
See last chapter of http://wiki.dovecot.org/moin.cgi/MailLocation
<snip problem>
I told dovecot that I do not want an IMAP server but it HAS to create an IMAP folder?
And if I have to allow dovecot to create an IMAP folder..how do I tell Dovecot it can put al his INBOX files per user in /tmp?
Thanks in advance.
Michiel
I think I found it!
default_mail_env = mbox:/var/spool/mail/%u:INBOX=/var/mail/%u:INDEX=/tmp/indexes
Correction: default_mail_env = mbox:/var/spool/mail/%u:INBOX=/var/mail/%u:INDEX=/tmp/indexes/%u/
Is the folder .imap per user growing? I mean is it updated or is it a onetime only creation of a directory? (thus I am not using Imap..)
Michiel
On Mon, Jun 20, 2005 at 03:18:33PM +0200, Michiel van Es wrote:
Timo Sirainen wrote:
On Mon, 2005-06-20 at 13:41 +0200, Michiel van Es wrote:
I do not want that every user has it's own /home/$user directory..
See last chapter of http://wiki.dovecot.org/moin.cgi/MailLocation
I do not get it.. I have all usersmail stored in /var/spool/mail/%u But Dovecot HAS to write somewhere an INBOX file/directory ? My questions is WHY does it have to create an INBOX directory/file??
It's a (stupid!) fact of life with the IMAP protocol.
Your MUA (E-Mail client program) could, if it wanted, hide the INBOX. It's not really essential that the users see it.
-- Chris Green (chris@areti.co.uk)
"Never ascribe to malice that which can be explained by incompetence."
Chris Green wrote:
On Mon, Jun 20, 2005 at 03:18:33PM +0200, Michiel van Es wrote:
Timo Sirainen wrote:
On Mon, 2005-06-20 at 13:41 +0200, Michiel van Es wrote:
I do not want that every user has it's own /home/$user directory..
See last chapter of http://wiki.dovecot.org/moin.cgi/MailLocation
I do not get it.. I have all usersmail stored in /var/spool/mail/%u But Dovecot HAS to write somewhere an INBOX file/directory ? My questions is WHY does it have to create an INBOX directory/file??
It's a (stupid!) fact of life with the IMAP protocol.
Your MUA (E-Mail client program) could, if it wanted, hide the INBOX. It's not really essential that the users see it.
I do not mind that it is an IMAP 'feature'..I DO mind that Dovecot is autocreating it although I told dovecot to only serve pop3 and pop3s!!
Michiel
Michiel van Es wrote:
I do not mind that it is an IMAP 'feature'..I DO mind that Dovecot is autocreating it although I told dovecot to only serve pop3 and pop3s!!
Michiel
It's actually nothing to do with IMAP particularly, but it's how Dovecot stores its indexes/cache to improve performance for all mailbox accesses, whether POP or IMAP. The INBOX is a "special" folder in IMAP, but the only folder in POP ;)
You could have :INDEX=MEMORY (at least with dovecot-1.0-testXX) if you really don't want the indexes to be stored on disk (but there have been bugs in it until recently).
Best Wishes, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
Chris Wakelin wrote:
Michiel van Es wrote:
I do not mind that it is an IMAP 'feature'..I DO mind that Dovecot is autocreating it although I told dovecot to only serve pop3 and pop3s!!
Michiel
It's actually nothing to do with IMAP particularly, but it's how Dovecot stores its indexes/cache to improve performance for all mailbox accesses, whether POP or IMAP. The INBOX is a "special" folder in IMAP, but the only folder in POP ;)
You could have :INDEX=MEMORY (at least with dovecot-1.0-testXX) if you really don't want the indexes to be stored on disk (but there have been bugs in it until recently).
Best Wishes, Chris
Thanks! :) I use default_mail_env = mbox:/var/spool/mail/%u:INBOX=/var/mail/%u:INDEX=/tmp/indexes/%u/
and it works perfect! :)
Michiel
On Mon, 2005-06-20 at 16:04 +0300, Timo Sirainen wrote:
On Mon, 2005-06-20 at 13:41 +0200, Michiel van Es wrote:
I do not want that every user has it's own /home/$user directory..
See last chapter of http://wiki.dovecot.org/moin.cgi/MailLocation
Wonder why Evolution has decided to start resending some messages, ignore..
participants (4)
-
Chris Green
-
Chris Wakelin
-
Michiel van Es
-
Timo Sirainen