Mark Reis wrote: > Hi, > > For security reasons, we do not run sendmail as a daemon - instead it > is called whenever a user or process wants to send mail. However, the > one time we run into problems is if the mail server rejects the mail. > In this case, the mail sits in the mail queue until someone manually > runs /usr/lib/sendmail -q . To remedy this problem I'm attempting to > set up a cron job to run the check every 5 minutes. > > Oddly enough the following cron job works fine if I place it in > /var/spool/cron/root, but it fails if I append it to the /etc/crontab > . Does anyone have an idea why? > > 0-59/5 * * * * /usr/lib/sendmail -q
Because you have not told cron what user to run the cronjob as. try: 0-59/5 * * * * root /usr/lib/sendmail -q Steve Cowles -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
