[Dovecot] adding new user to dovecot
Hi, This is from your documentation Creating new users
Dovecot is interested in only one thing - being able to find the user's mail directory. With maildir you need to do mkdir ~user/Maildir, with mbox mkdir ~user/mail.
what does ~ refer to. Pardon my ignorance in unix, i am relatively new to unix.
Does not ~ refer to the user account in which you have logged in. So does that mean that maildir folder exist for only user accounts that already exist.My intention for asking the above is that i have a java program running, that will take a new users name and password, so with that can i create a mailbox for that person , or does the admin have to create an user account for that person , so that his maildir folder can be created.
Please clarify my understanding of how it workds.. Thanks
On Thu, 2004-04-15 at 09:15, Kartik Vaidyanathan wrote:
Dovecot is interested in only one thing - being able to find the user's mail directory. With maildir you need to do mkdir ~user/Maildir, with mbox mkdir ~user/mail.
what does ~ refer to. Pardon my ignorance in unix, i am relatively new to unix.
You have to understand that the "magic" here is not "~", but "~user", and conventionally "~user" refers to the $HOME directory for "user".
Of course, what dovecot really looks for can be specified in its configuration file (so you can also use ~user/.invisimail) or whatever. IIRC it is not specified as "~" or "~user" in the config file, but "$user" or so.
johannes
"Normally" you would have one system user account for each mail user. The mail user would be the system account. Therefore, you would create a user kartik (any other name is fine too). The mails would be stored in the home directory of this user (normally, this would be /home/kartik). This is all configurable...
As Johannes already pointed out, ~ is a synonym for the home directory of the current user in a shell. If you, as user kartik, type: kartik> echo ~ you get the answer /home/kartik which is the home directory of user kartik. You can use ~kartik or ~root or anything else and this always resolves to the home directory of the specified user.
Maybe you should tell us what you would like to do. Operating system, number of users, existing solution...
Sven
participants (3)
-
Johannes Berg
-
Kartik Vaidyanathan
-
Sven Kirmess