LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-12-2007, 11:18 PM   #1
gooseygander
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
ERR this user has no $home/maildir


How to set up maildir

I have a couple of mailboxes sucessfully sending mail to each other remotely from Pc's connecting to a Linux mail server

In Linux, I have added a new user [ adduser username ]
I have added a password for the new user [ passwd username]

I can from remote pc send mail from the new username, to an existing user, but I cannot receive mail.
' ERR this user has no $home/maildir' it seems there is no maildir for the new username, and the password will not accept ?

How do I fix this issue and create a mail directory for the new user in Linux ?

Mail is held in /var/spool/mail

doing ls /home I can see the username is created

As a newby I am stumped at this point. Reading on the web I see I perhaps should create cur,new,tmp maildir and change the ownership to the user

Any suggestions on how to get this done?

Regards
Gooseygander
 
Old 12-14-2007, 08:11 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Chances are you don't have your email client setup properly. Make sure your username in the Username box of your email client is your FULL email address.

Check everything is really set up correctly:
http://flurdy.com/docs/postfix/

Some related issues to check:
http://www.forum.psoft.net/archive/i...hp/t-3876.html
 
Old 12-14-2007, 08:25 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Quote:
How do I fix this issue and create a mail directory for the new user in Linux ?
In most cases, you have to edit the file /etc/default/useradd and look for the CREATE_MAIL_SPOOL key. Add (if absent) or edit to
Code:
CREATE_MAIL_SPOOL=yes
 
Old 12-14-2007, 08:49 AM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
you would use the maildirmake program to create the mail directories in the users home folder. this must be done AS THE USER..

Then you should then su to root and do the same to /etc/skel so that all new users will automatically have mail directories created when their account is created.

a good example is in this Debian mail server how-to ..

http://www.debian-administration.org/articles/364
Quote:
Creating Maildir directories

Now we need to create the Maildir directories for incoming mail to land in. We do this with the tool maildirmake, and we do it within the user's home directories. Do the following for existing users.

:# su user
:# cd ~
:# maildirmake Maildir (creates ~/Maildir plus cur, new, and tmp subdirs)
:# maildirmake -f Drafts Maildir (creates ~/Maildir/.Drafts)
:# maildirmake -f Junk Maildir (creates ~/Maildir/.Junk)
:# maildirmake -f Sent Maildir (creates ~/Maildir/.Sent)
:# maildirmake -f Templates Maildir (creates ~/Maildir/.Templates)
:# exit (back to being root)

Now repeat the above process as root in /etc/skel so new users will get Maildir directories automatically.

Last edited by farslayer; 12-14-2007 at 08:52 AM.
 
  


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
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 12:23 PM
qmail/vpopmail not putting mails in /home/vpopmail/domain/$USER/Maildir kikola Slackware 0 10-10-2006 08:52 AM
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 03:00 PM
Dual system boot err: rootnoverify(hd1,0),but the hd0 err msg existed befor shut down lilipeng24 Linux - General 3 06-25-2005 12:10 PM
err!! what is the default user name/passwords for mephis 3.3? murfman89 Linux - Newbie 5 06-10-2005 08:53 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration