After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
My OS is debian 12 without GUI.
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
Bitfox wrote:
My OS is debian 12 without GUI.
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
by default, it's in /var/log.
My OS is debian 12 without GUI.
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
Thanks.
On Thu, Nov 28, 2024 at 19:13:12 -0500, Dan Ritter wrote:
Bitfox wrote:
My OS is debian 12 without GUI.
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
by default, it's in /var/log.
No. As of bookworm, rsyslog is no longer installed by default, and
there are no human-readable log files by default.
https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#changes-to-system-logging
On Thu, Nov 28, 2024 at 19:13:12 -0500, Dan Ritter wrote:
Bitfox wrote:
My OS is debian 12 without GUI.
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
by default, it's in /var/log.
No. As of bookworm, rsyslog is no longer installed by default, and
there are no human-readable log files by default.
https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#changes-to-system-logging
On Fri, Nov 29, 2024 at 08:07:20 +0800, Bitfox wrote:
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
Install the rsyslog package also. This will give you traditional, human-readable log files in /var/log/.
Without that package, all of your logs live in systemd's journal.
You should be able to find them there, with some effort, but many
people (including me) prefer to have text files in /var/log/.
On Thursday 28 November 2024 07:15:48 pm Greg Wooledge wrote:
Install the rsyslog package also. This will give you traditional, human-readable log files in /var/log/.
Without that package, all of your logs live in systemd's journal.
You should be able to find them there, with some effort, but many
people (including me) prefer to have text files in /var/log/.
What's gained by them having changed this? (I wonder that about a lot of stuff.)
What's gained by them having changed this? (I wonder that about a lot of stuff.)
Sent: Friday, November 29, 2024 at 3:13 PM
From: "Roy J. Tellason, Sr." <[email protected]>
To: [email protected]
Subject: Re: where is mail.log
On Thursday 28 November 2024 07:15:48 pm Greg Wooledge wrote:
On Fri, Nov 29, 2024 at 08:07:20 +0800, Bitfox wrote:
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
Install the rsyslog package also. This will give you traditional, human-readable log files in /var/log/.
Without that package, all of your logs live in systemd's journal.
You should be able to find them there, with some effort, but many
people (including me) prefer to have text files in /var/log/.
What's gained by them having changed this? (I wonder that about a lot of stuff.)
On Fri, Nov 29, 2024 at 15:13:24 -0500, Roy J. Tellason, Sr. wrote:
On Thursday 28 November 2024 07:15:48 pm Greg Wooledge wrote:
Install the rsyslog package also. This will give you traditional,
human-readable log files in /var/log/.
Without that package, all of your logs live in systemd's journal.
You should be able to find them there, with some effort, but many
people (including me) prefer to have text files in /var/log/.
What's gained by them having changed this? (I wonder that about a lot of stuff.)
My understanding is that the systemd journal Is Not Going Away And Tough
Nuts To You If You Don't Like It. With that in mind, the human-readable
log files were considered redundant, and removing rsyslog from the
default package set reduces "wasted" disk space storing two copies of
the same logs.
Now, you might ask why the systemd journal is being preferred and kept
over human-readable log files. I don't think anyone on debian-user
knows the answer to this.
So, I would advise not bothering to ask here.
Because systemd is the init system on most all distributions.
Get used to it.
Debian will need to massively need to change their ways, as the init scripts are not supported by systemd anymore.
On 2024-11-29 10:08, Greg Wooledge wrote:
On Thu, Nov 28, 2024 at 19:13:12 -0500, Dan Ritter wrote:
Bitfox wrote:
My OS is debian 12 without GUI.
After I installed postifx by apt, I can't find the path to mail.log.
the log file in /var/log doesn't exist.
do you know where is my mail.log now?
by default, it's in /var/log.
No. As of bookworm, rsyslog is no longer installed by default, and
there are no human-readable log files by default.
https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#changes-to-system-logging
Update:
following Greg's help, I run 'apt install rsyslog' and 'service postfix restart', now mail.log has been working.
2024-11-29T18:27:50.514443+08:00 mgw postfix/postfix-script[61549]:
starting the Postfix mail system
2024-11-29T18:27:50.522266+08:00 mgw postfix/master[61551]: daemon
started -- version 3.7.11, configuration /etc/postfix
Thanks a lot.
You did not comprehend what I posted. I am on the systemd mail list.
They have dropped all sysV support.
Sent: Saturday, November 30, 2024 at 1:37 AM
From: [email protected]
To: [email protected]
Subject: Re: where is mail.log
On Fri, Nov 29, 2024 at 10:36:50PM +0100, [email protected] wrote:
[...]
Because systemd is the init system on most all distributions.
It's the default, though, which is fine. That said, you can still
use SysV instead. Some assembly needed.
Get used to it.
Or apply some assembly.
Debian will need to massively need to change their ways, as the init scripts are not supported by systemd anymore.
But still by SysV...
Sent: Saturday, November 30, 2024 at 7:33 AM
From: "Bitfox" <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Re: where is mail.log
On 2024-11-30 20:31, [email protected] wrote:
You did not comprehend what I posted. I am on the systemd mail list.
They have dropped all sysV support.
May I ask what's the main difference between systemd and sysv for init system?
On 2024-11-30 20:31, [email protected] wrote:
You did not comprehend what I posted. I am on the systemd mail list.
They have dropped all sysV support.
May I ask what's the main difference between systemd and sysv for init system?
Now, you might ask why the systemd journal is being preferred and kept
over human-readable log files. I don't think anyone on debian-user
knows the answer to this.
May I ask what's the main difference between systemd and sysv for init system?
Sent: Saturday, November 30, 2024 at 7:33 AM
From: "Bitfox" <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Re: where is mail.log
On 2024-11-30 20:31, [email protected] wrote:
You did not comprehend what I posted. I am on the systemd mail list.
They have dropped all sysV support.
May I ask what's the main difference between systemd and sysv for init
system?
It is the same as day and nite
You did not comprehend what I posted.
I am on the systemd mail list.
They have dropped all sysV support.
The only way you'll have init script support is if you rip out systemd.
Since debian is using systemd for their init system debian will have
to come into the here and now.
LOL No, just No
systemd-sysv 252.31-1~deb12u1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Gone not longer supported
debian will need to see the lite or change to sysV init
From: "Andy Smith" <[email protected]>
Yes, that is what is being said: it is still possible to run Debian
without systemd. People are doing it. There are package maintainers that wish to let people do it. Surprise! It's a funny old world.
Well I didn't say you couldn't
Since debian is using systemd for their init system debian will have
to come into the here and now.
And debian is light years away from properly using systemd.
systemd-sysv 252.31-1~deb12u1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Gone not longer supported
debian will need to see the lite or change to sysV init
Sent: Saturday, November 30, 2024 at 11:54 AM
From: "Andy Smith" <[email protected]>
To: [email protected]
Subject: Re: where is mail.log
Hi,
On Sat, Nov 30, 2024 at 01:31:12PM +0100, [email protected] wrote:
You did not comprehend what I posted.
I think it is you who are having problems reading.
I am on the systemd mail list.
They have dropped all sysV support.
The only way you'll have init script support is if you rip out systemd.
Yes, that is what is being said: it is still possible to run Debian
without systemd. People are doing it. There are package maintainers that
wish to let people do it. Surprise! It's a funny old world.
Since debian is using systemd for their init system debian will have
to come into the here and now.
Have you been living under a rock for ten years? The only reason why
systemd is able to drop their svsv init script support is *because*
Debian has been ready to also do so for a long time! Nothing operates in
a vacuum. There are multiple Debian developers who are also systemd developers. They have been working on the goal to make everything in
Debian have a native systemd service unit for a *long* time and we've
been at that stage for some time already. There is no "coming into the
here and now". We are here already because of work done in part by
Debian.
However it is also separately true that many packages still have a sysv
init script that their maintainers support for the purposes of having it
work without systemd. Though I have no interest in doing that personally.
What you seem to not understand is that it has been Debian policy for
*years* for packages to have systemd unit files, but it has not been
policy for packages to get rid of any existing or contributed sysv init scripts. That is optional.
There's plenty of users who do need to "get into the here and now" (as evidenced by this thread), but Debian itself has been there for a full release cycle at least.
And that "SysV backward compatibility" has been eliminated from systemd
I have the impression you don't even know what systemd-sysv
is for.
Yes I do know what systemd-sysv is for (I run my own custom distribution).
Sent: Saturday, November 30, 2024 at 12:58 PM
From: [email protected]
To: "Scott Andrews" <[email protected]>
Cc: "Andy Smith" <[email protected]>, [email protected]
Subject: Re: where is mail.log
On Sat, Nov 30, 2024 at 06:31:56PM +0100, Scott Andrews wrote:
systemd-sysv 252.31-1~deb12u1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Gone not longer supported
Why all of Debian? As a SysV init user, I, of course, don't
have (nor had, ever) that package. That one is for systemd
users wishing some SysV backward compatibility.
I have the impression you don't even know what systemd-sysv
is for.
From: [email protected]
Why all of Debian? As a SysV init user, I, of course, don't
have (nor had, ever) that package. That one is for systemd
users wishing some SysV backward compatibility.
And that "SysV backward compatibility" has been eliminated from systemd
Yes I do know what systemd-sysv is for (I run my own custom distribution).
* Support for System V service scripts is deprecated and will be
removed in v258. Please make sure to update your software
*now* to include a native systemd unit file instead of a legacy
System V script to retain compatibility with future systemd releases.
Yes I do know what systemd-sysv is for (I run my own custom distribution).
* Support for System V service scripts is deprecated and will be
removed in v258. Please make sure to update your software
*now* to include a native systemd unit file instead of a legacy
System V script to retain compatibility with future systemd releases.
The version of systemd in trixie (and also in sid) is 257 according
to packages.debian.org.
I don't know whether that's the version trixie is going to use upon release, but if it is, then your v258 cutoff won't be relevant until
the *next* release after trixie.
It is the future.
Sent: Saturday, November 30, 2024 at 1:33 PM
From: "Greg Wooledge" <[email protected]>
To: [email protected]
Subject: Re: where is mail.log
On Sat, Nov 30, 2024 at 19:16:16 +0100, [email protected] wrote:
Yes I do know what systemd-sysv is for (I run my own custom distribution).
* Support for System V service scripts is deprecated and will be
removed in v258. Please make sure to update your software
*now* to include a native systemd unit file instead of a legacy
System V script to retain compatibility with future systemd releases.
The version of systemd in trixie (and also in sid) is 257 according
to packages.debian.org.
I don't know whether that's the version trixie is going to use upon
release, but if it is, then your v258 cutoff won't be relevant until
the *next* release after trixie.
Hello,
On Sat, Nov 30, 2024 at 07:51:40PM +0100, Scott Andrews wrote:
The version of systemd in trixie (and also in sid) is 257 according
to packages.debian.org.
I don't know whether that's the version trixie is going to use upon release, but if it is, then your v258 cutoff won't be relevant until
the *next* release after trixie.
It is the future.
But is it Web Scale?
https://www.youtube.com/watch?v=b2F-DItXtZs
Greg Wooledge (12024-11-29):
Now, you might ask why the systemd journal is being preferred and kept
over human-readable log files. I don't think anyone on debian-user
knows the answer to this.
The answer is certainly the same as for the rest of systemd: the old
system had terrible flaws and needed to be replaced, and while the Libre Software developers were busy arguing each for their pet project that
fixes about half the flaws while ignoring the other half or even
pretending they are features, the industrial bulldozer of Red Hat
arrived with systemd, that not so much fixed all the flaws as made them irrelevant by the virtue of replacing the board of snakes and ladders
with a board of hungry hungry hippos with its own different set of
flaws, but at least that more or less worked out of the box.
Regards,
postfix has its own logging mechanism:
You did not comprehend what I posted. I am on the systemd mail list.
They have dropped all sysV support.
We do not want a different logging system for each daemon.
<https://0pointer.de/blog/projects/systemctl-journal.html>
systemd for Administrators, Part XIII
Posted on Fr 18 Mai 2012
Log and Service Status
The original reason we started to work on the journal was one specific feature idea, that to the outsider might appear simple but without the journal is difficult and inefficient to implement: along with the output
of systemctl status we wanted to show the last 10 log messages of the daemon.
I could not recall where I saw a more verbose description of design ideas. Perhaps faster selection of records within a given time range.
Journald&journalctl have their shortcomings, but often they are more convenient during debugging: more precise timestamps, filtering by all processes from a service cgroup.
On 30/11/2024 03:29, Greg Wooledge wrote:
Now, you might ask why the systemd journal is being preferred and kept
over human-readable log files. I don't think anyone on debian-user
knows the answer to this.
What I don't know, and don't think anyone on this list knows, is why
*Debian* chose to toss the human-readable separate text log files away
in favor of the systemd monolithic binary journal.
Unfortunately rather common practice though even before systemd-journald
of course: Exim, Apache HTTPD Server, HAProxy, … (some of these CAN be configured to log to syslog, it's just not their default state)
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 12:07:28 |
| Calls: | 12,100 |
| Files: | 15,003 |
| Messages: | 6,517,999 |