Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I created a new user through useradd <username> -M and added them to the virtusertable and generic-domains When I log into the new user though, when I try mail, I get the error /var/spool/mail/<otheruser>: Permission denied

What am I missing?

Thanks so much for the help

share|improve this question
1  
This is nothing to do with sendmail. Sendmail does not deal with mailboxes. –  symcbean Feb 11 '11 at 12:59
    
It does deal with mailboxes if there's no MDA configured, but it certainly doesn't read from them. –  grawity Feb 11 '11 at 14:43
add comment

1 Answer 1

What are the permissions on /var/spool/mail? It should probably be owner root, group mail, mode 1777. If that is in order, is there already a /var/spool/mail/otheruser mail file? Is it owned by otheruser (ls -la /var/spool/mail/otheruser).

That message is telling you that either the permissions on /var/spool/mail or on /var/spool/mail/otheruser are wrong.

You mention you put entries in virtusertable and generic-domains, what did you put there?

You can check that mail is being delivered to that user by sending a message to that user from your original user and checking what /var/spool/log/maillog reports about the attempted delivery.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.