mailsystem/conf/install_update_dovecot.conf.sample

183 lines
3.4 KiB
Bash

#!/usr/bin/env bash
## ===================================================================
## - Configuration File: Install/Update Dovecot Server
## ===================================================================
# ---
# --- Configure Settings for your Server here..
# ---
# ---
# - Base Configuration
# ---
# - Set update=false if that is a new installation
# -
# - This parameter must be set here! There is no default value.
# -
_update=false
# - Install dovecot with systemd support
# -
# - Defaults to 'true' if systemd is present, otherwise to 'false'
# -
#systemd_support=""
# - postmaster_address
# -
# - This parameter must be set here! There is no default value.
# -
# - Example:
# - postmaster_address="admin\@warenform.net"
# -
postmaster_address=""
# - hostname
# -
# - This parameter must be set here! There is no default value.
# -
hostname=""
# - IPv4 / IPv6 Addressen
# -
ipv4=""
ipv6=""
# - Webserver User
# -
# - defaults to:
# - http_user=www-data
# -
#http_user="www-data"
# ---
# - Postffix Settings
# ---
# - Postfix Main Configuration File
# -
# - defaults to:
# - /etc/postfix/main.cf
# -
#postfix_main_cf="/etc/postfix/main.cf"
# ---
# - Listener configuration
# ---
if [[ -n "$ipv6" ]]; then
imap_listener_adresses="127.0.0.1 $ipv4 $ipv6"
imaps_listener_adresses="$ipv4 $ipv6"
pop_listener_adresses="$ipv4 $ipv6"
pops_listener_adresses="$ipv4 $ipv6"
else
imap_listener_adresses="127.0.0.1 $ipv4"
imaps_listener_adresses="$ipv4"
pop_listener_adresses="$ipv4"
pops_listener_adresses="$ipv4"
fi
xmpp_listener=false
xmpp_listener_addresses="$ipv4 $ipv6"
xmpp_listener_port="44444"
# ---
# - Database settings
# ---
# - database
# -
# - This parameter must be set here! There is no default value.
# -
# - Possible values for parameter database are only 'mysql' and 'postgres'
# -
database=""
# - dbname
# -
# - Defaults to 'postfix'
#dbname=postfix
# - dbuser
# -
# - Defaults to 'postfix'
# -
#dbuser=postfix
# - dbpassword
# -
# - This parameter must be set here!
# -
dbpassword=""
# - dbhost
# -
# - Defaults to:
# - '/run/postgresql' if database is set to 'postgres'
# - '127.0.0.1' if database is set to 'mysql'
# -
dbhost=""
# - default_pass_scheme
# -
# - Password databases have a default password scheme.
# -
# - The password scheme can be overridden for each password by prefixing
# - it with {SCHEME}, for example: {SHA512-CRYPT}pass.
# -
# - See: https://wiki.dovecot.org/Authentication/PasswordSchemes
# -
# - Defaults to 'PLAIN'
# -
#default_pass_scheme=
# ---
# - Cert/Key configurations
# ---
cert_base_dir="/etc/postfix/ssl"
server_cert=${cert_base_dir}/mailserver.crt
server_key=${cert_base_dir}/mailserver.key
dh_pem_file="${cert_base_dir}/dh_4096.pem"
imap_cert=${cert_base_dir}/mailserver.crt
imap_key=${cert_base_dir}/mailserver.key
pop_cert=${cert_base_dir}/mailserver.crt
pop_key=${cert_base_dir}/mailserver.key
# - Other settings
# -
spam_folder=Spam
max_userip_connections=24
#auth_mechanisms="plain login digest-md5 cram-md5"
auth_mechanisms="plain login"
# - Settings for quota warning sript
# -
from_address="o.open <oo@oopen.de>"
reply_to="oo@oopen.de"
webmailer="https://webmail.oopen.de"
salutation="O.OPEN
--
O.OPEN | Phone: +49 30 / 290 484 91
Erkelenzdamm 21 | Fax: +49 30 / 290 484 99
D-10999 Berlin | http://oopen.de"
# ---
# --- End server-specific Settings
# ---