mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
email: Depend on and run redis server
Many modules in rspamd including the bayes built-in module depend on redis-server. Install, run and configure redis-server. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
fd9e1927e5
commit
ae8dd4ec7f
@ -76,15 +76,11 @@ class EmailApp(plinth.app.App):
|
|||||||
'packages-email', [
|
'packages-email', [
|
||||||
'postfix', 'postfix-ldap', 'postfix-sqlite', 'dovecot-pop3d',
|
'postfix', 'postfix-ldap', 'postfix-sqlite', 'dovecot-pop3d',
|
||||||
'dovecot-imapd', 'dovecot-ldap', 'dovecot-lmtpd',
|
'dovecot-imapd', 'dovecot-ldap', 'dovecot-lmtpd',
|
||||||
'dovecot-managesieved'
|
'dovecot-managesieved', 'rspamd', 'redis-server'
|
||||||
], conflicts=['exim4-base', 'exim4-config', 'exim4-daemon-light'],
|
], conflicts=['exim4-base', 'exim4-config', 'exim4-daemon-light'],
|
||||||
conflicts_action=Packages.ConflictsAction.IGNORE)
|
conflicts_action=Packages.ConflictsAction.IGNORE)
|
||||||
self.add(packages)
|
self.add(packages)
|
||||||
|
|
||||||
packages = Packages('packages-email-skip-rec', ['rspamd'],
|
|
||||||
skip_recommends=True)
|
|
||||||
self.add(packages)
|
|
||||||
|
|
||||||
listen_ports = [(25, 'tcp4'), (25, 'tcp6'), (465, 'tcp4'),
|
listen_ports = [(25, 'tcp4'), (25, 'tcp6'), (465, 'tcp4'),
|
||||||
(465, 'tcp6'), (587, 'tcp4'), (587, 'tcp6')]
|
(465, 'tcp6'), (587, 'tcp4'), (587, 'tcp6')]
|
||||||
daemon = Daemon('daemon-email-postfix', 'postfix',
|
daemon = Daemon('daemon-email-postfix', 'postfix',
|
||||||
@ -105,6 +101,10 @@ class EmailApp(plinth.app.App):
|
|||||||
listen_ports=listen_ports)
|
listen_ports=listen_ports)
|
||||||
self.add(daemon)
|
self.add(daemon)
|
||||||
|
|
||||||
|
daemon = Daemon('daemon-email-redis', 'redis-server',
|
||||||
|
listen_ports=[(6379, 'tcp4'), (6379, 'tcp6')])
|
||||||
|
self.add(daemon)
|
||||||
|
|
||||||
port_names = ['smtp', 'smtps', 'smtp-submission', 'imaps', 'pop3s']
|
port_names = ['smtp', 'smtps', 'smtp-submission', 'imaps', 'pop3s']
|
||||||
firewall = Firewall('firewall-email', info.name, ports=port_names,
|
firewall = Firewall('firewall-email', info.name, ports=port_names,
|
||||||
is_external=True)
|
is_external=True)
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
# The file is managed by FreedomBox. Do not to edit.
|
||||||
|
|
||||||
|
servers = "127.0.0.1";
|
||||||
|
db = "7"; # Use database number 8 not to clash with other clients
|
||||||
Loading…
x
Reference in New Issue
Block a user