Friday, 21 January 2011

/etc/mail/sendmail.cf : line 91 -- Sendmail error

Sendmail Fails to restart.
Starting sendmail : 451 4.0.0 /etc/mail/sendmail.cf : line 91 : fileclass :
Cannot open '/etc/mail/local-host-names' : World writable Directory

Recently i have faced a problem with Sendmail server, it failed to start
throwing a strange Error -

Starting sendmail : 451 4.0.0 /etc/mail/sendmail.cf : line 91 : fileclass :
Cannot open '/etc/mail/local-host-names' : World writable Directory
Starting sendmail : 451 4.0.0 /etc/mail/sendmail.cf : line 588 : fileclass :
Cannot open '/etc/mail/local-host-names' : World writable Directory
Starting sm-client : /etc/mail/submit.cf : line 545 : fileclass : Cannot
open '/etc/mail/local-host-names' : World writable Directory

Well there is nothing strange 'bout the error alone, but with the fact that
the permission to /etc/mail/* is perfectly ok, none of the files or folder
has permission to be written by any user then owner that is root. The
sendmail.cf and submit.cf has never been touched and sendmail was running
fine just before rebooting the system.

Well got the solution and it worked for me, edit the file
/etc/mail/sendmail.cf and add -o ('oh') to line 91 and 588 that is change
Fw/etc/mail/local-host-names to Fw-o /etc/mail/local-host-names. Similarly
edit /etc/mail/submit.cf and add -o that is change Ft/etc/mail/trusted-users
to Ft-o /etc/mail/trusted-users.

No comments:

ISM Cyber Security Terms

ISM Cyber Security Terms