Skip to contentSkip to conversation

Can't exec /usr/sbin/sendmail (After Kernel Install) ??

DISCUSSION Peter Moscatt 2 participants 2 messages Oct 8, 2001 – Oct 9, 2001

lore
Share & tools
lore
#0 lore raw

I have just recently compiled my first kernel (2.4.10) onto my Mandrake 8.0 system.

All seems to be working fine, so I had a look at the 'dmesg' file in /var/log just to see it any errors were appearing.

I have noticed that the following is occuring:

Oct 8 19:46:53 qld anacron[818]: Job 'cron.daily' terminate (mailing output)
Oct 8 19:46:53 qld anacron[1302]: Can't exec /usr/sbin/sendmail: No such file or directory Oct 8 19:46:53 qld anacron[818]: Tried to mail output to job 'cron.daily', but mailer process (/usr/sbin/sendmail) exited with status 1
Oct 8 19:46:53 qld anacron[818]: Normal exit (1 jobs run)

Is it just a matter or installing sendmail and all will be sweet again ?

Pete

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

#1 lore raw
Quoted 7 lines · Peter Moscatt

I have just recently compiled my first kernel (2.4.10) onto my Mandrake 8.0 system.

All seems to be working fine, so I had a look at the 'dmesg' file in /var/log just to see it any errors were appearing.

Quoted 6 lines

I have noticed that the following is occuring:

Oct 8 19:46:53 qld anacron[818]: Job 'cron.daily'
terminate (mailing output)
Oct 8 19:46:53 qld anacron[1302]: Can't exec
/usr/sbin/sendmail: No such file or directory

Merely installing a new kernel should not have affected any of the executables. First, see if the file exists:

ls -la /usr/sbin/sendmail

If it doesn't, try to find it:

which sendmail

or:

find / -name "sendmail"

If it doesn't exist, find it in your distribution and install it. You can actually just do the following from the root account:

cp /wherever_on_distribution/sendmail /usr/sbin/sendmail chown 0.0 /usr/sbin/sendmail
chmod 4755 /usr/sbin/sendmail

If it exists somewhere else, like /usr/sendmail, do:

ln -s /usr/sendmail /usr/sbin/sendmail

It may exist in /lost+found. If so, don't use it. It's probably corrupt, having been put there by fsck during startup.

If it does exist, try to find out why it blows up when being executed, do:

strace /usr/sbin/sendmail -q

If that works, try:

strace /usr/sbin/sendmail

It should print a message and wait for input if it's working. Just ^C out. It seems to work.

Otherwise, see from strace, what system call failed and report it.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be attributed to Microsoft. Once I realized that Ctrl-Alt-Del was handled in the BIOS, I found that there aren't any.