diff --git a/docker-compose.yaml b/docker-compose.yaml index 0c4ae88..8c70c83 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,7 +7,7 @@ networks: x-mail: &defaults - restart: always + restart: unless-stopped env_file: local.env networks: - internalnet @@ -195,6 +195,7 @@ services: - mail_data:/var/mail/:z - mail_state:/var/mail-state/:z - mail_config:/tmp/docker-mailserver/:z + - ./config/mail/postfix-policyd-spf.conf:/etc/postfix-policyd-spf-python/policyd-spf.conf:ro,z cap_add: - NET_ADMIN diff --git a/local.env b/local.env index 911ca3f..7ec9ce8 100644 --- a/local.env +++ b/local.env @@ -52,8 +52,10 @@ GITEA__server__HTTP_PORT = 3000 GITEA__server__DISABLE_SSH = false GITEA__server__SSH_PORT = 222 GITEA__server__SSH_LISTEN_PORT = 222 +GITEA__server__DISABLE_REGISTRATION = true GITEA__mailer__ENABLED = true -GITEA__mailer__PROTOCOL = smtp -GITEA__mailer__SMTP_ADDR = mailserver -GITEA__mailer__SMTP_PORT = 25 +GITEA__mailer__PROTOCOL = sendmail +GITEA__mailer__FROM = admin@leene.dev +GITEA__mailer__SENDMAIL_ARGS = -S mailserver -- +