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

Sendmail daemon is spamming with these kind of messages:

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

Permissions of /etc/mail/sendmail.cf are:

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

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

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/sendmail.cf 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 sendmail.cf file somehow? We really need more information about your environment to help you. –  Falcon Momot Jul 8 '13 at 15:35

1 Answer 1

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

drwxr-xr-x 

for /etc/mail

share|improve this answer

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