/etc/mail/sendmail.cf: line 91: fileclass: cannot open ‘/etc/mail/local-host-names’: World writable directory
e.g.
[root@test ~]# mailq
/etc/mail/sendmail.cf: line 91: fileclass: cannot open ‘/etc/mail/local-host-names’: World writable directory
/etc/mail/sendmail.cf: line 588: fileclass: cannot open ‘/etc/mail/trusted-users’: World writable directory

As Error clearly indicate that mentioned file have write access for other and group as well and need to change permission for this. So just change permissions and restart sendmail service as below :
#chmod go-w /
#chmod go-w /etc
#chmod go-w /etc/mail
#service sendmail restart
[root@test ~]# mailq
 /var/spool/mqueue (5 requests)
—–Q-ID—– –Size– —–Q-Time—– ————Sender/Recipient———–
qAHFnjL8006870      166 Sat Nov 17 07:49
                 (Deferred: Connection refused by test.com.)
                                        
qAG9F7d9023285     5631 Fri Nov 16 01:15 MAILER-DAEMON

Posted in: Linux.
Last Modified: October 28, 2013

Leave a reply