LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-15-2005, 04:05 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
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
?
 
Old 09-15-2005, 02:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 09-16-2005, 03:35 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
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:


Last edited by czezz; 09-16-2005 at 04:10 AM.
 
Old 09-16-2005, 04:39 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding users in postfix technochef Linux - Software 0 09-25-2004 11:51 AM
Adding users in Postfix reesee Linux - Newbie 0 02-27-2004 08:56 PM
Adding virtual user for Postfix hct224 Linux - Newbie 0 01-22-2004 12:47 PM
Postfix email user & linux user question. hct224 Linux - Newbie 0 11-29-2003 11:24 PM
Postfix mail server. (Adding a user from a webpage?) hawkpaul Linux - Software 6 05-30-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration