[Mailmunge] Logging
postfix at ptld.com
postfix at ptld.com
Thu Aug 12 19:55:36 EDT 2021
Is there anyway to limit/control what gets logged? I would like it to
only send to the log facility the Filter time (if LOG_FILTER_TIME=yes),
errors, and anything manually logged with Mailmunge::Filter->log()
Or 2nd best choice, is there a way to disable logging created from
filter_recipient() and only have logging from filter_message()? Logs
from filter_recipient() don't have a queue ID yet and the PID isn't
linked to the postfix process so it confuses my log scanning.
I feel some of the logging is redundant since postfix logs the same
action from the milter like...
mailmunge-filter[143439]: REJECT: rejected recipient
<user at example.com>
postfix/smtpd[144380]: NOQUEUE: milter-reject: RCPT from
example.com[193.239.164.66]: 550 5.7.1 Reject Reason;
from=<user at example.com> to=<user at example.com> proto=ESMTP
helo=<example.com>
And this one...
mailmunge[129343]: 4Glg9D3cs3z4l3gK: Bouncing because filter
instructed us to
mailmunge[129343]: 4Glg9D3cs3z4l3gK: Filter time is 6ms
postfix/cleanup[132798]: 4Glg9D3cs3z4l3gK: milter-reject:
END-OF-MESSAGE from unknown[45.43.61.194]: 5.7.25 Client hostname not
found for [45.43.61.194];
Postfix already logs "milter-reject" so "Bouncing because filter
instructed us to" i feel is redundant.
More information about the Mailmunge
mailing list