LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Can't Understand Logwatch Error (https://www.linuxquestions.org/questions/linux-server-73/cant-understand-logwatch-error-882242/)

cmnorton 05-23-2011 07:21 AM

Can't Understand Logwatch Error
 
This problem is occurring on Red Hat EL 5 WS. However, I have two CentOS 5 systems, with similar configuration to RH EL 5, where this problem does not occur.

I am getting this error:

Can't exec "sendmail": No such file or directory at ./0logwatch line 1018, <TESTFILE> line 1.
Can't execute sendmail -t: No such file or directory

I would appreciate help in where to start debugging this.

16pide 05-23-2011 08:25 AM

first thing to check, is do you have the sendmail rpm installed?

I checked on my system this way:
$ which sendmail
/usr/sbin/sendmail
$rpm -qf /usr/sbin/sendmail
sendmail-8.14.4-5.fc13.i686

I'm running Fedora 13, but should be similar on your redhat machine

cmnorton 05-23-2011 09:32 AM

It is installed, but on 64-bit
 
Thanks for your answer. I did check to see if sendmail is installed, but it's installed differently and I suspect that is because it is installed on a 64-bit system. I can also use mail to send myself email using our email server.

root 3551 1 0 May20 ? 00:00:00 sendmail: accepting connections
smmsp 3558 1 0 May20 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue


/usr/bin/which: no sendmail in (PATH:/sbin:/bin:/usr/local/bin:/usr/bin:/root/bin)

Quote:

Originally Posted by 16pide (Post 4364542)
first thing to check, is do you have the sendmail rpm installed?

I checked on my system this way:
$ which sendmail
/usr/sbin/sendmail
$rpm -qf /usr/sbin/sendmail
sendmail-8.14.4-5.fc13.i686

I'm running Fedora 13, but should be similar on your redhat machine


16pide 05-24-2011 12:53 AM

try this:
Code:

find / -name "sendmail*" -print
to debug, if the problem is occurring in a script, you can put that script in verbose mode (typically -x option).
if it's occurring in a binary, run it in strace.


All times are GMT -5. The time now is 12:29 AM.