Robin Bowes said the following on 02/24/2006 10:42 AM: > Ask Bjørn Hansen said the following on 02/24/2006 08:39 AM: >>Thanks for working on this by the way. I lost track of what your goal >>was, but having more and better way to analyze how much junk the smtpd >>rejects (and how and why) will be useful. > > > My goal is (was?) relatively simple: to produce two log files in > addition to the "normal" log: > > accepted - listing details of all accepted msgs > rejected - listing details of all rejected msgs/connection attempts
I had previously modified the adaptive logging plugin to write the accepted and rejected log, and used a multilog filter to separate the accepted/rejected/detailed log entries. I'm now wondering whether it would be better to add separate logging processes that are called from the new hooks John is adding ( :) ) For example, accepted_log would hook queue_post and write msg details to a log file specified on the config line in config/plugins. This could be a pipe to multilog to get the benefit of log rotation. Similarly, rejected_log would hook deny_post (or even deny?) and write details of the rejection to a log file specified on the config line in config/plugins. This could also be a pipe to multilog to get the benefit of log rotation. Any thoughts on this before I start coding? R.
