rsyslogd | Tag | ohneKontur - der Blog https://www.ohnekontur.de ohne Linien und Kanten und trotzdem gefangen Mon, 19 Feb 2024 17:49:10 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.5 Streamlining Postfix Logs: Only log to mail.log not to syslog https://www.ohnekontur.de/2009/11/28/streamlining-postfix-logs-only-log-to-mail-log-not-to-syslog/ https://www.ohnekontur.de/2009/11/28/streamlining-postfix-logs-only-log-to-mail-log-not-to-syslog/#respond Sat, 28 Nov 2009 17:45:00 +0000 https://www.ohnekontur.de/?p=3290 Have you ever wondered why your Postfix logs clutter both mail.log and syslog, making it harder to track and manage? Well, you’re not alone. In this quick guide, I’ll show you how to tidy things up and keep your postfix … Continue reading

The post Streamlining Postfix Logs: Only log to mail.log not to syslog first appeared on ohneKontur - der Blog.]]>
Have you ever wondered why your Postfix logs clutter both mail.log and syslog, making it harder to track and manage? Well, you’re not alone. In this quick guide, I’ll show you how to tidy things up and keep your postfix logs in mail.log only.

Unraveling the Mystery

First things first, let’s address the perplexing default setting in syslog (particularly under Debian’s rsyslogd) that makes Postfix entries flood both mail.log and syslog. It’s a head-scratcher, but fear not – we’re here to set things right.

To bring order to the chaos, follow these easy steps:

  1. Open either /etc/syslog.conf or /etc/rsyslog.conf, depending on your system configuration.
  2. Look for the following line:
   *.*;auth,authpriv.none -/var/log/syslog
  1. Modify it to:
   *.*;auth,authpriv.none;mail.none -/var/log/syslog
  1. Save the changes and, voila, you’re almost done!

Quick Restart

To ensure that your changes take effect promptly, restart syslog with a swift command.

sudo systemctl restart rsyslog

Enjoy the Simplicity

And there you have it – no more redundant Postfix logs cluttering up syslog. Now, your mail-related entries will neatly reside in mail.log, making it easier for you to monitor and troubleshoot without the unnecessary noise.

Streamlining your logs has never been this simple. Happy logging!

The post Streamlining Postfix Logs: Only log to mail.log not to syslog first appeared on ohneKontur - der Blog.]]>
https://www.ohnekontur.de/2009/11/28/streamlining-postfix-logs-only-log-to-mail-log-not-to-syslog/feed/ 0
Postfix log nur in mail.log nicht syslog https://www.ohnekontur.de/2009/11/27/postfix-log-nur-in-mail-log-nicht-syslog/ https://www.ohnekontur.de/2009/11/27/postfix-log-nur-in-mail-log-nicht-syslog/#comments Fri, 27 Nov 2009 14:29:44 +0000 http://www.ohnekontur.de/?p=625 This post is also available in English. Wo ich hier schon mal fetchmail aus dem syslog verbannt habe,ist jetzt postfix dran. Ich verstehe sowieso nicht warum syslog(unter meinem Debian  rsyslogd) so eingestellt ist,das postfixfoo sowohl in mail.log als auch in … Continue reading

The post Postfix log nur in mail.log nicht syslog first appeared on ohneKontur - der Blog.]]>
This post is also available in English.

Wo ich hier schon mal fetchmail aus dem syslog verbannt habe,
ist jetzt postfix dran.

Ich verstehe sowieso nicht warum syslog
(unter meinem Debian  rsyslogd) so eingestellt ist,
das postfixfoo sowohl in mail.log als auch in syslog geschrieben werden.

Also nichts wie das korrigieren:

Dazu einfach in /etc/syslog.conf bzw. /etc/rsyslog.conf folgende Zeile suchen:

*.*;auth,authpriv.none                        -/var/log/syslog

und ändern in

*.*;auth,authpriv.none;mail.none        -/var/log/syslog

voila noch schnell syslog neustarten und fertig :)

The post Postfix log nur in mail.log nicht syslog first appeared on ohneKontur - der Blog.]]>
https://www.ohnekontur.de/2009/11/27/postfix-log-nur-in-mail-log-nicht-syslog/feed/ 1