1

I can't for the life of me understand why all of a sudden no mailboxes are being created for new accounts on my Debian server. The mailbox files are usually located in /var/mail

I create a user by typing in the following command:

useradd -md /home/fred fred

As far as I can remember, this was all that was needed.

Is there something right under my nose that I am missing ?

I am using Postfix and Dovecot on this box.

Thanks in advance.

user61917
  • 121
  • 5

3 Answers3

2

the mail spool file will be created when the first email comes in.. useradd will not add the file

Mike
  • 21,910
  • 7
  • 55
  • 79
1

You have to add mailuser from postfixadmin. After that you cant add alies to system users.

ntrance
  • 392
  • 2
  • 2
1

In Debian (Lenny), there is a config file named /etc/default/useradd. Have a look in there. At the bottom of my local copy, I see this:

# Defines whether the mail spool should be created while
# creating the account
# CREATE_MAIL_SPOOL=yes

Check whether your copy has that setting commented the same as mine does. If so, uncommenting it should get useradd to behave the way you want.

Steven Monday
  • 13,019
  • 4
  • 35
  • 45
  • Thanks all. this did it: In Debian (Lenny), there is a config file named /etc/default/useradd. Have a look in there. At the bottom of my local copy, I see this: Defines whether the mail spool should be created while creating the account CREATE_MAIL_SPOOL=yes Check whether your copy has that setting commented the same as mine does. If so, uncommenting it should get useradd to behave the way you want. I really appreciate all the help. Thanks!!! – user61917 Nov 30 '10 at 01:50