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

Re: mail log question



On 2025-09-09 22:20:01 -0400, Greg Wooledge wrote:
> Or, if you don't care about those files and just want to read the systemd
> log files, you can use journalctl(1).  Specifically, a command like
> 
>     journalctl -u postfix
> 
> where "postfix" is the systemd service name in question, will show you
> the logs for that service.

No, this is incorrect, at least on bookworm (it gives just a few logs):

Sep 08 01:50:46 joooj systemd[1]: Starting postfix.service - Postfix Mail Transport Agent...
Sep 08 01:50:46 joooj systemd[1]: Finished postfix.service - Postfix Mail Transport Agent.

Using a pattern

  journalctl -u postfix\*

gives any log related to postfix, but this is terribly slow
(more than 3 minutes on my server!) and limited to postfix
(nothing about spamassassin, for instance).

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)


Reply to: