1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snappymail_ynh.git synced 2024-09-03 20:26:29 +02:00
snappymail_ynh/conf/application.ini

336 lines
8.8 KiB
INI
Raw Normal View History

2022-04-21 18:30:00 +02:00
; SnappyMail configuration file
; Please don't add custom parameters here, those will be overwritten
[webmail]
; Text displayed as page title
title = "SnappyMail Webmail"
; Text displayed on startup
loading_description = "SnappyMail"
favicon_url = ""
2023-06-21 08:50:12 +02:00
app_path = ""
2022-04-21 18:30:00 +02:00
; Theme used by default
2023-06-21 08:50:12 +02:00
theme = "Default"
2022-04-21 18:30:00 +02:00
; Allow theme selection on settings screen
allow_themes = On
allow_user_background = Off
; Language used by default
2023-06-15 04:43:19 +02:00
language = "en"
2022-04-21 18:30:00 +02:00
; Admin Panel interface language
2023-06-15 04:43:19 +02:00
language_admin = "en"
2022-04-21 18:30:00 +02:00
; Allow language selection on settings screen
allow_languages_on_settings = On
allow_additional_accounts = On
allow_additional_identities = On
2023-06-21 08:50:12 +02:00
; Number of messages displayed on page by default
2022-04-21 18:30:00 +02:00
messages_per_page = 20
2023-06-21 08:50:12 +02:00
; Mark message read after N seconds
message_read_delay = 5
2022-04-21 18:30:00 +02:00
; File size limit (MB) for file upload on compose screen
; 0 for unlimited.
attachment_size_limit = 25
2023-06-21 08:50:12 +02:00
; brotli or gzip compress the output.
; Warning: only enable when server does not do this, else double compression errors occur
compress_output = Off
2022-04-21 18:30:00 +02:00
[interface]
show_attachment_thumbnail = On
[contacts]
; Enable contacts
enable = On
allow_sync = On
sync_interval = 20
type = "mysql"
pdo_dsn = "mysql:host=127.0.0.1;port=3306;dbname=__DB_NAME__"
pdo_user = "__DB_USER__"
pdo_password = "__DB_PWD__"
2023-06-21 08:50:12 +02:00
; PEM format certificate
mysql_ssl_ca = ""
mysql_ssl_verify = On
; HIGH
mysql_ssl_ciphers = ""
suggestions_limit = 20
2022-04-21 18:30:00 +02:00
[security]
custom_server_signature = "SnappyMail"
x_xss_protection_header = "1; mode=block"
openpgp = Off
2023-06-21 08:50:12 +02:00
; Access settings
allow_admin_panel = On
2022-04-21 18:30:00 +02:00
; Login and password for web admin panel
admin_login = "admin"
2023-06-21 08:50:12 +02:00
admin_password = ""
2022-04-21 18:30:00 +02:00
admin_totp = ""
admin_panel_host = ""
admin_panel_key = "admin"
2023-06-21 08:50:12 +02:00
force_https = Off
hide_x_mailer_header = On
; https://en.m.wikipedia.org/wiki/Load_(computing)
max_sys_getloadavg = 0
; For example to allow all images use "img-src https:". More info at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#directives
2022-04-21 18:30:00 +02:00
content_security_policy = ""
2023-06-21 08:50:12 +02:00
; Report CSP errors to PHP and/or SnappyMail Log
2022-04-21 18:30:00 +02:00
csp_report = Off
2023-06-21 08:50:12 +02:00
; A valid cipher method from https://php.net/openssl_get_cipher_methods
2022-04-21 18:30:00 +02:00
encrypt_cipher = "aes-256-cbc-hmac-sha1"
2023-06-21 08:50:12 +02:00
; Strict, Lax or None
cookie_samesite = "Strict"
; Additional allowed Sec-Fetch combinations separated by ";".
; For example:
; * Allow iframe on same domain in any mode: dest=iframe,site=same-origin
; * Allow navigate to iframe on same domain: mode=navigate,dest=iframe,site=same-origin
; * Allow navigate to iframe on (sub)domain: mode=navigate,dest=iframe,site=same-site
; * Allow navigate to iframe from any domain: mode=navigate,dest=iframe,site=cross-site
;
; Default is "site=same-origin;site=none"
secfetch_allow = ""
[admin_panel]
allow_update = Off
2022-04-21 18:30:00 +02:00
[ssl]
; Require verification of SSL certificate used.
2023-06-21 08:50:12 +02:00
verify_certificate = On
2022-04-21 18:30:00 +02:00
; Allow self-signed certificates. Requires verify_certificate.
2023-06-21 08:50:12 +02:00
allow_self_signed = Off
; https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_security_level.html
security_level = 1
2022-04-21 18:30:00 +02:00
; Location of Certificate Authority file on local filesystem (/etc/ssl/certs/ca-certificates.crt)
cafile = ""
; capath must be a correctly hashed certificate directory. (/etc/ssl/certs/)
capath = ""
2023-06-21 08:50:12 +02:00
; Location of client certificate file (pem format with private key) on local filesystem
local_cert = ""
; This can help mitigate the CRIME attack vector.
disable_compression = On
2022-04-21 18:30:00 +02:00
[capa]
contacts = On
quota = On
help = On
search = On
search_adv = On
2023-06-21 08:50:12 +02:00
; Allow clear folder and delete messages without moving to trash
2022-04-21 18:30:00 +02:00
dangerous_actions = On
2023-06-21 08:50:12 +02:00
; Allow download attachments as Zip (and optionally others)
2022-04-21 18:30:00 +02:00
attachments_actions = On
[login]
2023-06-21 08:50:12 +02:00
; If someone logs in without "@domain.tld", this value will be used
; When this value is HTTP_HOST, the $_SERVER["HTTP_HOST"] value is used.
; When this value is SERVER_NAME, the $_SERVER["SERVER_NAME"] value is used.
; When this value is gethostname, the gethostname() value is used.
;
2022-04-21 18:30:00 +02:00
default_domain = "__DOMAIN__"
; Allow language selection on webmail login screen
allow_languages_on_login = On
2023-06-21 08:50:12 +02:00
; Detect language from browser header `Accept-Language`
2022-04-21 18:30:00 +02:00
determine_user_language = On
2023-06-21 08:50:12 +02:00
; Like default_domain but then HTTP_HOST/SERVER_NAME without www.
2022-04-21 18:30:00 +02:00
determine_user_domain = Off
login_lowercase = On
; This option allows webmail to remember the logged in user
; once they closed the browser window.
;
; Values:
; "DefaultOff" - can be used, disabled by default;
; "DefaultOn" - can be used, enabled by default;
; "Unused" - cannot be used
sign_me_auto = "DefaultOff"
[plugins]
; Enable plugin support
enable = On
2023-06-21 08:50:12 +02:00
; Comma-separated list of enabled plugins
2022-04-21 18:30:00 +02:00
enabled_list = "ldap-identities"
[defaults]
2023-06-21 08:50:12 +02:00
; Editor mode used by default (Plain, Html)
2022-04-21 18:30:00 +02:00
view_editor_type = "Html"
; layout: 0 - no preview, 1 - side preview, 2 - bottom preview
view_layout = 1
view_use_checkboxes = On
autologout = 30
view_html = On
show_images = Off
contacts_autosave = On
mail_use_threads = Off
allow_draft_autosave = On
mail_reply_same_folder = Off
[logs]
; Enable logging
enable = Off
2023-06-21 08:50:12 +02:00
; Path where log files will be stored
path = ""
; Log messages of set RFC 5424 section 6.2.1 Severity level and higher (0 = highest, 7 = lowest).
; 0 = Emergency
; 1 = Alert
; 2 = Critical
; 3 = Error
; 4 = Warning
; 5 = Notice
; 6 = Informational
; 7 = Debug
2022-04-21 18:30:00 +02:00
level = 4
; Required for development purposes only.
; Disabling this option is not recommended.
hide_passwords = On
2023-06-21 08:50:12 +02:00
time_zone = "__TIMEZONE__"
2022-04-21 18:30:00 +02:00
; Log filename.
; For security reasons, some characters are removed from filename.
; Allows for pattern-based folder creation (see examples below).
;
; Patterns:
; {date:Y-m-d} - Replaced by pattern-based date
; Detailed info: http://www.php.net/manual/en/function.date.php
; {user:email} - Replaced by user's email address
; If user is not logged in, value is set to "unknown"
; {user:login} - Replaced by user's login (the user part of an email)
; If user is not logged in, value is set to "unknown"
; {user:domain} - Replaced by user's domain name (the domain part of an email)
; If user is not logged in, value is set to "unknown"
; {user:uid} - Replaced by user's UID regardless of account currently used
;
; {user:ip}
; {request:ip} - Replaced by user's IP address
;
; Others:
; {imap:login} {imap:host} {imap:port}
; {smtp:login} {smtp:host} {smtp:port}
;
; Examples:
; filename = "log-{date:Y-m-d}.txt"
; filename = "{date:Y-m-d}/{user:domain}/{user:email}_{user:uid}.log"
; filename = "{user:email}-{date:Y-m-d}.txt"
2023-06-21 08:50:12 +02:00
; filename = "syslog"
; filename = "stderr"
2022-04-21 18:30:00 +02:00
filename = "log-{date:Y-m-d}.txt"
; Enable auth logging in a separate file (for fail2ban)
auth_logging = On
2023-06-21 08:50:12 +02:00
auth_logging_filename = "fail2ban/auth-{date:Y-m-d}.txt"
auth_logging_format = "[{date:Y-m-d H:i:s}] Auth failed: ip={request:ip} user={imap:login} host={imap:host} port={imap:port}"
; Enable auth logging to syslog for fail2ban
auth_syslog = Off
2022-04-21 18:30:00 +02:00
[debug]
; Special option required for development purposes
enable = Off
2023-06-21 08:50:12 +02:00
javascript = Off
css = Off
2022-04-21 18:30:00 +02:00
[cache]
; The section controls caching of the entire application.
;
; Enables caching in the system
enable = On
2023-06-21 08:50:12 +02:00
; Path where cache files will be stored
path = ""
2022-04-21 18:30:00 +02:00
; Additional caching key. If changed, cache is purged
index = "v1"
2023-06-21 08:50:12 +02:00
; Can be: files, APCU, memcache, redis (beta)
2022-04-21 18:30:00 +02:00
fast_cache_driver = "files"
; Additional caching key. If changed, fast cache is purged
fast_cache_index = "v1"
; Browser-level cache. If enabled, caching is maintainted without using files
http = On
; Browser-level cache time (seconds, Expires header)
http_expires = 3600
; Caching message UIDs when searching and sorting (threading)
server_uids = On
2023-06-21 08:50:12 +02:00
system_data = On
[imap]
use_force_selection = Off
use_expunge_all_on_delete = Off
message_list_fast_simple_search = On
message_list_permanent_filter = ""
message_all_headers = Off
show_login_alert = On
fetch_new_messages = On
2022-04-21 18:30:00 +02:00
[labs]
2023-06-21 08:50:12 +02:00
; Display message RFC 2822 date and time header, instead of the arrival internal date.
2022-04-21 18:30:00 +02:00
date_from_headers = On
allow_message_append = Off
2023-06-21 08:50:12 +02:00
; When login fails, wait N seconds before responding
login_fault_delay = 5
2022-04-21 18:30:00 +02:00
log_ajax_response_write_limit = 300
smtp_show_server_errors = Off
sieve_auth_plain_initial = On
2023-06-21 08:50:12 +02:00
sieve_allow_fileinto_inbox = Off
; PHP mail() remove To and Subject headers
2022-04-21 18:30:00 +02:00
mail_func_clear_headers = On
2023-06-21 08:50:12 +02:00
; PHP mail() set -f emailaddress
2022-04-21 18:30:00 +02:00
mail_func_additional_parameters = Off
folders_spec_limit = 50
curl_proxy = ""
curl_proxy_auth = ""
2023-06-21 08:50:12 +02:00
custom_login_link='__PATH__/sso.php'
custom_logout_link='https://__MAIN_DOMAIN__/yunohost/sso/?action=logout'
2022-04-21 18:30:00 +02:00
http_client_ip_check_proxy = Off
fast_cache_memcache_host = "127.0.0.1"
fast_cache_memcache_port = 11211
fast_cache_redis_host = "127.0.0.1"
fast_cache_redis_port = 6379
use_local_proxy_for_external_images = On
image_exif_auto_rotate = Off
cookie_default_path = ""
cookie_default_secure = Off
replace_env_in_configuration = ""
boundary_prefix = ""
dev_email = ""
dev_password = ""
[version]
2023-06-21 08:50:12 +02:00
current = "2.28.1"
saved = "Wed, 21 Jun 2023 06:38:05 +0000"