LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   POSTFIX - adding user (https://www.linuxquestions.org/questions/linux-networking-3/postfix-adding-user-363541/)

czezz 09-15-2005 04:05 AM

POSTFIX - adding user
 
I have mail server set on PPOSTFIX.

Structure of place where users mails are stored is like that:

/home/company/user1/Maildir/
in Maildir i can find:
/New
/Cur
/Tep

So new messages are stored in dir "New", each email = 1 file.
As I know it is very often (regular) solution.
My question is how can I add another user eg. user2

Should I create manually dir /user2
and add user2 as shell account ( as it is with user1)


additional question:
If i want to change password for existing user (user1) can I just do that with command

Code:

passwd user1
?

acid_kewpie 09-15-2005 02:26 PM

You would typically use a normal user account, added with the useradd (or adduser) command. you may well want to make the standard /Maildir/cur ln /etc/skel. then any new users will automatically have those dirs in their /home/ directory.

czezz 09-16-2005 03:35 AM

What u mean:
Quote:

you may well want to make the standard /Maildir/cur ln /etc/skel. then any new users will automatically have those dirs in their /home/ directory.
Ln - u mean to link ? How to do that ?

Let say i need to add user2 .
Command: adduser user2 ( can it belong to group users or should be postfix group ? )
Then ( when user: user2 is alrdy created ) create in /home/user2/Maildir/cur
/Maildir/New
/Maildir/Tem
Wha next? Is that all? What about this ln to /etc/skel ?

EDIT:
for existing users
ls -l command in /home

drwxr-xr-x 3 mailbox. mail 240 May 25 2004 user1
drwxr-xr-x 3 mailbox. mail 272 May 25 2004 userX
drwxr-xr-x 3 mailbox. mail 272 May 28 2004 userY

/etc/passwd:
(...)
user1:x:1052:8::/home/user1:/bin/false
userX:x:1053:8::/home/userX:/bin/false
user1:x:1054:8::/home/userY:/bin/false
(...)
/etc/group:
(...)
mail:x:8:


acid_kewpie 09-16-2005 04:39 AM

i don't mean link, no. part of creating a new user will copy all the files in /etc/skel/ to the new users directories. default settings as it were.


All times are GMT -5. The time now is 09:56 PM.