Re: Logwatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 4/21/25 2:12 AM, jarmo wrote:
Stopped working after upgrade fm f41 to f42?? As
well postfix service didn't start after upgrade???
Had to enable postfix service first and start it..
Missing "Mail/Mailx" in f42???
These are my first impressions after upgrade. Where
to start look, how to get Logwatch working and repoting?

Jarmo

Sounds like the same thing that happened to me. Postfix issue is known and there is a bug report at:

https://bugzilla.redhat.com/show_bug.cgi?id=2360491

Logwatch works for me but it runs as a cron job out of /etc/cron.daily. Cron wants to use sendmail to send its output but if you're using postfix, there can be an issue. Part of Fedora 42 is to eliminate /usr/sbin in favor of /usr/bin. /usr/sbin is now full of symlinks. There should be one in there to use postfix instead of sendmail. I believe that got messed up.

Here is something I wrote the other day to this list:

-------------------------
Upgraded my home server/desktop machine yesterday and all seemed ok. When I checked this morning I discovered that output from overnight cron jobs had gone to the journal log rather than being emailed to me. Also logwatch had failed to run.

I quickly checked logwatch first by manually running the logwatch service and it complained that /usr/sbin/sendmail did not exist. In fact, sendmail was not even installed. The system uses postfix. Honestly, I don't recall if it was installed previously or not. I got new hardware last summer and did a fresh install of Fedora 39 then and upgraded to 40, 41 and now 42.

In the following -> indicates a symlink.

Checking my Fedora 41 backups, I see the following chain

/usr/sbin/sendmail -> /etc/alternatives/mta ->
/usr/sbin/sendmail.postfix (which is an executable file)

I do not know what package owns /usr/sbin/sendmail.postfix unless someone can tell me how to tell rpm to use a different rpm database than the default one.

Under Fedora 42/ there was no /usr/sbin/sendmail. However, there was a /usr/sbin/sendmail.postfix that was a symlink to
/usr/bin/sendmail.postfix.

I then installed sendmail. I tested logwatch again and it failed with the same error about a missing /usr/sbin/sendmail. I uninstalledd sendmail. This time logwatch worked because /usr/sbin/sendmail existed. The removal of sendmail left behind the following chain of symlinks:

/usr/sbin/sendmail -> /etc/alternatives/mta ->
/usr/sbin/sendmail.postfix -> /usr/bin/sendmail.postfix

Apparently, removing sendmail left behind /usr/sbin/sendmail pointing to (eventually) /usr/bin/sendmail.postfix. /usr/bin/sendmail.postfix is owned by the postfix package. /usr/sbin/sendmail.postfix is not owned by any package. Probably created by the install/remove script for sendmail.

After all this in order to get cron to email output I just had to restart the crond service so it could see that /usr/sbin/sendmail now existed.

--------------------

In summary, do the following:

sudo dnf install sendmail
sudo dnf remove sendmail
sudo systemctl restart crond

Hope this helps.

Charlie

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux