Red Hat Bugzilla – Bug 210853
useradd doesn't create mail spool files
Last modified: 2007-11-30 17:11:45 EST
Description of problem:
/usr/sbin/useradd doesn't create mail spool files, and that makes non-setuid/gid
MDA's (like postfix handing actual delivery out to procmail) unable to deliver
mail. This is true even if CREATE_MAIL_SPOOL is set to yes in /etc/default/useradd
Version-Release number of selected component (if applicable):
# rpm -q shadow-utils
It's always reproducible.
Steps to Reproduce:
1. Simply create a new user.
No /var/spool/mail/$USER is created
An empty file called $USER with ownership $USER.mail should be created in
I tested this on two boxes running RH9 and FC3, respectively, and it worked as
expected, the spool file was created:
access("/var/mail/test", R_OK) = -1 ENOENT (No such file or directory)
027763516040) = 9
(this trace is from the FC3 box)
fixed in comming update shadow-utils-4.0.14-10.FC5.