Re: Amanda not sending emails
2003-10-03 12:34:59
On Fri, Oct 03, 2003 at 11:22:45AM -0400, M3 Freak wrote:
> 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"
However, do you have "mail" aliased? (I do :)
And note, amanda's mailer is "Mail", not "mail".
Does Mail work?
> 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
The parameter in the amanda.conf file "mailto" (lowercase) is
set correctly isn't it?
But the uppercase form does appear in the source code. I don't know
if it might pick this up from the environment. I don't think so,
but just in case, you could run your crontab entries as:
? ? ? ? ? MAILTO=<amanda_user> amcheck -m
I.e. put an assignment of MAILTO in front of the command.
This is called a keyword parameter and only sets the parameter
for that one command. Ex. TZ=PST8PDT date would tell me
the time and date in california without changing "my" TZ value.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|
|
|