mirror of
https://github.com/chatmail/relay.git
synced 2026-05-14 09:54:38 +00:00
fix: Introduce uv for dependency locking and update deployment configurations.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user