wip
This commit is contained in:
parent
cc7a0f1c76
commit
27171bcd4c
5 changed files with 12 additions and 10 deletions
|
@ -3,7 +3,6 @@ dovecot_storage_version = ${storage_version}
|
||||||
|
|
||||||
protocols = imap lmtp sieve
|
protocols = imap lmtp sieve
|
||||||
auth_mechanisms = plain login
|
auth_mechanisms = plain login
|
||||||
mail_privileged_group = mail
|
|
||||||
ssl = required
|
ssl = required
|
||||||
ssl_server_cert_file = /var/lib/dehydrated/certs/${hostname}/fullchain.pem
|
ssl_server_cert_file = /var/lib/dehydrated/certs/${hostname}/fullchain.pem
|
||||||
ssl_server_key_file = /var/lib/dehydrated/certs/${hostname}/privkey.pem
|
ssl_server_key_file = /var/lib/dehydrated/certs/${hostname}/privkey.pem
|
||||||
|
@ -147,7 +146,7 @@ language de {
|
||||||
language_tokenizers = generic email-address
|
language_tokenizers = generic email-address
|
||||||
|
|
||||||
fts flatcurve {
|
fts flatcurve {
|
||||||
# substring_search = yes # RFC-konform = yes, braucht aber deutlich mehr Platz
|
substring_search = yes
|
||||||
# rotate_count = 5000 # DB-Rotation nach X Mails
|
# rotate_count = 5000 # DB-Rotation nach X Mails
|
||||||
# rotate_time = 5s # oder zeitbasiert rotieren
|
# rotate_time = 5s # oder zeitbasiert rotieren
|
||||||
# optimize_limit = 10
|
# optimize_limit = 10
|
||||||
|
@ -159,7 +158,8 @@ fts_decoder_driver = script
|
||||||
fts_decoder_script_socket_path = decode2text
|
fts_decoder_script_socket_path = decode2text
|
||||||
|
|
||||||
service indexer-worker {
|
service indexer-worker {
|
||||||
vsz_limit = ${indexer_ram}
|
process_limit = ${indexer_cores}
|
||||||
|
vsz_limit = ${indexer_ram}M
|
||||||
}
|
}
|
||||||
service decode2text {
|
service decode2text {
|
||||||
executable = script /usr/local/libexec/dovecot/decode2text.sh
|
executable = script /usr/local/libexec/dovecot/decode2text.sh
|
||||||
|
|
|
@ -52,6 +52,8 @@ files = {
|
||||||
'db_name': node.metadata.get('mailserver/database/name'),
|
'db_name': node.metadata.get('mailserver/database/name'),
|
||||||
'db_user': node.metadata.get('mailserver/database/user'),
|
'db_user': node.metadata.get('mailserver/database/user'),
|
||||||
'db_password': node.metadata.get('mailserver/database/password'),
|
'db_password': node.metadata.get('mailserver/database/password'),
|
||||||
|
'indexer_cores': node.metadata.get('vm/cores'),
|
||||||
|
'indexer_ram': node.metadata.get('vm/ram')//2,
|
||||||
},
|
},
|
||||||
'needs': {
|
'needs': {
|
||||||
'pkg_apt:'
|
'pkg_apt:'
|
||||||
|
|
|
@ -7,18 +7,16 @@ $config['enable_installer'] = true;
|
||||||
/* Local configuration for Roundcube Webmail */
|
/* Local configuration for Roundcube Webmail */
|
||||||
|
|
||||||
$config['db_dsnw'] = '${database['provider']}://${database['user']}:${database['password']}@${database['host']}/${database['name']}';
|
$config['db_dsnw'] = '${database['provider']}://${database['user']}:${database['password']}@${database['host']}/${database['name']}';
|
||||||
$config['imap_host'] = 'localhost';
|
$config['imap_host'] = 'ssl://${imap_host}';
|
||||||
|
$config['imap_port'] = 993;
|
||||||
$config['smtp_host'] = 'tls://localhost';
|
$config['smtp_host'] = 'tls://localhost';
|
||||||
|
$config['smtp_port'] = 587;
|
||||||
$config['smtp_user'] = '%u';
|
$config['smtp_user'] = '%u';
|
||||||
$config['smtp_pass'] = '%p';
|
$config['smtp_pass'] = '%p';
|
||||||
|
#$config['imap_debug'] = true;
|
||||||
|
#$config['smtp_debug'] = true;
|
||||||
$config['support_url'] = '';
|
$config['support_url'] = '';
|
||||||
$config['des_key'] = '${des_key}';
|
$config['des_key'] = '${des_key}';
|
||||||
$config['product_name'] = '${product_name}';
|
$config['product_name'] = '${product_name}';
|
||||||
$config['plugins'] = array(${', '.join(f'"{plugin}"' for plugin in plugins)});
|
$config['plugins'] = array(${', '.join(f'"{plugin}"' for plugin in plugins)});
|
||||||
$config['language'] = 'de_DE';
|
$config['language'] = 'de_DE';
|
||||||
$config['smtp_conn_options'] = array(
|
|
||||||
'ssl' => array(
|
|
||||||
'verify_peer' => false,
|
|
||||||
'verify_peer_name' => false,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ files['/opt/roundcube/config/config.inc.php'] = {
|
||||||
'des_key': node.metadata.get('roundcube/des_key'),
|
'des_key': node.metadata.get('roundcube/des_key'),
|
||||||
'database': node.metadata.get('roundcube/database'),
|
'database': node.metadata.get('roundcube/database'),
|
||||||
'plugins': node.metadata.get('roundcube/plugins'),
|
'plugins': node.metadata.get('roundcube/plugins'),
|
||||||
|
'imap_host': node.metadata.get('mailserver/hostname'),
|
||||||
},
|
},
|
||||||
'needs': [
|
'needs': [
|
||||||
'action:chown_roundcube',
|
'action:chown_roundcube',
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#'nginx-rtmps',
|
#'nginx-rtmps',
|
||||||
'wireguard',
|
'wireguard',
|
||||||
'zfs',
|
'zfs',
|
||||||
|
'systemd-swap',
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
|
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
|
||||||
|
|
Loading…
Reference in a new issue