[Dovecot] User-specific mail_location using passwd database
Matt Ezell
mezell1 at eecs.utk.edu
Sat Jan 26 22:00:21 EET 2008
Maxime Brugidou wrote:
> Can you do this with /etc/passwd ?
>
> I tried to put a line like this :
>
> pseudo:x:1010:100:My
> Name,,,:/home/pseudo:/bin/zsh:userdb_mail=mbox:~/mail
>
> But it doesn't work : I cannot even login using that line (the shell is
> considered to be /bin/zsh:userdb_mail=mbox:~/mail)
>
> I already searched the wiki, and didn't find my answer. I apologize if I
> am mistaken and do it wrong, but please explain me how to do this.
>
> Max
>
You cannot do that with the /etc/passwd, only with a passwd-file. Not
very useful if you are using them as actual system users.
What you probably need to do is override the mail_executable setting to
point to a script. See the last section in
http://wiki.dovecot.org/MailLocation
~Matt
More information about the dovecot
mailing list