Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161650 - sys-apps/logwatch-7.3-r1 calling mailer with no arguments
Summary: sys-apps/logwatch-7.3-r1 calling mailer with no arguments
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-11 22:30 UTC by Alex Brett
Modified: 2009-12-04 11:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
STDOUT from running logwatch --debug=high (logwatch.out,272.04 KB, text/plain)
2007-01-11 22:32 UTC, Alex Brett
Details
STDERR from running logwatch --debug=high (logwatch.err,1.32 KB, text/plain)
2007-01-11 22:33 UTC, Alex Brett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Brett 2007-01-11 22:30:45 UTC
I recently updated 3 servers to logwatch-7.3-r1 when it was marked stable, at which point I stopped receiving logwatches, and started receiving e-mails with the subject "Cron <root@hostname> test -x /usr/sbin/run-crons && /usr/sbin/run-crons", and the text "No mail for root".

I tracked this down to logwatch simply calling the /bin/mail program with no arguments, i.e. not giving it a destination address etc. I tested on one box rolling back to logwatch-7.1 and the problem disappeared. I've included an output from manually running /usr/sbin/logwatch --debug=high below, I couldn't figure out from that what was going wrong...

Reproducible: Always

Steps to Reproduce:
1. Update (with emerge -u) to logwatch-7.3-r1 from logwtach-7.1
2. Run /usr/sbin/logwatch

Actual Results:  
Received the message "No mail for root" on STDERR

Expected Results:  
An e-mail to be sent to the address specified in /etc/logwatch/conf/logwatch.conf containing a report on the days log
Comment 1 Alex Brett 2007-01-11 22:32:44 UTC
Created attachment 106600 [details]
STDOUT from running logwatch --debug=high

E-mail address removed to protect the innocent
Comment 2 Alex Brett 2007-01-11 22:33:02 UTC
Created attachment 106602 [details]
STDERR from running logwatch --debug=high
Comment 3 Remy Blank 2007-01-12 08:42:43 UTC
Exact same problem here on two machines, same version of logwatch.
Comment 4 Remy Blank 2007-01-12 09:26:33 UTC
The solution here was to replace the line:

mailer = /bin/mail

in /etc/logwatch/conf/logwatch.conf with the following:

mailer = /usr/sbin/sendmail -t

Comment 5 Alex Brett 2007-01-12 11:19:42 UTC
(In reply to comment #4)
> The solution here was to replace the line:
> 
> mailer = /bin/mail
> 
> in /etc/logwatch/conf/logwatch.conf with the following:
> 
> mailer = /usr/sbin/sendmail -t
> 

This has fixed it for me as well, I guess it might be worth someone putting something in the ebuild to mention this as part of the emerge process so that other people can find out?
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2009-12-04 11:27:44 UTC
this is now 3 years ago ... i guess we don't need to put a message in it anymore ...