Hello,
I have a couple of CentOS 5 servers, and third running in a FC6 domU. I've configured postfix on those servers to not deliver any email to the local system, but to instead relay mail to an internal mail server. I also set up /etc/aliases to send all mail to root to me, ksandhu.
I can send mail on the command line, and I get it at my email address, delivered to the internal mail server: great! But, every night when logwatch runs, the damned reports never make it to my mailbox. What's worse is that I can manually run logwatch (logwatch --mailto root), and I get the report in my mailbox! All CentOS 5 servers are exhibiting the same behaviour.
I've setup postfix like I always have. CentOS 4 servers with the same config are sending their logwatch reports properly.
I've tried explicitly setting the path to sendmail in /etc/logwatch/conf/logwatch.conf:
mailer = "/usr/sbin/sendmail -t"
but, it hasn't helped.
Does anyone have any ideas? I must be missing something obvious.
Regards,
Ranbir
On Mon, 2007-06-25 at 12:22 -0400, Kanwar Ranbir Sandhu wrote:
I can send mail on the command line, and I get it at my email address, delivered to the internal mail server: great! But, every night when logwatch runs, the damned reports never make it to my mailbox. What's worse is that I can manually run logwatch (logwatch --mailto root), and I get the report in my mailbox! All CentOS 5 servers are exhibiting the same behaviour.
No ideas what's going on? This happening on every single CentOS 5 server I've installed (6 so far).
Regards,
Ranbir
Have you run system-switch-mail and selected postfix? Is postfix service running? Logwatch is sending mail ok to another mail server on my install of CentOS 5 with postfix. The only change I made was to add the line
MailTo = desired email address
to /etc/logwatch/conf/logwatch.conf.
Radu
On 6/26/07, Kanwar Ranbir Sandhu m3freak@thesandhufamily.ca wrote:
On Mon, 2007-06-25 at 12:22 -0400, Kanwar Ranbir Sandhu wrote:
I can send mail on the command line, and I get it at my email address, delivered to the internal mail server: great! But, every night when logwatch runs, the damned reports never make it to my mailbox. What's worse is that I can manually run logwatch (logwatch --mailto root), and I get the report in my mailbox! All CentOS 5 servers are exhibiting the same behaviour.
No ideas what's going on? This happening on every single CentOS 5 server I've installed (6 so far).
Regards,
Ranbir
-- Kanwar Ranbir Sandhu Linux 2.6.20-1.2944.fc6 i686 GNU/Linux 07:59:25 up 16 days, 22:46, 1 user, load average: 0.39, 0.31, 0.22
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, 26 Jun 2007, Kanwar Ranbir Sandhu wrote:
On Mon, 2007-06-25 at 12:22 -0400, Kanwar Ranbir Sandhu wrote:
I can send mail on the command line, and I get it at my email address, delivered to the internal mail server: great! But, every night when logwatch runs, the damned reports never make it to my mailbox. What's worse is that I can manually run logwatch (logwatch --mailto root), and I get the report in my mailbox! All CentOS 5 servers are exhibiting the same behaviour.
No ideas what's going on? This happening on every single CentOS 5 server I've installed (6 so far).
Do your mail logs say anything at all?
On Tue, 2007-06-26 at 08:00 -0400, Kanwar Ranbir Sandhu wrote:
No ideas what's going on? This happening on every single CentOS 5 server I've installed (6 so far).
Oh my gosh. Well, I figured out the problem: crontabs and vixie-cron weren't installed.
On all the CentOS 5 servers I'm having this problem on, I did a minimal installation. That is, I didn't select any package groups or anything else when I did the install. I guess crontab and vixie-cron aren't included in the minimal/basic installation.
That brings up a question: why weren't they included? Isn't cron a fairly basic service? I don't recall this happening with CentOS 4.
Has anyone else done a bare minimum install and had this problem?
Regards,
Ranbir