On 11/15/2022 2:25 AM, Fourhundred Thecat wrote:
I have this option in master.cf for smtpd:
-o cleanup_service_name=anonymize-sender-ip
and here it is defined:
anonymize-sender-ip unix n - n - 0
cleanup
-o header_checks=regexp:/var/local/postfix/maps/anonymize-sender-ip
and in anonymize-sender-ip, I just replace my actual IP address with
127.0.0.1
Everything works fine, but every time I send email, postfix/cleanup logs
the replace operation in my log:
postfix/cleanup: D62108F: replace: header Received: from ....
I don't need this in my logs. Can I somehow disable log only for my
custom defined service "anonymize-sender-ip" ?
No log silencing feature has [yet] been implemented TTBOMK. There is of
course the -v feature of grep(1):
grep -v <regexp> /path/to/logfile | less
so you can only see what you want to see.
A couple other suggestions:
* -o syslog_name for this cleanup service can greatly ease and improve
the grep (the syslog_name specified could be the expression)
* Even on a filesystem as small as that, you should consider
enable_long_queue_ids:
https://www.postfix.org/postconf.5.html#enable_long_queue_ids
--
http://rob0.nodns4.us/