You are not logged in.

#1 2010-10-16 05:46:18

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

crond error: unable to exec /usr/sbin/sendmail: cron output for user .

I have cronjobs running as a normal user.

#
shadyabhi@ArchLinux ~/cronjobs $ crontab -l
#CronJobs located in $HOME/cronjobs/*

0 * * * * /home/shadyabhi/cronjobs/snailmail.sh
* 5 * * * /home/shadyabhi/cronjobs/backup_pkgs.sh
* 5 * * * /home/shadyabhi/cronjobs/backup_songs.sh

shadyabhi@ArchLinux ~/cronjobs $ sudo tail -f -n 10 /var/log/crond.log
Oct 16 09:00:12 ArchLinux crond[13410]: unable to exec /usr/sbin/sendmail: cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh                  to /dev/null
Oct 16 09:40:01 ArchLinux crond[1552]: FILE /var/spool/cron/root USER root PID 13622 job sys-hourly
Oct 16 10:00:01 ArchLinux crond[1552]: FILE /var/spool/cron/shadyabhi USER shadyabhi PID 13739 /home/shadyabhi/cronjobs/snailmail.sh
Oct 16 10:00:13 ArchLinux crond[13806]: mailing cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh
Oct 16 10:00:13 ArchLinux crond[13806]: unable to exec /usr/sbin/sendmail: cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh                  to /dev/null
Oct 16 10:40:01 ArchLinux crond[1552]: FILE /var/spool/cron/root USER root PID 14418 job sys-hourly
Oct 16 11:00:01 ArchLinux crond[1552]: FILE /var/spool/cron/shadyabhi USER shadyabhi PID 15527 /home/shadyabhi/cronjobs/snailmail.sh
Oct 16 11:00:13 ArchLinux crond[15593]: mailing cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh
Oct 16 11:00:13 ArchLinux crond[15593]: unable to exec /usr/sbin/sendmail: cron output for user shadyabhi /home/shadyabhi/cronjobs/snailmail.sh                  to /dev/null
Oct 16 11:07:01 ArchLinux crond[1552]: reading /var/spool/cron/cron.update
^C

shadyabhi@ArchLinux ~/cronjobs $ pacman -Q | grep sendmail
sendmail 8.14.4-1
shadyabhi@ArchLinux ~/cronjobs $ 

Why am I getting that error?

Offline

#2 2010-10-16 09:30:19

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

What does the command "which sendmail" output?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2010-10-16 10:41:52

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

loafer wrote:

What does the command "which sendmail" output?

shadyabhi@ArchLinux ~ $ which sendmail
which: no sendmail in (/home/shadyabhi/.scriptfarm/script:/home/shadyabhi/.scriptfarm/script:/bin:/usr/bin:/sbin:/usr/sbin:/opt/adobe-flex-sdk/bin:/opt/google-appengine:/opt/kde/bin:/opt/maven/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/lib/perl5/core_perl/bin:/opt/qt/bin)
shadyabhi@ArchLinux ~ $

Offline

#4 2010-10-16 19:09:02

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

The AUR package doesn't install the sendmail binary  for some reason.  There are quite a few comments about this on the AUR page.  I just built it myself.  The sendmail binary is there in the src but it doesn't get installed as part of the package.  Better ask the maintainer about why this is.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2010-10-16 19:59:09

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

loafer wrote:

The AUR package doesn't install the sendmail binary  for some reason.  There are quite a few comments about this on the AUR page.  I just built it myself.  The sendmail binary is there in the src but it doesn't get installed as part of the package.  Better ask the maintainer about why this is.

But, I have sendmail binary in /usr/sbin

shadyabhi@ArchLinux ~ $ whereis sendmail
sendmail: /usr/sbin/sendmail /usr/share/man/man1/sendmail.1.gz
shadyabhi@ArchLinux ~ $ 

Offline

#6 2010-10-16 20:26:19

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

I wonder why which doesn't know about it then?  I have no ideas.  You did install using pacman?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#7 2010-10-16 20:39:10

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

loafer wrote:

I wonder why which doesn't know about it then?  I have no ideas.  You did install using pacman?

Ya, I installed it from AUR using yaourt

Offline

#8 2010-10-16 20:57:35

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

I really don't know sorry.  I have built the package half a dozen times, including in a clean chroot and it won't even intstall the binary into /usr/sbin for me!  This is in keeping with comments on the aur page.  However, you do have the binary installed.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#9 2010-11-23 13:04:29

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: crond error: unable to exec /usr/sbin/sendmail: cron output for user .

Anyone knows how to stop crond from trying to run "sendmail" and sending an email in general?

Offline

Board footer

Powered by FluxBB