new-site/infra/ansible
justin 2e4388a803 mail: add logrotate for Postfix mail.log (postlogd copytruncate)
mail.log had no logrotate rule and grew unbounded to ~1GB (~150MB/day)
since Jun 8. This host logs via Postfix's built-in postlogd (maillog_file
mode), not rsyslog (no rsyslog.service exists), so postlogd holds the file
open -- a plain rename+create would leave it writing to the stale inode.
Use copytruncate (no daemon signal needed). Rotate daily, keep 14 days
compressed. Applied live: forced first rotation, compressed the 1GB
archive (->99MB), verified logging + bounce watchers + DKIM signing intact.

Part of the email-deliverability incident hardening (follows DKIM fix 4d59019).
2026-06-17 19:47:13 -05:00
..
inventory Configure trucking deficiency campaign cron env 2026-06-03 23:04:41 -05:00
playbooks mail: fix OpenDKIM not signing campaign mail (Docker-injected) + codify in Ansible 2026-06-17 19:31:19 -05:00
roles mail: add logrotate for Postfix mail.log (postlogd copytruncate) 2026-06-17 19:47:13 -05:00
ansible.cfg Add Prometheus + Grafana + Alertmanager monitoring stack 2026-05-01 02:08:39 -05:00