PDA

View Full Version : Logwatch emails not being sent



wjstarck
5th June 2006, 02:30 PM
Logwatch emails are apparently not being sent (Core 5) - where do I look to see where the problem might be? I have the latest Webmin installed.

Thx

Will

pparks1
5th June 2006, 02:37 PM
I would look in /var/log/maillog and see if there is any indication of a problem in the sendmail logs.

Second, look at /etc/aliases and see which email address is being used for root email. (it should be right at the bottom)

Finally, check /var/log/cron and make sure that the cron job for logwatch is running. I believe it is /etc/cron.daily

wjstarck
5th June 2006, 03:39 PM
I would look in /var/log/maillog and see if there is any indication of a problem in the sendmail logs.

Second, look at /etc/aliases and see which email address is being used for root email. (it should be right at the bottom)

Finally, check /var/log/cron and make sure that the cron job for logwatch is running. I believe it is /etc/cron.daily

/var/log/mailog seems to indicate that the mail is being sent daily

however, /var/log/cron seems to indicate the daily cron jobs aren't firing (I don't see any entries for /etc/cron/daily)?

Here is /etc/aliases

#Basic system aliases -- these MUST be present.
mailer-daemon: postmaster
postmaster: root

Thx

u-noneinc-s
5th June 2006, 08:43 PM
This stuff was ALL default on my box. I created none of it. I don't understand why you don't have any daily cron jobs


mark@spongie 19 /etc/cron.daily =>l
total 124
-rwxr-xr-x 1 root root 133 Feb 12 10:55 00webalizer
-rwxr-x--- 1 root root 1687 Mar 18 19:50 01-rkhunter
-rwxr-xr-x 1 root root 276 Apr 13 18:14 0anacron
lrwxrwxrwx 1 root root 39 Apr 4 14:55 0logwatch -> /usr/share/logwatch/script
s/logwatch.pl
-rwxr-xr-x 1 root root 1042 Feb 10 22:39 certwatch
-rwxr-xr-x 1 root root 118 May 23 02:26 cups
-rwxr-xr-x 1 root root 180 Feb 11 17:02 logrotate
-rwxr-xr-x 1 root root 418 Mar 24 00:55 makewhatis.cron
-rwxr-xr-x 1 root root 137 Mar 17 19:37 mlocate.cron
-rwxr-xr-x 1 root root 2133 Nov 23 2004 prelink
-rwxr-xr-x 1 root root 114 Feb 12 01:16 rpm
-rwxr-xr-x 1 root root 102 Nov 16 2004 sarg
-rwxr-xr-x 1 root root 271 Apr 11 13:56 squirrelmail.cron
-rwxr-xr-x 1 root root 100 Apr 27 06:31 tetex.cron
-rwxr-xr-x 1 root root 290 Feb 12 10:06 tmpwatch
-rwxr-xr-x 1 root root 158 Apr 26 12:29 yum.cron

Actually I just re-read your post. my cron log doesn't show anything either. I have not looked into it since I know the jobs are running.

wjstarck
7th June 2006, 03:26 AM
Upon further inspection, I find the mails to root from Logwatch in /var/mail/

In the past, I would receive these in my postmaster account on CommuniGate Pro.

Anywhere else to check to see why they're no longer getting there?

u-noneinc-s
7th June 2006, 03:41 AM
It looks like in /usr/share/logwatch/default.conf/logwatch.conf is the one you want. Change MailTo = root to whatever you want.

wjstarck
8th June 2006, 10:02 PM
All fixed now.

After some digging, I determined that CGP likes it's own sendmail to submit root's mail to it, not the system sendmail (at least on Fedora 5)

So, I renamed /usr/sbin/sendmail and then did a ln -s /usr/sbin/sendmail /opt/CommuniGate/sendmail

and all is well.

Thanks to all who responded...