mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
fix systemd resolved
This commit is contained in:
@@ -170,6 +170,15 @@ def _configure_remote_venv_with_chatmaild(config) -> None:
|
|||||||
|
|
||||||
class UnboundDeployer(Deployer):
|
class UnboundDeployer(Deployer):
|
||||||
def install(self):
|
def install(self):
|
||||||
|
# Stop and disable systemd-resolved if it's running.
|
||||||
|
systemd.service(
|
||||||
|
name="Stop and disable systemd-resolved",
|
||||||
|
service="systemd-resolved.service",
|
||||||
|
running=False,
|
||||||
|
enabled=False,
|
||||||
|
_ignore_errors=True,
|
||||||
|
)
|
||||||
|
|
||||||
# Run local DNS resolver `unbound`.
|
# Run local DNS resolver `unbound`.
|
||||||
# `resolvconf` takes care of setting up /etc/resolv.conf
|
# `resolvconf` takes care of setting up /etc/resolv.conf
|
||||||
# to use 127.0.0.1 as the resolver.
|
# to use 127.0.0.1 as the resolver.
|
||||||
@@ -576,7 +585,7 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None:
|
|||||||
|
|
||||||
port_services = [
|
port_services = [
|
||||||
(["master", "smtpd"], 25),
|
(["master", "smtpd"], 25),
|
||||||
("unbound", 53),
|
(["unbound", "systemd-resolve", "systemd-resolved"], 53),
|
||||||
("acmetool", 80),
|
("acmetool", 80),
|
||||||
(["imap-login", "dovecot"], 143),
|
(["imap-login", "dovecot"], 143),
|
||||||
("nginx", 443),
|
("nginx", 443),
|
||||||
|
|||||||
Reference in New Issue
Block a user