On Friday 05 July 2013 07:11:47 Jean-Louis Martineau did opine:

> amanda use the Mail command to send email.
> You must fix your system so that Mail works.
> 
> Jean-Louis

I've done quite a bit of fooling around, ripping out the bsd-mail stuff and 
installing the GNU mailutils and sendmail.

I have successfully su'd to amanda and sent gene an email.  But despite the 
mailto: "[email protected]" line at the top of my working amanda.conf,
the mail itself from amanda is sent to amanda.

>From the /var/log/mail.log, using "grep sendmail mail.log|grep amanda":
Jul  3 16:20:37 coyote sendmail[18397]: r63KKbV2018397: from=amanda, 
size=184, class=0, nrcpts=1, 
msgid=<[email protected]>, 
relay=amanda@localhost
Jul  3 16:20:37 coyote sendmail[18397]: r63KKbV2018397: 
to=<[email protected]>, ctladdr=amanda (1001/1002), delay=00:00:00, 
xdelay=00:00:00, mailer=relay, pri=30184, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (r63KKbmW018398 Message accepted for delivery)

===== my test mail that worked above =====

Jul  4 02:02:46 coyote sendmail[16012]: r645K1Np016012: from=amanda, 
size=711, class=0, nrcpts=1, 
msgid=<[email protected]>, 
relay=amanda@localhost
Jul  4 02:02:46 coyote sendmail[16012]: r645K1Np016012: to=amanda, 
ctladdr=amanda (1001/1002), delay=00:42:45, xdelay=00:00:00, mailer=relay, 
pri=30711, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent 
(r6462kMf019315 Message accepted for delivery)

Jul  5 02:08:34 coyote sendmail[3977]: r655K16f003977: from=amanda, 
size=711, class=0, nrcpts=1, 
msgid=<[email protected]>, 
relay=amanda@localhost
Jul  5 02:08:34 coyote sendmail[3977]: r655K16f003977: to=amanda, 
ctladdr=amanda (1001/1002), delay=00:48:33, xdelay=00:00:00, mailer=relay, 
pri=30711, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent 
(r6568YNX007277 Message accepted for delivery)

And at the time it writes to /var/spool/mail/amanda, it helpfully resets 
the perms to 0600, and kmail, running as me, cannot touch it.

So, where is that mailto: line in amanda.conf getting lost?

My wrapper scripts do not touch this AFAIK.

And I just did su - amanda, and sent me another email, getting this in the 
mail.log:

Jul  5 07:34:35 coyote sendmail[23789]: r65BYZEm023789: from=amanda, 
size=172, class=0, nrcpts=1, 
msgid=<[email protected]>, 
relay=amanda@localhost
Jul  5 07:34:35 coyote sendmail[23789]: r65BYZEm023789: 
to=<[email protected]>, ctladdr=amanda (1001/1002), delay=00:00:00, 
xdelay=00:00:00, mailer=relay, pri=30172, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (r65BYZPf023792 Message accepted for delivery)

So it works, amd kmail got the msg.  Why amanda itself cannot follow orders 
here?  Is there something wrong with my "mailto:";?  I see in the 
example/amanda.conf, the FQDN isn't used, so I'll remove that for S&G.  I 
just tested it by hand as amanda, and it worked, but it did add the missing 
FQDN in the sendmail log.

I'm snookered here.  Out of ideas IOW.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
A woman, especially if she have the misfortune of knowing anything,
should conceal it as well as she can.
                -- Jane Austen
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

Reply via email to