mirror of
https://github.com/chatmail/relay.git
synced 2026-05-13 09:24:43 +00:00
get delivery working
This commit is contained in:
@@ -384,7 +384,7 @@ class ChatmailDeployer(Deployer):
|
||||
|
||||
def __init__(self, config):
|
||||
self.config = config
|
||||
self.mail_domain = config.mail_domain
|
||||
self.mail_domain_deliverable = config.mail_domain_deliverable
|
||||
|
||||
def install(self):
|
||||
self.put_file(
|
||||
@@ -417,7 +417,7 @@ class ChatmailDeployer(Deployer):
|
||||
server.shell(
|
||||
name="Setup /etc/mailname",
|
||||
commands=[
|
||||
f"echo {self.mail_domain} >/etc/mailname; chmod 644 /etc/mailname"
|
||||
f"echo {self.mail_domain_deliverable} >/etc/mailname; chmod 644 /etc/mailname"
|
||||
],
|
||||
)
|
||||
|
||||
@@ -470,6 +470,7 @@ def deploy_chatmail(config_path: Path, disable_mail: bool, website_only: bool) -
|
||||
config = read_config(config_path)
|
||||
check_config(config)
|
||||
mail_domain = config.mail_domain
|
||||
mail_domain_deliverable = config.mail_domain_deliverable
|
||||
|
||||
if website_only:
|
||||
Deployment().perform_stages([WebsiteDeployer(config)])
|
||||
@@ -540,7 +541,7 @@ def deploy_chatmail(config_path: Path, disable_mail: bool, website_only: bool) -
|
||||
WebsiteDeployer(config),
|
||||
ChatmailVenvDeployer(config),
|
||||
MtastsDeployer(),
|
||||
OpendkimDeployer(mail_domain),
|
||||
OpendkimDeployer(mail_domain_deliverable),
|
||||
# Dovecot should be started before Postfix
|
||||
# because it creates authentication socket
|
||||
# required by Postfix.
|
||||
|
||||
@@ -40,7 +40,7 @@ service imap {
|
||||
process_limit = 50000
|
||||
}
|
||||
|
||||
mail_server_admin = mailto:root@{{ config.mail_domain }}
|
||||
mail_server_admin = mailto:root@{{ config.mail_domain_deliverable }}
|
||||
mail_server_comment = Chatmail server
|
||||
|
||||
# `zlib` enables compressing messages stored in the maildir.
|
||||
|
||||
@@ -12,8 +12,8 @@ from cmdeploy.basedeploy import Deployer
|
||||
class OpendkimDeployer(Deployer):
|
||||
required_users = [("opendkim", None, ["opendkim"])]
|
||||
|
||||
def __init__(self, mail_domain):
|
||||
self.mail_domain = mail_domain
|
||||
def __init__(self, mail_domain_deliverable):
|
||||
self.mail_domain_deliverable = mail_domain_deliverable
|
||||
|
||||
def install(self):
|
||||
apt.packages(
|
||||
@@ -22,7 +22,7 @@ class OpendkimDeployer(Deployer):
|
||||
)
|
||||
|
||||
def configure(self):
|
||||
domain = self.mail_domain
|
||||
domain = self.mail_domain_deliverable
|
||||
dkim_selector = "opendkim"
|
||||
"""Configures OpenDKIM"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user