Amanda-Users

Re: Email delivery

2005-10-28 09:56:42
Subject: Re: Email delivery
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 28 Oct 2005 09:42:53 -0400
On Fri, Oct 28, 2005 at 11:54:10AM +0200, Lars Bakker wrote:
> >>On Fri, Oct 28, 2005 at 04:07:10AM +0200, Lars Bakker enlightened us:
> >>> Can somebody tell me how Amanda sends email reports? I'm using the
> >>> Kolab2 server on the same machine that should do the backups but
> >>> unfortunately I get no reports although the smtp server works fine. Is
> >>> Amanda using another program for mail delivery?
> >>> 
> >>
> >>It finds a mail program at compile time. You can find it with 
> >>
> >>grep MAILER /path/to/logfiles/amandad.$DATETIME.debug
> >>
> >>Filling in the path and date/time appropriately. On my system, it's 
> >>looking
> >>at /usr/bin/Mail.
> >>
> >
> >Another way is amgetconf:
> >
> >     $ amgetconf DS1 build.mailer
> >     /usr/ucb/Mail
> >
> >Really, I didn't know my amanda was using that mail program.
> 
> I guess I'll have to find some kind of wrapper script that works like
> the mail program because my mailx installation does not work in
> conjunction with Kolab2. I have tried to use nail (ln -s /usr/bin/nail
> /usr/bin/mail) instead and reports seem to work fine but when I run
> amcheck with the -m parameter no mail is sent. nail and mailx do not use
> the same parameters but I kind of hoped that amanda would just use the
> -s parameter for specifying the subject.
> 

The above 'ln -s' command indicates you have the ability and
willingness to replace whatever is in /usr/bin/mail.

In that case, replace it with a shell script that will be a
/usr/bin/nail "wrapper".  I.e. one that takes amanda's arguments
intended for "mail" and and adjusts them to be appropriate for "nail".

-- 
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)

<Prev in Thread] Current Thread [Next in Thread>