Streamlining Postfix Logs: Only log to mail.log not to syslog

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.

More ...

Optimizing Fetchmail: Creating a dedicated Log File to avoid Syslog overload.

Recently, I took a peek into the syslog, and to my surprise, it was brimming with messages from Fetchmail. It detailed the who, what, where, why, and how of every email being seen, loaded, and deleted. Intriguing, no doubt, but I wasn’t keen on cluttering up my syslog with this information.

Therefore, Fetchmail needed its own log, and here’s how I went about it: In /etc/fetchmailrc, I added the following lines to the beginning ot the file:

More ...

Postfix log nur in mail.log nicht syslog

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 :)

Archiv