mirror of
https://github.com/oblien/openship.git
synced 2026-11-16 06:57:12 +00:00
* fix(mail): persist mail logs, fail2ban database and ignoreip across engine updates Mail engine updates recreate the container (docker rm -f + docker run), so anything not on a bind mount is lost: /var/log (mail.log, dovecot and fail2ban logs), fail2ban's SQLite database, and operator ignoreip customisations in /etc/fail2ban. - Bind-mount /var/log and /var/lib/fail2ban from the host mail state dir. Deliberately not /etc/fail2ban: a seed-once mount would hide later image changes (same trap as #392's master.cf). - Render operator ignoreip additions (OPENSHIP_MAIL_F2B_IGNOREIP, passed through engine.env) into a jail.d override on every boot, as baked jail.local value + operator value, so image defaults are never dropped. - Run cron under supervisord so logrotate's daily job actually fires for the now-persisted logs; logrotate is installed explicitly (only a Recommends of rsyslog) and build-gated. Fixes #1701 * Preserve existing mail state before replacement and repair supervised log rotation --------- Co-authored-by: Hydra <abdelhamedmo59@gmail.com> |
History
|
|
|---|---|---|
| .. | ||
| build-config | ||
| configure-fail2ban-db.py | ||
| db-bootstrap.sh | ||
| entrypoint.sh | ||
| logrotate-clamav-freshclam | ||
| postfix-chroot-etc.sh | ||
| postfix-filter-tls.sh | ||
| prepare-amavis-runtime.sh | ||
| prepare-dovecot-runtime.sh | ||
| prepare-mail-logs.sh | ||
| reconcile-db-port.py | ||
| reconcile-ssl.sh | ||
| rsyslog-rotate | ||
| sender_aliases.py | ||
| supervisord.conf | ||
| verify-dovecot-security.sh | ||