Amanda-Users

Re: Amanda not sending emails

2003-10-03 11:30:37
Subject: Re: Amanda not sending emails
From: M3 Freak <m3freak AT rogers DOT com>
To: Paul Bijnens <paul.bijnens AT xplanation DOT com>
Date: 03 Oct 2003 11:22:45 -0400
Amanda is using "mail", and it works fine (just sent a test message
using "mail").  Here's what I got when I typed in what you suggested: 

UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail"

I have another question.  The "/etc/crontab" file's default setup on my
RH9 system is as follows:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
 
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

Under each of those directories, there are cron files pertaining to
other programs (e.g. under cron.daily, there are files such as hylafax
and slocate.cron).  Should I create a new file called, for example,
"amanda.cron" under "/etc/cron.daily" instead of placing the cron entry
for amanda in "/etc/crontab"?  I didn't think it would make a
difference, but maybe it does. 

Thanks,

Kanwar Sandhu

On Fri, 2003-10-03 at 11:03, Paul Bijnens wrote:
> M3 Freak wrote:
> 
> > I have amanda set up and it runs great, however I'm experiencing one
> > problem and I don't know how to fix it.  This is what I have setup in
> > the "/etc/crontab" file:
> > 
> > # amanda
> > 00 15 * * 1-5 amanda /usr/sbin/amcheck -m DailySet1
> 
> Does amanda know how to send mail? i.e. the command to send
> mail is compiled in.  Try:
>     amadmin x versin | grep MAIL
> 
> Is the mail program amanda uses working?
> 
> > 01 0 * * 2-6 amanda /usr/sbin/amdump DailySet1 && mt -f /dev/nst0