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

Sendmail daemon is spamming with these kind of messages:

Jul 7 18:00:00 localhost sendmail[9027]: NOQUEUE: SYSERR(pgsql): /etc/mail/ line 0: cannot open: Permission denied

Permissions of /etc/mail/ are:

[root@localhost ~]# ls -al /etc/mail/

-rw-r--r-- 1 root wheel 58285 Jan 4 2013 /etc/mail/

Permissions of /etc/mail directory are:

[root@localhost ~]# ls -al /etc/mail

total 504

drwxr-xr-- 2 root wheel 512 Jan 4 2013 .

In system there is pgsql user, so as I can guess, error SYSERR(pgsql) is about user pgsql that have no permissions to some directory or file.

I also tried to do grep pgsql /etc/mail/ to find if there is any line containing pgsql (to see if there are any permissions restrictions), but I didn't find anything.

share|improve this question

closed as unclear what you're asking by Jenny D, Falcon Momot, TheCleaner, mdpc, Scott Pack Jul 8 '13 at 18:01

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you using postgres to dynamically rewrite your file somehow? We really need more information about your environment to help you. – Falcon Momot Jul 8 '13 at 15:35
up vote 1 down vote accepted

For a directory, you need execute as well as read permission in order to see files within the directory. So change the permissions to be


for /etc/mail

share|improve this answer

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