Logwatch report on another machine?

Craig White craigwhite at azapple.com
Wed Jun 4 02:05:57 UTC 2008


On Wed, 2008-06-04 at 02:54 +0100, Timothy Murphy wrote:
> Dave Burns wrote:
> 
> >> How can I get the logwatch report on one machine (helen.gayleard.com)
> >> sent to another machine (alfred.gayleard.com) on the same LAN?
> >>
> >> I tried editing /etc/aliases on the first machine,
> >> changing the last line to
> >>        root:           tim at alfred.gayleard.com
> >> (and running newaliases) but this did not do the trick.
> > 
> > That should be good enough, *if* sendmail is working on that machine
> > and that address doesn't bounce. If you do
> > 
> > echo 'testing the client'|mutt -s 'testing client' 
> > tim at alfred.gayleard.com
> > 
> > do you ever get the email?
> 
> First of all, thanks for your response.
> I tried the above command, but the mail did not get through.
> 
> Looking at /var/log/maillog on helen I see the lines
> -------------------------------
> Jun  4 02:27:56 helen sendmail[10504]: m541RtCq010504:
> to=tim at alfred.gayleard.com, ctladdr=tim (500/500), delay=00:00:01,
> xdelay=00:00:01, mailer=relay, pri=30326, relay=[127.0.0.1] [127.0.0.1],
> dsn=2.0.0, stat=Sent (m541Rtds010505 Message accepted for delivery)
> Jun  4 02:27:56 helen sendmail[10507]: m541Rtds010505:
> to=<tim at alfred.gayleard.com>, ctladdr=<tim at helen.gayleard.com> (500/500),
> delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=120482,
> relay=smtp.eircom.net [159.134.198.135], dsn=5.6.0, stat=Dataformat error
> Jun  4 02:27:56 helen sendmail[10507]: m541Rtds010505: m541Ruds010507: DSN:
> Data format error
> -------------------------------
> 
> I suspect this means the email was sent to my ISP, eircom.net ,
> who rejected the email on the grounds the address was unknown or wrong.
> 
> > I am also assuming you haven't tweaked the default config of logwatch.
> > 
> > Speaking of which, you could try changing the "mailto" field in
> > /etc/logwatch/conf/logwatch.conf.
> 
> This file was empty (except for a comment line) on my Fedora-9 system.
> But I've added
> -------------------------------
> MailTo = tim at alfred.gayleard.com
> MailFrom = Logwatch
> -------------------------------
> and will see if this does the trick.
----
it won't 

# host alfred.gayleard.com
Host alfred.gayleard.com not found: 3(NXDOMAIN)

# host helen.gayleard.com
Host helen.gayleard.com not found: 3(NXDOMAIN)

# host gayleard.com
gayleard.com has address 86.43.71.228
gayleard.com mail is handled by 10 mail.gayleard.com.

no known host names for alfred.gayleard.com or helen.gayleard.com but
there is a gayleard.com and a mail.gayleard.com - those are usable...

Craig




More information about the fedora-list mailing list