Reducing logging

I may have asked this before, but if so I can't find the thread.

I'd like to either reduce the amount that postfix logs or redirect certain events to a secondary log file (that I can put on a shorter rotation than the full mail log).

Is there anyway to redirect, for example, post screen events to a different log file or the warning hostname does not resolve messages?


Re: Reducing logging

By Patrick Ben Koetter at 03/12/2018 - 14:24

* LuKreme < ... at kreme dot com>:
You'll probably have to use a (more modern) syslog service, e.g. rsyslogd, to
split log by content into multiple files.


Re: Reducing logging

By Christian Schmidt at 03/13/2018 - 04:35

Patrick Ben Koetter, 12.03.2018:
In addition, you could add the option "-o syslog_name=postfix-587" (or
"25") to the corresponding entry in This will make postfix
"label" the logfile entries - and maybe enable your syslog service to
direct them into separate files.

Kind Regards,
Christian Schmidt

Re: Reducing logging

By LuKreme at 03/13/2018 - 11:30

On Mar 13, 2018, at 02:35, Christian Schmidt <Christian. ... at chemie dot> wrote:
Labeling isn't the issue, I can already grep out the things I don't want, it's just a lot do do whenever I want to get certain information out (just as one example, I want to check for errors and warnings, but I *never* care about the “does not resolve” warnings which will be 90% of the output looking for warnings and errors if I don't specifically grep that out...

In fact, I may simply run a task to strip some things out of the logfiles and put others into other files after the files roll over.

But I’ll take a look at rsyslogd first.

Re: Reducing logging

By Matus UHLAR - f... at 03/13/2018 - 05:18

On 13.03.18 09:35, Christian Schmidt wrote:
at least on debian, smtpd on submission port (587) has by default:
"-o syslog_name=postfix/submission"