Adjust systemd service runtime directory permissions and umask, correct Postfix systemd override path, and update opendkim socket path.

This commit is contained in:
Omid Zamani
2026-01-06 10:04:58 +01:00
parent 32f4017cb4
commit e32b340fed
5 changed files with 7 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class PostfixDeployer(Deployer):
restart_conf = files.put(
name="postfix: restart automatically on failure",
src=get_resource("service/10_restart.conf"),
dest="/etc/systemd/system/dovecot.service.d/10_restart.conf",
dest="/etc/systemd/system/postfix.service.d/10_restart.conf",
)
self.daemon_reload = restart_conf.changed
self.need_restart = need_restart

View File

@@ -80,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:/run/opendkim/opendkim.sock
-o smtpd_milters=unix:opendkim/opendkim.sock
-o cleanup_service_name=authclean
# Local SMTP server for reinjecting incoming filtered mail

View File

@@ -7,7 +7,8 @@ Restart=always
RestartSec=30
User=vmail
RuntimeDirectory=chatmail-metadata
UMask=0077
RuntimeDirectoryMode=0755
UMask=0022
[Install]
WantedBy=multi-user.target

View File

@@ -7,7 +7,8 @@ Restart=always
RestartSec=30
User=vmail
RuntimeDirectory=doveauth
UMask=0077
RuntimeDirectoryMode=0755
UMask=0022
[Install]
WantedBy=multi-user.target

View File

@@ -7,6 +7,7 @@ Restart=always
RestartSec=30
User=vmail
RuntimeDirectory=chatmail-lastlogin
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target