Re: Re: [Dovecot] virtual domain
Thank you. Timo. I have installed Dovecot 1.0 alpha3 and tested. It is a mbox POP3 only server. The relevent part of dovecot.conf I have changed:
default_mail_env = mbox:/tmp:INBOX:/var/spool/virutal/%d/%u:INDEX=MEMORY
passdb passwd-file { # Path for passwd-file args = /etc/virtual/%d/passwd }
userdb static { args = uid=503 gid=503 mail=mbox:/var/spool/virtual/%d/%n }
I can login with user@domain1.com but there is error in logfile: Sep 27 13:15:16 ns2 dovecot: pop3(user@domain1.com): mbox: Can't create root IMAP folder /mail: Permission denied Sep 27 13:15:16 ns2 dovecot: pop3(user@domain1.com): Failed to create storage with data: mbox:/var/spool/virtual/domain1.com/user Sep 27 13:15:16 ns2 dovecot: pop3-login: Login: user=<user@domain1.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Sep 27 13:15:16 ns2 dovecot: child 19147 (pop3) returned error 89
I then created a /mail directory with file mode 777, then it is OK.
Why I need a IMAP folder in a POP3 only server and can I change that folder to /tmp directory.
On Tue, 2005-09-27 at 13:29 +0800, Barry Kwok wrote:
Drop the "mail" part from here. You already have it in default_mail_env, and it's correct there. Here you're saying that the .../%d/%n is the mail directory, not file. If it refuses to start up without the mail= part, replace it with home=/tmp instead.
Why I need a IMAP folder in a POP3 only server
Dovecot is mostly an IMAP server, POP3 was just an afterthought.
and can I change that folder to /tmp directory.
Yes, as long as nothing actually gets written there (and with INDEX=MEMORY and POP3 nothing should get written there).
participants (2)
-
Barry Kwok
-
Timo Sirainen