[Logwatch] logwatch.conf

Tomislav Parčina tparcina at lama.hr
Mon Jul 10 00:04:06 MST 2006


In article <1152285657.3213.14.camel at dwarfstar.stellarcore.net>, mgt at stellarcore.net says...
> Strange.... Off the command line try
> 
> logwatch --mailto "tparcina at lama.hr"
> 
> And see if it goes through. The conf file you want
> is /etc/logwatch/conf/logwatch.conf
> 
> Also you might as upgrade to 7.3 you can get the RPM at
> http://www.logwatch.org it will be a simple rpm -Uvh there are a few
> fixes that are worth it.
> 
> Check your /var/log/maillog to see if the something is rejecting the
> mail and bouncing it to root.

Hi Mike!

I have tried the command - logwatch --mailto "tparcina at lama.hr" - and there was big output on my screen (lasted for more than 10 sec) and it finished with those lines (see down). Anyway, I didn't received anything on my e-mail and here is also the maillog file from which you can see that he didn't even tried to send e-mail.

>From maillog file you can also see that logwatch (as daily cron job - at 4:02) doesn't even try to send e-mail to me, instead it sends it to root. That's why I have asked about real location of logwatch.conf file. Can that location be checked true CLI? I have /etc/logwatch/conf/logwatch.conf and inside I have defined
MailTo = pbxadplastikzg2 at adplastik.hr
But that doesn't work - logwatch tries to send mail to root anyway (as you can se from maillog).

I'll try to upgrade to 7.3

At EOF
At EOF
At EOF
At EOF
Referencing before 1
At EOF
Unknown command: "Kernel"
Unknown command: "Destination"
10: Invalid message number
169: Invalid message number
0: Invalid message number
At EOF
At EOF
Referencing before 1
At EOF
At EOF
At EOF
Referencing before 1
At EOF
At EOF
Unknown command: "######################"
At EOF
At EOF
Saved 1 message in mbox
[root at pbxzg2 ~]#


Maillog
Jul  9 04:02:09 pbxzg2 sendmail[6592]: k69223Uf006592: from=root, size=996715, class=0, nrcpts=1, msgid=<200607090202.k69223Uf006592 at pbxzg2.adplastik.hr>, relay=root at localhost
Jul  9 04:02:09 pbxzg2 sendmail[6786]: k69229hI006786: from=<root at pbxzg2.adplastik.hr>, size=996984, class=0, nrcpts=1, msgid=<200607090202.k69223Uf006592 at pbxzg2.adplastik.hr>, proto=ESMTP, daemon=MTA, relay=pbxzg2 [127.0.0.1]
Jul  9 04:02:09 pbxzg2 sendmail[6592]: k69223Uf006592: to=root, ctladdr=root (0/0), delay=00:00:06, xdelay=00:00:00, mailer=relay, pri=1026715, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k69229hI006786 Message accepted for delivery)
Jul  9 04:02:09 pbxzg2 sendmail[6787]: k69229hI006786: to=<root at pbxzg2.adplastik.hr>, ctladdr=<root at pbxzg2.adplastik.hr> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=1027193, dsn=2.0.0, stat=Sent
Jul 10 04:02:08 pbxzg2 sendmail[2725]: k6A223Pe002725: from=root, size=1000467, class=0, nrcpts=1, msgid=<200607100202.k6A223Pe002725 at pbxzg2.adplastik.hr>, relay=root at localhost
Jul 10 04:02:08 pbxzg2 sendmail[2882]: k6A228W9002882: from=<root at pbxzg2.adplastik.hr>, size=1000738, class=0, nrcpts=1, msgid=<200607100202.k6A223Pe002725 at pbxzg2.adplastik.hr>, proto=ESMTP, daemon=MTA, relay=pbxzg2 [127.0.0.1]
Jul 10 04:02:08 pbxzg2 sendmail[2725]: k6A223Pe002725: to=root, ctladdr=root (0/0), delay=00:00:05, xdelay=00:00:00, mailer=relay, pri=1030467, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k6A228W9002882 Message accepted for delivery)
Jul 10 04:02:08 pbxzg2 sendmail[2883]: k6A228W9002882: to=<root at pbxzg2.adplastik.hr>, ctladdr=<root at pbxzg2.adplastik.hr> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=1030948, dsn=2.0.0, stat=Sent




More information about the Logwatch mailing list