[Dovecot] Confused about Maildir
I'm trying to configure Dovecot 2.0.7. In the Dovecot Wiki for Maildirs it says that Maildirs are almost always located in ~/Maildir. I'm a Linux end user, not a programmer, so I may be wrong in this; but isn't the notation "~/" used for system users only to reference their home page; /home/<user>? If that's the case, then does that mean that Maildirs can only be used with system users and not with vmail accounts?
Glen
Glen Lee Edwards schrieb:
I'm trying to configure Dovecot 2.0.7. In the Dovecot Wiki for Maildirs it says that Maildirs are almost always located in ~/Maildir. I'm a Linux end user, not a programmer, so I may be wrong in this; but isn't the notation "~/" used for system users only to reference their home page; /home/<user>? If that's the case, then does that mean that Maildirs can only be used with system users and not with vmail accounts?
In this case "~/" is the home_directory for your mail users which can be (and usually is) different from the system users.
Maildir can be used for system and vmail users.
My mail home_directory is /var/mail so ~/Maildir is translated to /var/mail/domain.tld/mailbox/Maildir
Op 22-11-2010 1:47, Glen Lee Edwards schreef:
I'm trying to configure Dovecot 2.0.7. In the Dovecot Wiki for Maildirs it says that Maildirs are almost always located in ~/Maildir. I'm a Linux end user, not a programmer, so I may be wrong in this; but isn't the notation "~/" used for system users only to reference their home page; /home/<user>? If that's the case, then does that mean that Maildirs can only be used with system users and not with vmail accounts?
Glen
As Patrick mentioned already (and to speak with Timo) ALL user should
have a homedir. This is mostly /home/<user> for real system users.
Virtuial users still should have a home dir. On my system that is a NFS
share on /disk/mail/vmail/
Egbert Jan
On 11/22/2010 12:48 AM, Egbert Jan van den Bussche wrote:
Op 22-11-2010 1:47, Glen Lee Edwards schreef:
I'm trying to configure Dovecot 2.0.7. In the Dovecot Wiki for Maildirs it says that Maildirs are almost always located in ~/Maildir. I'm a Linux end user, not a programmer, so I may be wrong in this; but isn't the notation "~/" used for system users only to reference their home page; /home/<user>? If that's the case, then does that mean that Maildirs can only be used with system users and not with vmail accounts?
The home dir is "home" in the Dovecot context - it CAN be the same as the system user home dir - but not necessarily. The home dir is used for storing support files that are needed on a per-user basis, but aren't "pure" mail files. Things like sieve scripts.
The notation of ~ is accepted shorthand for "home dir" - and since we're discussing Dovecot, it needs to be interpreted (by the reader of the docs) as "home dir" in the Dovecot context. Took me a little bit to grasp it myself.
Daniel
On 11/22/2010 11:07 AM, Daniel L. Miller wrote:
The home dir is "home" in the Dovecot context - it CAN be the same as the system user home dir - but not necessarily. The home dir is used for storing support files that are needed on a per-user basis, but aren't "pure" mail files. Things like sieve scripts.
The notation of ~ is accepted shorthand for "home dir" - and since we're discussing Dovecot, it needs to be interpreted (by the reader of the docs) as "home dir" in the Dovecot context. Took me a little bit to grasp it myself. maybe this will illustrate: $ cd /tmp # go someplace else, just so we can show that ~/ is MY_HOME_DIR
pbc@paulandcilla:/tmp$ pwd /tmp pbc@paulandcilla:/tmp$ cd ~/ pbc@paulandcilla:~$ pwd /home/pbc pbc@paulandcilla:~$ cd ~/Maildir pbc@paulandcilla:~/Maildir$ pwd /home/pbc/Maildir pbc@paulandcilla:~/Maildir$
so we basically cd to /tmp, show we are there, cd ~/ and show that it takes me to MY homedir, then cd to ~/MAILDIR and in fact that is my MAILDIR folder.
--
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459
participants (5)
-
Daniel L. Miller
-
Egbert Jan van den Bussche
-
Glen Lee Edwards
-
Patrick Westenberg
-
paul