mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
email: Minor indentation and docstring changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
11b4b8fa93
commit
1bc576387e
@ -1,5 +1,7 @@
|
||||
"""FreedomBox email server app"""
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
"""
|
||||
FreedomBox app to manage an email server.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ def get_domains():
|
||||
|
||||
|
||||
def set_domains(primary_domain=None):
|
||||
"""Set the primary domain and all the domains for postfix. """
|
||||
"""Set the primary domain and all the domains for postfix."""
|
||||
all_domains = DomainName.list_names()
|
||||
if not primary_domain:
|
||||
primary_domain = get_domains()['primary_domain']
|
||||
@ -36,7 +36,7 @@ def set_domains(primary_domain=None):
|
||||
|
||||
|
||||
def action_set_domains(primary_domain, all_domains):
|
||||
"""Set the primary domain and all the domains for postfix. """
|
||||
"""Set the primary domain and all the domains for postfix."""
|
||||
all_domains = [_clean_domain(domain) for domain in all_domains.split(',')]
|
||||
primary_domain = _clean_domain(primary_domain)
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
"""Provides the diagnosis of SASL, mail submission, and user database lookup
|
||||
configurations"""
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
"""
|
||||
Configure postfix to use auth and local delivery with dovecot. Start smtps and
|
||||
submission services. Setup aliases database.
|
||||
"""
|
||||
|
||||
import plinth.modules.email.aliases as aliases
|
||||
import plinth.modules.email.postconf as postconf
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox <https://localhost/plinth/apps/email/>
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
# Outlook and Windows Mail works only with LOGIN mechanism, not the standard
|
||||
# PLAIN:
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox <https://localhost/plinth/apps/email/>
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
# Users in FreedomBox are not expected to access mail by logging into the
|
||||
# system. Storing the mail in single location instead of home directories and
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox <https://localhost/plinth/apps/email/>
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
# Use sdbox, a format specific to dovecot, for storing mails. The format allows
|
||||
# better performance with some IMAP queries. When this is combined with Full
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox <https://localhost/plinth/apps/email/>
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
protocol lmtp {
|
||||
mail_plugins = $mail_plugins sieve
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox <https://localhost/plinth/apps/email/>
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
# Mark various mailboxes with special use flags (RFC 6154). Various names used
|
||||
# in mail clients for mailboxes: https://www.imapwiki.org/SpecialUse
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox <https://localhost/plinth/apps/email/>
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
service auth {
|
||||
unix_listener /var/spool/postfix/private/auth {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
# Mozilla Guideline v5.6, Dovecot 2.3.9, OpenSSL 1.1.1d, intermediate
|
||||
# Generated 2021-08
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# Direct edits to this file will be lost!
|
||||
# Manage your settings on FreedomBox <https://localhost/plinth/apps/email/>
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
plugin {
|
||||
sieve_after = /etc/dovecot/freedombox-sieve-after
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
require ["fileinto", "mailbox"];
|
||||
|
||||
if header :is "X-Spam" "Yes" {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
# Maintained by FreedomBox, do not edit.
|
||||
dbpath = /var/lib/postfix/freedombox-aliases/aliases.sqlite3
|
||||
query = SELECT value FROM alias WHERE name='%s' AND status=1
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# The file is managed by FreedomBox. Do not to edit.
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
use = ["authentication-results", "x-spam-level", "x-spam-status",
|
||||
"x-spamd-bar", "x-spamd-result"];
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# The file is managed by FreedomBox. Do not to edit.
|
||||
# Do not edit this file. Manage your settings on FreedomBox.
|
||||
|
||||
servers = "127.0.0.1";
|
||||
db = "7"; # Use database number 8 not to clash with other clients
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from plinth.clients import store_url
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user