Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm getting this message for one of the mail accounts on my system:

Diagnostic-Code: X-Postfix; cannot append message to file /username: cannot
create file exclusively: Permission denied

I earlier deleted /var/spool/mail/username.lock for this user and may also have temporarily moved /var/spool/mail/username. The permissions for /var/spool/mail/username are:

-rw-r--r-- 1 username mail 0 May  6 00:08 /var/spool/mail/username

I don't know why this mail account is getting messages returned. What could be causing this error message?

share|improve this question
What is your delivery software configured in Postfix (local_transport= or virtual_transport)? Please also post the where the delivery software is configured. – mailq Jun 9 '11 at 11:36
Could be a selinux problem. Check audit.log for alerts from postfix. – AndreasM Jun 29 '11 at 6:27

It looks like you have two problems. You probably need 660 on that mail spool, you probably also don't have write permissions for the postfix user on /var/spool/mail.

share|improve this answer

Your Answer


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.