mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
email: Use drop-in config component for /etc files
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
99b23b75a4
commit
340c8bd156
17
debian/freedombox.maintscript
vendored
17
debian/freedombox.maintscript
vendored
@ -88,6 +88,23 @@ rm_conffile /etc/plinth/modules-enabled/wireguard 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/wordpress 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/zoph 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/deluge-plinth.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/15-freedombox-mail.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/05-freedombox-passdb.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/95-freedombox-sieve.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/05-freedombox-userdb.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/90-freedombox-mailboxes.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/freedombox-ldap.conf.ext 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/90-freedombox-tls.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/90-freedombox-master.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/90-freedombox-lmtp.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/15-freedombox-auth.conf 23.10~
|
||||
rm_conffile /etc/dovecot/freedombox-sieve-after/sort-spam.sieve 23.10~
|
||||
rm_conffile /etc/rspamd/local.d/freedombox-logging.inc 23.10~
|
||||
rm_conffile /etc/rspamd/local.d/freedombox-redis.conf 23.10~
|
||||
rm_conffile /etc/rspamd/local.d/freedombox-milter-headers.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/email-freedombox.conf 23.10~
|
||||
rm_conffile /etc/fail2ban/jail.d/dovecot-freedombox.conf 23.10~
|
||||
rm_conffile /etc/postfix/freedombox-aliases.cf 23.10~
|
||||
rm_conffile /etc/gitweb-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/gitweb-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/gitweb-freedombox-auth.conf 23.10~
|
||||
|
||||
@ -8,6 +8,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
import plinth.app
|
||||
from plinth import cfg, frontpage, menu
|
||||
from plinth.config import DropinConfigs
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
@ -52,7 +53,7 @@ class EmailApp(plinth.app.App):
|
||||
|
||||
app_id = 'email'
|
||||
|
||||
_version = 2
|
||||
_version = 3
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize the email app."""
|
||||
@ -100,6 +101,27 @@ class EmailApp(plinth.app.App):
|
||||
conflicts_action=Packages.ConflictsAction.REMOVE)
|
||||
self.add(packages)
|
||||
|
||||
dropin_configs = DropinConfigs('dropin-configs-email', [
|
||||
'/etc/apache2/conf-available/email-freedombox.conf',
|
||||
'/etc/dovecot/conf.d/05-freedombox-passdb.conf',
|
||||
'/etc/dovecot/conf.d/05-freedombox-userdb.conf',
|
||||
'/etc/dovecot/conf.d/15-freedombox-auth.conf',
|
||||
'/etc/dovecot/conf.d/15-freedombox-mail.conf',
|
||||
'/etc/dovecot/conf.d/90-freedombox-lmtp.conf',
|
||||
'/etc/dovecot/conf.d/90-freedombox-mailboxes.conf',
|
||||
'/etc/dovecot/conf.d/90-freedombox-master.conf',
|
||||
'/etc/dovecot/conf.d/90-freedombox-tls.conf',
|
||||
'/etc/dovecot/conf.d/95-freedombox-sieve.conf',
|
||||
'/etc/dovecot/conf.d/freedombox-ldap.conf.ext',
|
||||
'/etc/dovecot/freedombox-sieve-after/sort-spam.sieve',
|
||||
'/etc/fail2ban/jail.d/dovecot-freedombox.conf',
|
||||
'/etc/postfix/freedombox-aliases.cf',
|
||||
'/etc/rspamd/local.d/freedombox-logging.inc',
|
||||
'/etc/rspamd/local.d/freedombox-milter-headers.conf',
|
||||
'/etc/rspamd/local.d/freedombox-redis.conf',
|
||||
])
|
||||
self.add(dropin_configs)
|
||||
|
||||
listen_ports = [(25, 'tcp4'), (25, 'tcp6'), (465, 'tcp4'),
|
||||
(465, 'tcp6'), (587, 'tcp4'), (587, 'tcp6')]
|
||||
daemon = Daemon('daemon-email-postfix', 'postfix',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user