From: Diggy on
Hi, folks.

This morning, sendmail (8.14.2-1.1 running on CentOS 4.6) barfed.
When i tried to start the server, it threw the following error:

451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/
mail/local-host-names': World writable directory

I also got a similar error regarding /etc/mail/trusted-users in
submit.cf.

Having to get this server up and running quickly, I googled for a
possible solution. One post suggested replacing line Fw/etc/mail/
local-host-names with line Fw-o /etc/mail/local-host-names in
sendmail.cf, and Ft/etc/mail/trusted-users
with line Ft-o /etc/mail/trusted-users in submit.cf. I made those
changes and ... all was good!

My questions are: 1) what might have happened to cause this, where
other sendmail instances set up similarly on other boxes have no
problem?, and; 2) can there be any ill affects from making these
changes?

Many thanks.

Diggy
From: Diggy on
On Jan 28, 7:07 pm, Res <r...(a)ausics.net> wrote:
> On Mon, 28 Jan 2008, Diggy wrote:
>
> > Hi, folks.
>
> > This morning, sendmail (8.14.2-1.1 running on CentOS 4.6) barfed.
> > When i tried to start the server, it threw the following error:
>
> > 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/
> > mail/local-host-names': World writable directory
>
> This kind of answer your question? what are the perms on /etc/mail ?
> should be at worse 0755
>
> If you never changed anything, ask on the centos list what they did :)
>
> > My questions are: 1) what might have happened to cause this, where
> > other sendmail instances set up similarly on other boxes have no
> > problem?, and; 2) can there be any ill affects from making these
> > changes?
>
> > Many thanks.
>
> > Diggy
>
> --
> Cheers
> Res
>

The first thing I did was to check the perms of /etc/mail, and indeed
they were 0755. All of the files in that directory were also correct.

As I said above, the tweaks I made, based on another post, did work.
But, I'd still like to know why the problem occurred, and if there are
any issues associated with the tweaks.
Why would these be questions for CentOS? It's sendmail that's
complaining. Any help/insights would be much appreciated.

Diggy
From: Andrzej Adam Filip on
Diggy <dyioulos(a)gmail.com> writes:
> This morning, sendmail (8.14.2-1.1 running on CentOS 4.6) barfed.
> When i tried to start the server, it threw the following error:
>
> 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/
> mail/local-host-names': World writable directory
>
> I also got a similar error regarding /etc/mail/trusted-users in
> submit.cf.
> [...]

The message should be read as:
I can open the file but I *refuse* to open the file with too broad write
permissions in one of parent directories.

Use the command below to trace cause of problems in submit.cf
[ it is most likely the same as in sendmail.cf ]:
/usr/sbin/sendmail -Ac -d44.4 -bv root

--
[pl>en: Andrew] Andrzej Adam Filip : anfi(a)priv.onet.pl : anfi(a)xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Computers are unreliable, but humans are even more unreliable.
Any system which depends on human reliability is unreliable.
-- Gilb
----
http://groups.google.com/groups?selm=87odb47pl2(a)roberto.fsf.hobby-site.com
From: Hugo Villeneuve on
Diggy <dyioulos(a)gmail.com> wrote:

> On Jan 28, 7:07 pm, Res <r...(a)ausics.net> wrote:
> > On Mon, 28 Jan 2008, Diggy wrote:
> >
> > > Hi, folks.
> >
> > > This morning, sendmail (8.14.2-1.1 running on CentOS 4.6) barfed.
> > > When i tried to start the server, it threw the following error:
> >
> > > 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/
> > > mail/local-host-names': World writable directory
> >
> > This kind of answer your question? what are the perms on /etc/mail ?
> > should be at worse 0755
> >

> >
>
> The first thing I did was to check the perms of /etc/mail, and indeed
> they were 0755. All of the files in that directory were also correct.
>
> As I said above, the tweaks I made, based on another post, did work.
> But, I'd still like to know why the problem occurred, and if there are
> any issues associated with the tweaks.
> Why would these be questions for CentOS? It's sendmail that's
> complaining. Any help/insights would be much appreciated.
>
> Diggy

# ls -ld / /etc /etc/mail

I beleive you have to check every component of the path when you get
such an error.
From: Diggy on
On Jan 29, 8:07 am, Res <r...(a)ausics.net> wrote:
> On Tue, 29 Jan 2008, Diggy wrote:
> > As I said above, the tweaks I made, based on another post, did work.
> > But, I'd still like to know why the problem occurred, and if there are
> > any issues associated with the tweaks.
> > Why would these be questions for CentOS? It's sendmail that's
> > complaining. Any help/insights would be much appreciated.
>
> Because CentOS aka RedHat bastardise most things that go into their
> distributions, if you used the Sendmail Inc source file compiled and
> installed you have it as it's meant, not a hacked version.
> The fact CentOS's yum does automatic updates, kind of points towards it
> not being Sendmail that changed if you did not make any changes, but
> something else on the OS (unless again CentOS updated Sendmail)
>
> --
> Cheers
> Res
>
> mysql> update auth set Framed-IP-Address='127.0.0.127' where user= 'troll';

OK, point well taken. I just thought somebody on this list might have
encountered the same issue.