Logwatch has stopped working

7 posts / 0 new
Last post
#1 Mon, 04/21/2008 - 03:06
pixel_paul
pixel_paul's picture

Logwatch has stopped working

For some reason logwatch is throwing this error message:

[code:1]Can't exec "sendmail": No such file or directory at /etc/cron.daily/0logwatch line 1006, <TESTFILE> line 2. Can't execute sendmail -t: No such file or directory[/code:1]

Could anyone give me a shove in the right direction please?

Thanks

Paul

Mon, 04/21/2008 - 15:38
Joe
Joe's picture

logwatch has an entry for a sendmail log rotation...but you don't have sendmail installed (at least not in the location logwatch expects it). Remove the sendmail entry (or entries) in the logwatch configuration.

--

Check out the forum guidelines!

Tue, 04/22/2008 - 00:30 (Reply to #2)
pixel_paul
pixel_paul's picture

/usr/sbin/sendmail
/usr/sbin/sendmail.postfix
/usr/sbin/sendmail.sendmail

Postfix is delivering email ok.

Do you think that it is because the path should be set to &quot;/usr/sbin/sendmail -t&quot; in the logwatch.conf file?

Tue, 04/22/2008 - 01:33 (Reply to #3)
Joe
Joe's picture

It isn't on any of my systems, all of which work, which is what makes me think something is wrong with the path. I'm not sure what's happening in your case...it's a new one for me.

--

Check out the forum guidelines!

Tue, 04/22/2008 - 02:28 (Reply to #4)
pixel_paul
pixel_paul's picture

I have changed the path in logwatch.conf to '/usr/sbin.sendmail -t' and logwatch is now working without any error messages.

I'm not sure why that is suddenly needed, but something must have changed somewhere.

Cheers,

Paul

Mon, 04/21/2008 - 23:52
pixel_paul
pixel_paul's picture

Any idea why this may have happened?

logwatch was working fine, and has all of a sudden started producing that error message....

I have postfix installed and the line in /usr/share/logwatch/default.conf is:

[code:1]mailer = &quot;sendmail -t&quot;[/code:1]

As far as I understand it, this should work?

Appreciate the help,

Paul

Tue, 04/22/2008 - 00:13 (Reply to #6)
Joe
Joe's picture

Oh! It's the mailer entry. That's a different story altogether. Sorry for the confusion.

Um...I guess the path for logwatch is broken somehow and it can't find sendmail. I'm not sure what to make of it.

Maybe the alternatives mta link is broken on your system? Does the sendmail command exist? (This would be provided by the postfix package, and the alternatives system would handle the symbolic links between sendmail and sendmail.postfix.)

--

Check out the forum guidelines!

Topic locked