fix: Introduce uv for dependency locking and update deployment configurations.

This commit is contained in:
Omid Zamani
2026-01-02 20:02:01 +01:00
parent 928b41aae2
commit b28105bbfa
4 changed files with 1746 additions and 12 deletions

View File

@@ -457,6 +457,19 @@ class ChatmailVenvDeployer(Deployer):
def install(self):
_install_remote_venv_with_chatmaild()
# Ensure postfix can read certificates
server.shell(
name="Add postfix to ssl-cert group and fix acme permissions",
commands=[
"groupadd -f ssl-cert",
"usermod -a -G ssl-cert postfix",
"usermod -a -G ssl-cert dovecot",
"chown -R root:ssl-cert /var/lib/acme/live",
"chmod 750 /var/lib/acme/live",
"chmod 640 /var/lib/acme/live/*/privkey",
"chmod 644 /var/lib/acme/live/*/fullchain",
],
)
def configure(self):
_configure_remote_venv_with_chatmaild(self.config)

View File

@@ -10,6 +10,8 @@
# (yes) (yes) (no) (never) (100)
# ==========================================================================
{% if debug == true %}
smtp inet n - n - - smtpd -v
{%- else %}
smtp inet n - n - - smtpd
{%- endif %}
-o smtpd_tls_security_level=encrypt
@@ -78,7 +80,7 @@ filter unix - n n - - lmtp
127.0.0.1:{{ config.postfix_reinject_port }} inet n - n - 100 smtpd
-o syslog_name=postfix/reinject
-o milter_macro_daemon_name=ORIGINATING
-o smtpd_milters=unix:opendkim/opendkim.sock
-o smtpd_milters=unix:/run/opendkim/opendkim.sock
-o cleanup_service_name=authclean
# Local SMTP server for reinjecting incoming filtered mail