Welcome, Guest
Please Login or Register.
Lost Password?
Re:Logwatch has stopped working (1 viewing)
Post Reply

TOPIC: Re:Logwatch has stopped working

#11872
pixel_paul (User)
Posts: 22
graphgraph
Logwatch has stopped working 2008/04/21 03:06  
For some reason logwatch is throwing this error message:

Code:

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



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

Thanks

Paul
  The administrator has disabled public write access.
#11892
Joe (Admin)
Posts: 3712
graph
Re:Logwatch has stopped working 2008/04/21 15:38  
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.
  The administrator has disabled public write access.
#11898
pixel_paul (User)
Posts: 22
graphgraph
Re:Logwatch has stopped working 2008/04/21 23:52  
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:

mailer = "sendmail -t"



As far as I understand it, this should work?

Appreciate the help,

Paul
  The administrator has disabled public write access.
#11901
Joe (Admin)
Posts: 3712
graph
Re:Logwatch has stopped working 2008/04/22 00:13  
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.)
  The administrator has disabled public write access.
#11904
pixel_paul (User)
Posts: 22
graphgraph
Re:Logwatch has stopped working 2008/04/22 00:30  
/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 "/usr/sbin/sendmail -t" in the logwatch.conf file?
  The administrator has disabled public write access.
#11906
Joe (Admin)
Posts: 3712
graph
Re:Logwatch has stopped working 2008/04/22 01:33  
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.
  The administrator has disabled public write access.
#11909
pixel_paul (User)
Posts: 22
graphgraph
Re:Logwatch has stopped working 2008/04/22 02:28  
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
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.