Мы — долго запрягаем, быстро ездим, и сильно тормозим.
www.lissyara.su —> статьи —> FreeBSD —> почтовые системы —> Dovecot2 configfiles RUS

Дословно — вольный перевод конфигов Dovecot2

Автор: KontraBass.


Просьба сильно не пинать, я старался поближе к оригиналу, и такого 
опыта у меня не много Кое где возможно криво, могу подправить по 
Вашему замечанию. Это приложение к статье dovecot2 по шагам.
внизу ссылка на ветку форума




dovecot.conf


## Dovecot configuration file
## Конфигурационный файл dovecot

# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration  
# Если вы спешите, смотрите http://wiki2.dovecot.org/QuickConfiguration

# "doveconf -n" command gives a clean output of the changed settings. Use it
# instead of copy&pasting files when posting to the Dovecot mailing list.

# "doveconf -n"  эта команда выведет все измененные значения. Используйте
# ее вывод когда обращаетесь к спискам рассылки dovecot.

# '#' character and everything after it is treated as comments. Extra spaces
# and tabs are ignored. If you want to use either of these explicitly, put the
# value inside quotes, eg.: key = "# char and trailing whitespace  "

# все что следует за символом '#'  считается комментарием. Лишние пробелы
# и табуляция игнорируется. Если Вы хотите их использовать
# заключите значения в кавычки, пр.: key = "# символ и много пробелов  "

# Default values are shown for each setting, it's not required to uncomment
# those. These are exceptions to this though: No sections (e.g. namespace {})
# or plugin settings are added by default, they're listed only as examples.
# Paths are also just examples with the real defaults being based on configure
# options. The paths listed here are for configure --prefix=/usr/local
# --sysconfdir=/usr/local/etc --localstatedir=/var

# Значения по умолчанию определены для каждого параметра, не обязательно
# их раскомментировать. Из этих правил есть исключения: Названия секций
# (пр. namespace {}) или настройки plugin по умолчанию,
# указаны только в качестве примера. Пути также только как примеры
# со значениями, по умолчанию, основаными на опциях  при конфигурировании.
# Пути перечисленные здесь при конфигурировании --prefix=/usr/local
# --sysconfdir=/usr/local/etc --localstatedir=/var


# Protocols we want to be serving.
# Протоколы которые мы хотим использовать.
#protocols = imap pop3 lmtp

# A comma separated list of IPs or hosts where to listen in for connections.
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
# If you want to specify non-default ports or anything more complex,
# edit conf.d/master.conf.

# Список адресов или хостов, разделенный пробелами на которых мы
#  будем ожидать входящие соединения
# "*" слушать на всех IPv4 интерфейсах, "::" слушать на всех IPv6 интерфейсах.
# Если вы хотите задать нестандартный порт или что-то более сложное,
# отредактируйте conf.d/master.conf.
#listen = *, ::


# Base directory where to store runtime data.
# Папка где хранятся  runtime данные.
#base_dir = /var/run/dovecot/

# Name of this instance. In multi-instance setup doveadm and other commands
# can use -i <instance_name> to select which instance is used (an alternative
# to -c <config_path>). The instance name is also added to Dovecot processes
# in ps output.

# Имя этого экземпляра. В установках с несколькими экземплярами doveadm
# и другие команды могут использоваться  с -i <instance_name> для указания,
# какой экземпляр используется (альтернативно с -c <config_path>).
# Имя экземпляра также добавляется в вывод ps процессов Dovecot.
#instance_name = dovecot

# Greeting message for clients.
# Приветственное сообщение для клиентов.
#login_greeting = Dovecot ready.

# Space separated list of trusted network ranges. Connections from these
# IPs are allowed to override their IP addresses and ports (for logging and
# for authentication checks). disable_plaintext_auth is also ignored for
# these networks. Typically you'd specify your IMAP proxy servers here.
 
# Список доверенных сетей разделенных пробелами. Соединения с этих
# адресов могут отменять IP и порт ограничения(checks)  (для логгирования и
# для аутентификации). disable_plaintext_auth также игнорируется
# для этих сетей. Обычно здесь Вы должны прописать ваши серверы IMAP прокси.
#login_trusted_networks =

# Sepace separated list of login access check sockets (e.g. tcpwrap)
# Список сокетов проверок access check, разделенных пробелами (пр. tcpwrap)
#login_access_sockets =

# Show more verbose process titles (in ps). Currently shows user name and
# IP address. Useful for seeing who are actually using the IMAP processes
# (eg. shared mailboxes or if same uid is used for multiple accounts).

# Показывать более подробную информацию в ps. В настоящее время
# показывается имя пользователя и IP-адрес. Полезно видеть кто на самом
# деле использует IMAP процессы (Например, общие почтовые ящики
# или  UID используемые для нескольких учетных записей).
#verbose_proctitle = no

# Should all processes be killed when Dovecot master process shuts down.
# Setting this to "no" means that Dovecot can be upgraded without
# forcing existing client connections to close (although that could also be
# a problem if the upgrade is e.g. because of a security fix).

# Должны ли быть уничтожены все процессы, когда Dovecot master процесс завершается.
# Установка в  "no" означает что Dovecot может быть обновлен без
# принуждения закрытия существующих клиентских соединений (хотя это также может быть
# проблемой, если устанавливается обновление, например, для исправления безопасности).
#shutdown_clients = yes

# If non-zero, run mail commands via this many connections to doveadm server,
# instead of running them directly in the same process.

# Если не 0, запускать команды через многие соединения с сервером doveadm,,
# вместо того, чтобы запускать их прямо в том же процессе.
#doveadm_worker_count = 0

# UNIX socket or host:port used for connecting to doveadm server
# UNIX сокет или host:port  используемый для подключения к серверу doveadm
#doveadm_socket_path = doveadm-server

# Space separated list of environment variables that are preserved on Dovecot
# startup and passed down to all of its child processes. You can also give
# key=value pairs to always set specific settings.

# Список переменных окружения, разделенных пробелами, которые задаются в dovecot
# при старте и передаются всем его дочерним процессам. Вы также можете дать
# ключ=значение  пары для установки постоянных специфичных значений.
#import_environment = TZ

##
## Dictionary server settings
## Настройки сервера словарей
##

# Dictionary can be used to store key=value lists. This is used by several
# plugins. The dictionary can be accessed either directly or though a
# dictionary server. The following dict block maps dictionary names to URIs
# when the server is used. These can then be referenced using URIs in format
# "proxy::<name>".

# Dictionary (словари) используются для хранения списка ключ = значение.
# Это используется некоторыми плагинами. Доступ к Dictionary можно
# получить либо непосредственно, либо через  сервер Dictionary.
# При использовании сервера, для доступа к картам используются
#  URI, в формате
# "proxy::<name>".
dict {
 #quota = mysql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext
 #expire = sqlite:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext
}


# Most of the actual configuration gets included below. The filenames are
# first sorted by their ASCII value and parsed in that order. The 00-prefixes
# in filenames are intended to make it easier to understand the ordering.

# Большая часть конфигурации указывается подключением файлов *.conf.
# Имена файлов сначала сортируется по их ASCII значениям и
# обрабатывается в таком порядке. 00-префикс в имени файла
# предназначен, для простого понимания порядка обработки файлов.
!include conf.d/*.conf

# A config file can also tried to be included without giving an error if
# it's not found:

# Конфигурационный файл может быть включен, не выдавая ошибку,
# при его отсутствии:
!include_try local.conf



dovecot-sql.conf.ext

# This file is opened as root, so it should be owned by root and mode 0600.
# Этот файл открывается от имени root, значит он должен находиться
# в собственности root с правами 0600.
#
# http://wiki2.dovecot.org/AuthDatabase/SQL
#
# For the sql passdb module, you'll need a database with a table that
# contains fields for at least the username and password. If you want to
# use the user@domain syntax, you might want to have a separate domain
# field as well.

# Для sql passdb модуля, Вам необходимо иметь базу данных с таблицей,
# которая содержит, по крайней мере поля с именем пользователя и паролем.
# Если вы хотите использовать  синтаксис пользователь@домен, вы можете
# иметь для домена отдельное поле.
#
# If your users all have the same uig/gid, and have predictable home
# directories, you can use the static userdb module to generate the home
# dir based on the username and domain. In this case, you won't need fields
# for home, uid, or gid in the database.

# Если ваши пользователи используют одинаковые uig/gid, и имеют
# предсказуемые домашние каталоги, вы можете использовать статический
# модуль userdb, чтобы получать домашний каталог пользователя на основе
# его имени и домена. В этом случае у вас не будет необходимости в полях
# home, uid, или gid в базе данных.
#
# If you prefer to use the sql userdb module, you'll want to add fields
# for home, uid, and gid. Here is an example table:

# Если вы предпочитаете использовать модуль sql userdb, вам требуется
# добавить поля для home, uid, и gid. Пример таблицы:
#
# CREATE TABLE users (
#     username VARCHAR(128) NOT NULL,
#     domain VARCHAR(128) NOT NULL,
#     password VARCHAR(64) NOT NULL,
#     home VARCHAR(255) NOT NULL,
#     uid INTEGER NOT NULL,
#     gid INTEGER NOT NULL,
#     active CHAR(1) DEFAULT 'Y' NOT NULL
# );
# Database driver: mysql, pgsql, sqlite
#driver =

# Database connection string. This is driver-specific setting.
# Строка подключения к базе данных. Это driver-специфичная настройка.

# HA / round-robin load-balancing is supported by giving multiple host
# settings, like: host=sql1.host.org host=sql2.host.org

# Высокая доступность / round-robin балансировка нагрузки поддерживается
# установкой нескольких хостов,
# например: хост = host=sql1.host.org host=sql2.host.org

# pgsql:
#   For available options, see the PostgreSQL documention for the
#   PQconnectdb function of libpq.
#   Use maxconns=n (default 5) to change how many connections Dovecot can
#   create to pgsql.

#   Список возможных опций, см. документацию к PostgreSQL для функции
#   PQconnectdb из libpq. Используйте maxconns=n (по умолчанию 5) для
#   изменения максимального количества устанавливаемых Dovecot
#   соединений к PgSQL.
#
# mysql:
#   Basic options emulate PostgreSQL option names:
#     host, port, user, password, dbname

#   Основные параметры поддерживаемые PostgreSQL:
#     host, port, user, password, dbname
#
#   But also adds some new settings:
#     client_flags        - See MySQL manual
#     ssl_ca, ssl_ca_path - Set either one or both to enable SSL
#     ssl_cert, ssl_key   - For sending client-side certificates to server
#     ssl_cipher          - Set minimum allowed cipher security (default: HIGH)
#     option_file         - Read options from the given file instead of
#                           the default my.cnf location
#     option_group        - Read options from the given group (default: client)

#   Но также добавлены некоторые новые настройки:
#     client_flags        - См. Руководство MySQL
#     ssl_ca, ssl_ca_path - Установите один или оба для включения SSL
#     ssl_cert, ssl_key   - Для отправки клиентских сертификатов серверу
#     ssl_cipher          - Установить минимально допустимый уровень
#                           безопасности (по умолчанию: HIGH)
#     option_file         - Читать параметры из указанного файла вместо
#                           местоположения по умолчанию my.cnf
#     option_group        - Читать параметры из данной группы (по умолчанию: клиент)
#
#   You can connect to UNIX sockets by using host: host=/var/run/mysql.sock
#   Note that currently you can't use spaces in parameters.

#   Вы можете подключитаться к UNIX сокетам используя host: host=/var/run/mysql.sock
#   Обратите внимание, что в настоящее время вы не можете использовать
#   пробелы в параметрах.

# sqlite:
#   The path to the database file.
#   Путь к файлу базы данных.
#
# Examples:
# Примеры:
#   connect = host=192.168.1.1 dbname=users
#   connect = host=sql.example.com dbname=virtual user=virtual password=blarg
#   connect = /etc/dovecot/authdb.sqlite
#
#connect =

# Default password scheme.
# Схема (тип) паролей по умолчанию.
#
# List of supported schemes is in  
# Список поддерживаемых схем по адресу
# http://wiki2.dovecot.org/Authentication/PasswordSchemes
#
[color=red]#default_pass_scheme = MD5


# passdb query to retrieve the password. It can return fields:
#   password - The user's password. This field must be returned.
#   user - user@domain from the database. Needed with case-insensitive lookups.
#   username and domain - An alternative way to represent the "user" field.  

# Запрос к passdb для получения пароля.  Из базы данных он может вернуть поля:
#   password - пароль пользователя. Это поле обязательно должно быть возвращено.
#   user — пользователь@домен. Необходим поиск без учета регистра.
#   username и domain - альтернативный способ представления поля "user".
#
# The "user" field is often necessary with case-insensitive lookups to avoid
# e.g. "name" and "nAme" logins creating two different mail directories. If
# your user and domain names are in separate fields, you can return "username"
# and "domain" fields instead of "user".  

# Поле"user" обычно необходимо искать без учета регистра, чтобы
# избежать ситуаций создания двух разных почтовых каталогов для логинов,
# "name" и "nAme". Если ваши пользователи и доменные имена находятся
# в отдельных полях таблицы, вы можете вернуть "username" " и "domain"
# вместо "user".
#
# The query can also return other fields which have a special meaning, see
# Запрос также может возвращать другие поля, которые имеют особое значение, см.
# http://wiki2.dovecot.org/PasswordDatabase/ExtraFields
#
[color=green]# Commonly used available substitutions (see http://wiki2.dovecot.org/Variables
# for full list):
#   %u = entire user@domain
#   %n = user part of user@domain
#   %d = domain part of user@domain  

# Можно использовать замены (см. полный список http://wiki2.dovecot.org/Variables):
#   %u = полностью пользователь@домен
#   %n = пользовательская часть от пользователь@домен
#   %d = доменная часть от пользователь@домен
#
# Note that these can be used only as input to SQL query. If the query outputs
# any of these substitutions, they're not touched. Otherwise it would be
# difficult to have eg. usernames containing '%' characters.  

# Обратите внимание, что это может быть использовано только в качестве
# исходных данных для SQL запросов. Если результат запроса выводит любую из этих
# комбинаций, они не будут преобразованы. Иначе было бы трудно иметь,
# например, имена пользователей, содержащие символы '%'.
#
# Example:
# Пример:
# password_query = SELECT userid AS user, pw AS password \
#   FROM users WHERE userid = '%u' AND active = 'Y'
#
# password_query = \
#  SELECT username, domain, password \
#  FROM users WHERE username = '%n' AND domain = '%d'

# userdb query to retrieve the user information. It can return fields:
# userdb query запрос для получения информации о пользователях.
# Он может возвращать поля:
#   uid - System UID (overrides mail_uid setting)
#   uid - Системный UID (переопределяет настройку mail_uid)
#   gid - System GID (overrides mail_gid setting)
#   gid - System GID (переопределяет настройку mail_gid)
#   home - Home directory
#   home - домашняя директория
#   mail - Mail location (overrides mail_location setting)
#   mail - Mail location (переопределяет настройку mail_location)

# None of these are strictly required. If you use a single UID and GID, and
# home or mail directory fits to a template string, you could use userdb static
# instead. For a list of all fields that can be returned, see
# http://wiki2.dovecot.org/UserDatabase/ExtraFields  

# Ни один из них не является строго необходимым. Если вы используете один
# UID и GID, а домашний или почтовый каталог можно получить по шаблону,
# вы можете использовать статическую UserDB. Узнать список всех
# полей, которые могут быть получены, см.
# http://wiki2.dovecot.org/UserDatabase/ExtraFields

# Examples:  
# Примеры:
#   user_query = SELECT home, uid, gid FROM users WHERE userid = '%u'
#   user_query = SELECT dir AS home, user AS uid, group AS gid FROM users where userid = '%u'
#   user_query = SELECT home, 501 AS uid, 501 AS gid FROM users WHERE userid = '%u'

#user_query = \
#  SELECT home, uid, gid \
#  FROM users WHERE username = '%n' AND domain = '%d'


# If you wish to avoid two SQL lookups (passdb + userdb), you can use
# userdb prefetch instead of userdb sql in dovecot.conf. In that case you'll
# also have to return userdb fields in password_query prefixed with "userdb_"
# string. For example:  

# Если вы хотите избежать двух SQL запросов (PassDB + UserDB ), вы можете
# использовать предварительную выборку с UserDB  в dovecot.conf.
# В этом случае вы также должны вернуть поля UserDB  в password_query.
# Например:
#password_query = \
#  SELECT userid AS user, password, \
#    home AS userdb_home, uid AS userdb_uid, gid AS userdb_gid \
#  FROM users WHERE userid = '%u'


# Query to get a list of all usernames.
# Запрос выводящий список всех пользователей.
#iterate_query = SELECT username AS user FROM users



auth-master.conf.ext

# Authentication for master users. Included from auth.conf.
# Аутентификация мастер-пользователей. Включается в auth.conf.

# By adding master=yes setting inside a passdb you make the passdb a list
# of "master users", who can log in as anyone else.

# Ээээ.. смысл такой: При добавлении признака master в вашей базе пользователей
# получаем список "master users", которые могут входить в систему как некто другой.
# <doc/wiki/Authentication.MasterUsers.txt>

# Example master user passdb using passwd-file. You can use any passdb though.
# Пример базы master user простым passwd-файлом.
# Вы можете использовать любую passdb.
passdb {
 driver = passwd-file
 master = yes
 args = /etc/dovecot/master-users


 # Unless you're using PAM, you probably still want the destination user to
 # be looked up from passdb that it really exists. pass=yes does that.

 # Если вы используете PAM, вы, вероятно, захотите подключаться к
 # реально существующим пользователям.  pass=yes реализует это.
 # (имеется ввиду, что не фокус подключиться к пользователю, который тут же для вас
 # создастся :), см параметр autocreate)
 pass = yes
}





10-auth.conf


##
## Authentication processes
## Процесс аутентификации
##

# Disable LOGIN command and all other plaintext authentications unless
# SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
# matches the local IP (ie. you're connecting from the same computer), the
# connection is considered secure and plaintext authentication is allowed.

# Запретить команду  LOGIN  и все другие plaintext  аутентификации, если
# не используется SSL/TLS. Обратите внимание, что если удаленный IP
# соответствует локальным IP (т.е. вы подключаетесь с этого же компьютера),
# подключение считается безопасным и аутентификация открытым текстом допускается.
# (Еще в исключения то, что прописано login_trusted_networks в dovecot.conf)
#disable_plaintext_auth = yes

# Authentication cache size (e.g. 10M). 0 means it's disabled. Note that
# bsdauth, PAM and vpopmail require cache_key to be set for caching to be used.

# Размер кэша аутентификации (пр. 10M). 0 означает что он выключен.
# Обратите внимание, что bsdauth, PAM и vpopmail еще
# требуют установки cache_key для использования кэша
#auth_cache_size = 0

# Time to live for cached data. After TTL expires the cached record is no
# longer used, *except* if the main database lookup returns internal failure.
# We also try to handle password changes automatically: If user's previous
# authentication was successful, but this one wasn't, the cache isn't used.
# For now this works only with plaintext authentication.

# Время жизни кэшированных данных. После истечения  TTL кэшированные
# записи не используются, *за исключением* когда поиск в основной базе
# данных дает сбой. Мы также стараемся обрабатывать изменения пароля
# автоматически: если предидущая аутентификация пользователя была
# успешной а эта нет, то кэш не используется.
# На данный момент это работает только с plaintext аутентификацией.
#auth_cache_ttl = 1 hour

# TTL for negative hits (user not found, password mismatch).
# 0 disables caching them completely.

# TTL отрицательных ответов (пользователь не найден, пароль не совпал).
# 0 отключает это кэширование  полностью.
#auth_cache_negative_ttl = 1 hour

# Space separated list of realms for SASL authentication mechanisms that need
# them. You can leave it empty if you don't want to support multiple realms.
# Many clients simply use the first one listed here, so keep the default realm
# first.

# Список разделенный пробелами областей SASL механизмов аутентификации.
# Вы можете оставить его пустым, если не хотите поддерживать несколько областей.
# Многие клиенты просто используют первый указанный здесь, так что держите
# область по умолчанию первой.
#auth_realms =

# Default realm/domain to use if none was specified. This is used for both
# SASL realms and appending @domain to username in plaintext logins.

# Область / домен по умолчанию, используется если ни один не был указан.
# Это используется как для SASL области и добавляет @ домен к имени
# пользователя при plaintext логине.
#auth_default_realm =

# List of allowed characters in username. If the user-given username contains
# a character not listed in here, the login automatically fails. This is just
# an extra check to make sure user can't exploit any potential quote escaping
# vulnerabilities with SQL/LDAP databases. If you want to allow all characters,
# set this value to empty.

# Список допустимых символов в имени пользователя. Если полученное  имя
# пользователя  содержит символы не перечисленные здесь, вход отклоняется.
# Это просто дополнительная проверка, чтобы убедиться, что пользователь
# не может использовать любые потенциально опасные символы при работе с
# SQL / LDAP базами данных. Если вы хотите разрешить все символы,
# оставьте значение пустым.
#auth_username_chars =
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@


# Username character translations before it's looked up from databases. The
# value contains series of from -> to characters. For example "#@/@" means
# that '#' and '/' characters are translated to '@'.

# Преобразования символов имени пользователя перед поиском в базе данных.
# Значение содержит пары символов из -> в. Например, "#@/@" означает
# что '#' и '/' символы переводятся в "@".
#auth_username_translation =

# Username formatting before it's looked up from databases. You can use
# the standard variables here, eg. %Lu would lowercase the username, %n would
# drop away the domain if it was given, or "%n-AT-%d" would change the '@' into
# "-AT-". This translation is done after auth_username_translation changes.

# Форматирование имени пользователя , перед поиском в базе данных. Вы можете
# использовать здесь стандартные переменные например %Lu преобразует в
# нижний регистр имя пользователя, %n отбросит доменную часть, если она
# была получена, или "%n-AT-%d" заменит "@" на "-AT-".
# Эти изменения делаются  после auth_username_translation
#auth_username_format = %Lu

# If you want to allow master users to log in by specifying the master
# username within the normal username string (ie. not using SASL mechanism's
# support for it), you can specify the separator character here. The format
# is then <username><separator><master username>. UW-IMAP uses "*" as the
# separator, so that could be a good choice.

# Если нужно разрешить вход главным пользователям (master users) по
# специфическому имени пользователя (master username) (т.е. не используя
# поддержку SASL для этого) то вы можете определить здесь символ радлелитель.
# Формат  <username> <Separator> <Master username>. UW-IMAP использует "*"
# в качестве разделителя, что может быть хорошим выбором.
#auth_master_user_separator = *

# Username to use for users logging in with ANONYMOUS SASL mechanism
# Имя пользователя для входа в систему с помощью механизма
# ANONYMOUS SASL
#auth_anonymous_username = anonymous

# Maximum number of dovecot-auth worker processes. They're used to execute
# blocking passdb and userdb queries (eg. MySQL and PAM). They're
# automatically created and destroyed as needed.

# Максимальное количество рабочих процессов dovecot-auth. Они используются
# для выполнения passdb и UserDB запросов (например, MySQL и PAM).
# Они автоматически создается и завершаются по мере необходимости.
#auth_worker_max_count = 30

# Host name to use in GSSAPI principal names. The default is to use the
# name returned by gethostname(). Use "$ALL" (with quotes) to allow all keytab
# entries.

# Имя хоста для использования в GSSAPI principal names. По умолчанию
# используется имя, возвращенное GetHostName ().
# Используйте "$ALL" (в кавычках), чтобы использовать все keytab записи
#auth_gssapi_hostname =

# Kerberos keytab to use for the GSSAPI mechanism. Will use the system
# default (usually /etc/krb5.keytab) if not specified. You may need to change
# the auth service to run as root to be able to read this file.

# Kerberos keytab при использовании механизма GSSAPI. Будет использоваться
# значение по умолчанию (обычно / etc/krb5.keytab), если не указано.
# Возможно, вам придется запускають службу от  root  чтобы иметь
# возможность читать этот файл.
#auth_krb5_keytab =

# Do NTLM and GSS-SPNEGO authentication using Samba's winbind daemon and
# ntlm_auth helper. <doc/wiki/Authentication/Mechanisms/Winbind.txt>

# Использовать NTLM и GSS-SPNEGO аутентификацию через Samba's winbind
# daemon и ntlm_auth helper. <doc/wiki/Authentication/Mechanisms/Winbind.txt>
#auth_use_winbind = no

# Path for Samba's ntlm_auth helper binary.
# Путь к бинарнику Samba's ntlm_auth helper.
#auth_winbind_helper_path = /usr/bin/ntlm_auth

# Time to delay before replying to failed authentications.
# Время задержки перед ответом о неудачной аутентификации.
#auth_failure_delay = 2 secs

# Require a valid SSL client certificate or the authentication fails.
# Требовать действительный сертификат SSL клиента для успешной  
# проверки подлинности.
#auth_ssl_require_client_cert = no

# Take the username from client's SSL certificate, using
# X509_NAME_get_text_by_NID() which returns the subject's DN's
# CommonName.

# Брать имя пользователя из SSL сертификата клиента, используя
# X509_NAME_get_text_by_NID (), которая возвращает значение CommonName.
#auth_ssl_username_from_cert = no

# Space separated list of wanted authentication mechanisms:
#   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey
#   gss-spnego
# NOTE: See also disable_plaintext_auth setting.

# Список используемых механизмов аутентификации через пробел:
#   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp skey
#   gss-spnego
# ПРИМЕЧАНИЕ: См. также настройки disable_plaintext_auth.
auth_mechanisms = plain

##
## Password and user databases
## База даныых паролей и пользователей

# Password database is used to verify user's password (and nothing more).
# You can have multiple passdbs and userdbs. This is useful if you want to
# allow both system users (/etc/passwd) and virtual users to login without
# duplicating the system users into virtual database.

# Базы данных паролей используется для проверки пароля пользователя
# (и ничего больше). Вы можете иметь несколько passdbs и userdbs.
# Это полезно, если вы хотите дать возможность обеим, как пользователям
# системы (/etc/passwd) так и виртуальным пользователям
# входить без дублирования пользователей системы в виртуальную базу данных.
# <doc/wiki/PasswordDatabase.txt>
#
# User database specifies where mails are located and what user/group IDs
# own them. For single-UID configuration use "static" userdb.

# В пользовательской базе определяется где хранится почта и UID/GID её владельца.
# Для single-UID (доступ к всем ящикам от одного UID) используется "static".
#
# <doc/wiki/UserDatabase.txt>

#!include auth-deny.conf.ext
#!include auth-master.conf.ext

!include auth-system.conf.ext
#!include auth-sql.conf.ext
#!include auth-ldap.conf.ext
#!include auth-passwdfile.conf.ext
#!include auth-checkpassword.conf.ext
#!include auth-vpopmail.conf.ext
#!include auth-static.conf.ext




10-director.conf

##
## Director-specific settings.
## Настройки перенаправления.
##

# Director can be used by Dovecot proxy to keep a temporary user -> mail server
# mapping. As long as user has simultaneous connections, the user is always
# redirected to the same server. Each proxy server is running its own director
# process, and the directors are communicating the state to each others.
# Directors are mainly useful with NFS-like setups.

# Перенаправитель (редиректор) может использоваться Dovecot прокси сервером,
# для сохранения отображения пользователь -> Почтовый сервер.
# Все пользовательские соединения, всегда перенаправляются на один
# и тот же сервер. Каждый прокси-сервер работает под
# управлением своего процесса редиректора, который обменивается информацией
# с другими редиректорами. Редиректоры в основном полезны в NFS-подобных установках.

# List of IPs or hostnames to all director servers, including ourself.
# Ports can be specified as ip:port. The default port is the same as
# what director service's inet_listener is using.

# Список IP-адресов или имен хостов всех редиректор серверов, свой в том числе.
# Порты могут быть указаны ip:port. Порт по умолчанию такой же, который
# используется службой редиректора  inet_listener
#director_servers =

# List of IPs or hostnames to all backend mail servers. Ranges are allowed
# too, like 10.0.0.10-10.0.0.30.

# Список IP-адресов или имен хостов для всех backend почтовых серверов.
# Диапазоны тоже разрешены, таким образом 10.0.0.10-10.0.0.30.
#director_mail_servers =

# How long to redirect users to a specific server after it no longer has
# any connections.

# Как долго, перенаправлять пользователей на определенный сервер после того,
# как от него больше нет никаких соединений.
#director_user_expire = 15 min

# TCP/IP port that accepts doveadm connections (instead of director connections)
# If you enable this, you'll also need to add inet_listener for the port.

# TCP/IP порт для соединений  doveadm (помимо соединений редиректора)
# Если вы включите это, вам также необходимо добавить inet_listener для порта.
#director_doveadm_port = 0

# To enable director service, uncomment the modes and assign a port.
# Для включения службы  редиректора, раскомментируйте mode и назначьте порт.
service director {
 unix_listener login/director {
   #mode = 0666
 }
 fifo_listener login/proxy-notify {
   #mode = 0666
 }
 unix_listener director-userdb {
   #mode = 0600
 }
 inet_listener {
   #port =
 }
}


# Enable director for the wanted login services by telling them to
# connect to director socket instead of the default login socket:

# не осилил, похоже директор сам будет посредником в аутентификации, вместо
# редиректа на рабочий сервер

service imap-login {
 #executable = imap-login director
}
service pop3-login {
 #executable = pop3-login director
}  


# Enable director for LMTP proxying:
# Включить редиректор для проксирования LMTP:
protocol lmtp {
 #auth_socket_path = director-userdb



10-logging.conf

##
## Log destination.
## Логгирование
##

# Log file to use for error messages. "syslog" logs to syslog,
# /dev/stderr logs to stderr.

# Лог файл для ошибок. "syslog" пишет в  syslog,
# /dev/stderr пишет на stderr
#log_path = syslog

# Log file to use for informational messages. Defaults to log_path.
# Лог файл для информационных сообщений.
#info_log_path =

# Log file to use for debug messages. Defaults to info_log_path.
# Лог файл для отладочных сообщений. По умолчанию log_path.
#debug_log_path =

# Syslog facility to use if you're logging to syslog. Usually if you don't
# want to use "mail", you'll use local0..local7. Also other standard
# facilities are supported.

# Объект (журнал) syslog-а  если Вы логгируете через syslog. Обычно, если вы не
# хотите использовать "mail", вы будете использовать local0..local7.
# Также поддерживаются другие стандартные объекты (журналы).
#syslog_facility = mail

##
## Logging verbosity and debugging.
## Уровни протоколирования (логгирования) и отладки
##

# Log unsuccessful authentication attempts and the reasons why they failed.
# Логировать неудачные попытоки аутентификации и причины неудачи.
#auth_verbose = no

# In case of password mismatches, log the attempted password. Valid values are
# no, plain and sha1. sha1 can be useful for detecting brute force password
# attempts vs. user simply trying the same password over and over again.

# В случае несовпадения пароля, логгировать полученный пароль. Допустимые значения:
# no, plain and sha1. sha1 может быть полезен для обнаружения атак подбора пароля
# (brute force) или пользователь просто использует один и  тот же пароль снова и снова.
#auth_verbose_passwords = no

# Even more verbose logging for debugging purposes. Shows for example SQL
# queries.

# Еще более подробное логгирование для отладки. Показывать, например,
# SQL запросы.
#auth_debug = no

# In case of password mismatches, log the passwords and used scheme so the
# problem can be debugged. Enabling this also enables auth_debug.

# В случае несовпадения пароля, логгировать пароль и используемую схему чтобы
# проблему можно  было отладить. Включение этого также включает auth_debug.
#auth_debug_passwords = no

# Enable mail process debugging. This can help you figure out why Dovecot
# isn't finding your mails.

# Включить отладку почтовой обработки. Это поможет вам понять, почему Dovecot
# не находит ваши письма.
#mail_debug = no

# Show protocol level SSL errors.
# Показать ошибки уровня протокола SSL.
#verbose_ssl = no

# mail_log plugin provides more event logging for mail processes.
# Mail_log плагин показывающий еще больше событий почтовой доставки.
plugin {
 # Events to log. Also available: flag_change append
 # События входа. Также доступен: flag_change
 #mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
 
 # Available fields: uid, box, msgid, from, subject, size, vsize, flags
 # size and vsize are available only for expunge and copy events.

 # Доступные поля: uid, box, msgid, from, subject, size, vsize, flags
 # size и vsize доступны только для событий очистка и копировать.
 # mail_log_fields = uid box msgid size
}  


##
## Log formatting.
## Формат логгирования
##

# Prefix for each line written to log file. % codes are in strftime(3)
# format.

# Префикс для каждой строки записываемой в лог-файл. % коды в STRFTIME (3)
# формате.
#log_timestamp = "%b %d %H:%M:%S "

# Space-separated list of elements we want to log. The elements which have
# a non-empty variable value are joined together to form a comma-separated
# string.  

# Список элементов, разделенный пробелам которые хотим логгировать.
# Элементы, которые имеют непустое значение соединяются вместе,
# чтобы сформировать строку.
#login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c  

# Login log format. %$ contains login_log_format_elements string, %s contains
# the data we want to log.  

# Формат журнала login. % $ содержит Login_log_format_elements строку,
# % S содержит данные, которые мы хотим логгировать.
#login_log_format = %$: %s  

# Log prefix for mail processes. See doc/wiki/Variables.txt for list of
# possible variables you can use.  

# Префикс логгирования для почтовых процессов. См. д doc/wiki/Variables.txt
# для поиска переменных, которые вы можете использовать.
#mail_log_prefix = "%s(%u): "  

# Format to use for logging mail deliveries. You can use variables:  
# Формат используемый для логгирования почтовой доставки.
# Вы можете использовать переменные:
#  %$ - Delivery status message (e.g. "saved to INBOX")
#       Статус доставки сообщения ( к примеру сохнанено в INBOX )
#  %m — Message-ID  ID сообщения
#  %s — Subject  Тема
#  %f - From address  адрес от
#  %p - Physical size  реальный размер
#  %w - Virtual size  виртуальный размер
#deliver_log_format = msgid=%m: %$  



10-mail.conf

##
## Mailbox locations and namespaces
## Местоположение почтовых ящиков и namespaces (пространств имен)
##

# Location for users' mailboxes. The default is empty, which means that Dovecot
# tries to find the mailboxes automatically. This won't work if the user
# doesn't yet have any mail, so you should explicitly tell Dovecot the full
# location.

# Местоположение  почтовых ящиков пользователей. По умолчанию пусто,
# это означает, что Dovecot пытается найти почтовые ящики автоматически.
# Это не будет работать, если пользователь еще не получал почты, поэтому
# вы должны явно указать Dovecot полное местоположение.

# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
# isn't enough. You'll also need to tell Dovecot where the other mailboxes are
# kept. This is called the "root mail directory", and it must be the first
# path given in the mail_location setting.

# Если вы используете mbox, указать путь к файлу INBOX (например,
# /var/mail/%u) недостаточно. Вы также должны указать Dovecot где
# хранятся другие почтовые ящики. Это называется "корневой каталог почты",
#  и он должен быть первым в пути, указанном в mail_location.
#
# There are a few special variables you can use, eg.:
# Есть несколько специальных переменных, которые можно использовать, например.:
#
#   %u — username
#   %u — имя_пользователя
#   %n - user part in user@domain, same as %u if there's no domain
#   %n — имя_пользователя в user@domain, так же как %u если нет домена
#   %d - domain part in user@domain, empty if there's no domain
#   %d — доменная часть в user@domain, пусто если нет домена
#   %h - home directory
#   %h — домашняя директория
#
# See doc/wiki/Variables.txt for full list. Some examples:
# смотри полный список doc/wiki/Variables.txt. Несколько примеров:
#
#   mail_location = maildir:~/Maildir
#   mail_location = mbox:~/mail:INBOX=/var/mail/%u
#   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
#
# <doc/wiki/MailLocation.txt>
#
#mail_location =

# If you need to set multiple mailbox locations or want to change default
# namespace settings, you can do it by defining namespace sections.

# Если вам нужно установить несколько расположений почтовых ящиков,
# или хотите изменить настройки по умолчанию пространства имен (namespaces ) вы можете
# сделать это путем определения разделов (секций)  пространства имен (namespaces ).

# You can have private, shared and public namespaces. Private namespaces
# are for user's personal mails. Shared namespaces are for accessing other
# users' mailboxes that have been shared. Public namespaces are for shared
# mailboxes that are managed by sysadmin. If you create any shared or public
# namespaces you'll typically want to enable ACL plugin also, otherwise all
# users can access all the shared mailboxes, assuming they have permissions
# on filesystem level to do so.

# Вы можете иметь частные(private), общие(shared) и общественные(public)
# пространства имен (namespaces). Private namespaces предназначено для
# личной почты пользователя. Shared namespaces для доступа к другим
# почтовым ящикам пользователей, которые стали общими(были расшарены).
# Public namespaces для  расшареных почтовых ящиков, которые находятся
# в введении системного администратора. Если вы создаете любые из shared
# или  public namespaces , вам обычно также требуется включить ACL плагин,
# в противном случае все пользователи могут получить доступ  во все общие
# почтовые ящики, предполагается, что у них есть разрешения на уровне
# файловой системы, чтобы это сделать.

# REMEMBER: If you add any namespaces, the default namespace must be added
# explicitly, ie. mail_location does nothing unless you have a namespace
# without a location setting. Default namespace is simply done by having a
# namespace with empty prefix.

# Помните: если вы добавите любое namespaces,  namespaces  по умолчанию
# должно быть также явно добавлено, …....
# namespace по умолчанию работает как namespace с пустым prefix-ом
#namespace {
 # Namespace type: private, shared or public
 #type = private


 # Hierarchy separator to use. You should use the same separator for all
 # namespaces or some clients get confused. '/' is usually a good one.
 # The default however depends on the underlying mail storage format.

 # Используемый разделитель. Вы должны использовать один и тот же разделитель для всех
 # namespaces или некоторые клиенты запутаются. '/', Как правило, хороший выбор.
 # По умолчанию, зависит от основного формата хранения почты.
 #separator =

 # Prefix required to access this namespace. This needs to be different for
 # all namespaces. For example "Public/".

 # Префикс используемый для доступа к этому namespace. Он должен быть различным
 # для разных namespace. Например, "Public /".
 #prefix =

 # Physical location of the mailbox. This is in same format as
 # mail_location, which is also the default for it.

 # Физическое местоположение почтовых ящиков (каталогов). По умолчанию формат
 # (ящиков (каталогов))такой же как у mail_location
 #location =

 # There can be only one INBOX, and this setting defines which namespace
 # has it.

 # Может быть только один INBOX, и этот параметр определяет, какое
 # namespace его имеет.
 #inbox = no

 # If namespace is hidden, it's not advertised to clients via NAMESPACE
 # extension. You'll most likely also want to set list=no. This is mostly
 # useful when converting from another server with different namespaces which
 # you want to deprecate but still keep working. For example you can create
 # hidden namespaces with prefixes "~/mail/", "~%u/mail/" and "mail/".

 # Если namespace скрытое, это не афишируется клиентам через  NAMESPACE
 # расширения. Скорее всего, Вам потребуется  также установить list=no.
 # Это в основном полезно при переходе с другого сервера, от которого
 # вы хотите отказаться, но с ним еще продолжают работать.
 # Например, вы можете создать скрытое пространство имен с префиксом
 #  "~/mail/", "~%u/mail/" and "mail/".
 #hidden = no

 # Show the mailboxes under this namespace with LIST command. This makes the
 # namespace visible for clients that don't support NAMESPACE extension.
 # "children" value lists child mailboxes, but hides the namespace prefix.

 # Показать почтовые ящики в этом namespace по команде LIST. Это делает
 # namespace видимым для клиентов, которые не поддерживают расширение namespace.
 # "children" показывает дочерние почтовые ящики, но скрывает префикс namespace.
 #list = yes

 # Namespace handles its own subscriptions. If set to "no", the parent
 # namespace handles them (empty prefix should always have this as "yes")

 # Namespace подписывается само. Если установлено значение "Нет", родитель
 # его подписывает (принудительно отображается в списке видимых
 # почтовых каталогов) (пустой префикс всегда подразумевает "да")
 #subscriptions = yes
#}

# Example shared namespace configuration
# Пример shared namespace конфигурации
#namespace {
 #type = shared
 #separator = /


 # Mailboxes are visible under "shared/user@domain/"
 # Почтовые ящики видны как "shared/user@domain/"
 # %%n, %%d and %%u are expanded to the destination user.
 # %%n, %%d and %%u разрешаются в расшарившего пользователя.
 #prefix = shared/%%u/

# Mail location for other users' mailboxes. Note that %variables and ~/
 # expands to the logged in user's data. %%n, %%d, %%u and %%h expand to the
 # destination user's data.

 # Местоположение почтовых ящиков других пользователей.
 # Обратите внимание, что %переменные  и ~/  раскрываются, в залогиневшегося
 # пользователя.  %%n, %%d, %%u и %%h  раскрываются как переменные
 # пользователя расшарившего ресурс.
 #location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u

 # Use the default namespace for saving subscriptions.
 # Используйте namespace по умолчанию для сохранения подписки.
 # (невозможности отписаться, скрыть этот почтовый каталог)
 #subscriptions = no

 # List the shared/ namespace only if there are visible shared mailboxes.
 # Показывать shared/ namespace, только если есть видимые shared почтовые ящики.
 #list = children
#}


# System user and group used to access mails. If you use multiple, userdb
# can override these by returning uid or gid fields. You can use either numbers
# or names. <doc/wiki/UserIds.txt>

# Системные пользователь и группа используюмая для доступа к почте.
# Если вы используете различные, то через UserDB можно переопределить их,
# запрашивая UID или GID. Вы можете использовать номер
# или имя. <doc/wiki/UserIds.txt>
#mail_uid =
#mail_gid =


# Group to enable temporarily for privileged operations. Currently this is
# used only with INBOX when either its initial creation or dotlocking fails.
# Typically this is set to "mail" to give access to /var/mail.

# Группа используемая для привилегированных операций. В настоящее время это
# используется только с INBOX, при  первоначальном создании
# или неудачной dotlocking (блокировке).
# Обычно этот параметр установлен в "mail" для получения  доступа к /var/mail.
#mail_privileged_group =

# Grant access to these supplementary groups for mail processes. Typically
# these are used to set up access to shared mailboxes. Note that it may be
# dangerous to set these if users can create symlinks (e.g. if "mail" group is
# set here, ln -s /var/mail ~/mail/var could allow a user to delete others'
# mailboxes, or ln -s /secret/shared/box ~/mail/mybox would allow reading it).

# Предоставить доступ этим дополнительным группам к почтовому процессу.
# Обычно это используется для настройки доступа к общим почтовым ящикам.
# Обратите внимание, что это может быть опасно, если пользователи могут
# создавать символические ссылки (например, если группа "mail"
# установлена здесь, ln -s /var/mail ~/mail/var может позволить пользователю
# удалять другие почтовые ящики
# или ln -s /secret/shared/box ~/mail/mybox даст к ним доступ).
#mail_access_groups =

# Allow full filesystem access to clients. There's no access checks other than
# what the operating system does for the active UID/GID. It works with both
# maildir and mboxes, allowing you to prefix mailboxes names with eg. /path/
# or ~user/.

# Разрешить полный доступ к файловой системе клиентам. Нет проверок доступа,
# кроме тех, что операционная система делает для активного UID/GID. Это работает с
# maildir и mboxes, разрешаются префиксы имен почтовых ящиков, например,  /path/
# или ~user/.
#mail_full_filesystem_access = no

## Mail processes
## Почтовый процесс
##

# Don't use mmap() at all. This is required if you store indexes to shared
# filesystems (NFS or clustered filesystem).  

# Не используйте mmap() всегда. Это необходимо, если вы храните индексы
# на общей файловой системе (NFS или кластерной файловой системе).
#mmap_disable = no  

# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
# since version 3, so this should be safe to use nowadays by default.  

# Положитесь на O_EXCL при создании dotlock файлов. NFS поддерживает O_EXCL
# начиная с версии 3, так что это должно быть безопасно для использования
# по умолчанию.
#dotlock_use_excl = yes  

# When to use fsync() or fdatasync() calls:
#   optimized (default): Whenever necessary to avoid losing important data
#   always: Useful with e.g. NFS when write()s are delayed
#   never: Never use it (best performance, but crashes can lose data)  

# Когда использовать вызовы fsync() или fdatasync():
#   optimized (оптимально)(по умолчанию): Всякий раз, когда необходимо,
#         избежать потери важных данных
#   always:(всегда) Полезно например, с NFS когда запись идет с задержкой
#   never: Лучше никогда это не использовать (лучше производительность,
#               но сбой может привести к потере данных)
#mail_fsync = optimized  

# Mail storage exists in NFS. Set this to yes to make Dovecot flush NFS caches
# whenever needed. If you're using only a single mail server this isn't needed.  

# Хранение почты на NFS. Установить на yes, чтобы Dovecot flush сбрасывал кэш NFS
# по мере необходимости. Если вы используете только один почтовый сервер, это не нужно.
#mail_nfs_storage = no  

# Mail index files also exist in NFS. Setting this to yes requires  
# Установите в yes если файлы почтовых индексов также на NFS.
# mmap_disable=yes and fsync_disable=no.
#mail_nfs_index = no  

# Locking method for index files. Alternatives are fcntl, flock and dotlock.
# Dotlocking uses some tricks which may create more disk I/O than other locking
# methods. NFS users: flock doesn't work, remember to change mmap_disable.  

# Метод блокировки  индексных файлов. Альтернативы fcntl, flock и dotlock.
# Dotlocking использует некоторые приемы, которые могут создать больше
# дискового ввода/вывода по сравнению с другими методами.
# NFS пользователи: flock не работает, не забудьте изменить mmap_disable.
#lock_method = fcntl  

# Directory in which LDA/LMTP temporarily stores incoming mails >128 kB.  
# Каталог, в котором LDA/LMTP временно хранит входящую почту > 128 Кб.
#mail_temp_dir = /tmp  

# Valid UID range for users, defaults to 500 and above. This is mostly
# to make sure that users can't log in as daemons or other system users.
# Note that denying root logins is hardcoded to dovecot binary and can't
# be done even if first_valid_uid is set to 0.  

# Действительный диапазон UID для пользователей, по умолчанию 500 и выше.
# Это, в основном чтобы убедиться, что пользователи не могут войти как
# демоны или другие системные пользователи.
# Обратите внимание, что отказ от root логина жестко вкомпилирован в  двоичные
# файлы  и не может быть осуществлен, даже если first_valid_uid установлен в 0.
#first_valid_uid = 500
#last_valid_uid = 0  


# Valid GID range for users, defaults to non-root/wheel. Users having
# non-valid GID as primary group ID aren't allowed to log in. If user
# belongs to supplementary groups with non-valid GIDs, those groups are
# not set.  

# Действительный диапазон GID для пользователей, по умолчанию не root/wheel.
# Пользователи, имеющие недействительный GID качестве основного
# идентификатора группы не допускаются для входа. Если пользователь
# относится к дополнительным группам с недействительным GID,
# это не влияет на вход.
#first_valid_gid = 1
#last_valid_gid = 0  


# Maximum allowed length for mail keyword name. It's only forced when trying
# to create new keywords.  

# Максимально допустимая длина ?названий почтовых каталогов?
# Это используется только  при попытке создания новых ?каталогов?.
#mail_max_keyword_length = 50  

# ':' separated list of directories under which chrooting is allowed for mail
# processes (ie. /var/mail will allow chrooting to /var/mail/foo/bar too).
# This setting doesn't affect login_chroot, mail_chroot or auth chroot
# settings. If this setting is empty, "/./" in home dirs are ignored.
# WARNING: Never add directories here which local users can modify, that
# may lead to root exploit. Usually this should be done only if you don't
# allow shell access for users. <doc/wiki/Chrooting.txt>  

# Список каталогов, разделенных ':' которые можно chroot-ить (песочница,
# изоляция)(нельзя подняться выше указанной директории)
# (т.е. /var/mail можно chroot-ить /var/mail/foo/bar тоже).
# Этот параметр не влияет на login_chroot, mail_chroot или auth_chroot
# Если этот параметр пустой, "/./" домашние каталоги игнорируются.
# ВНИМАНИЕ: Никогда не добавляйте сюда каталоги, которые локальные
# пользователи могут изменять, это может привести к повышению прав.
# Обычно это можно делать только, если вы не даете shell доступ
# пользователям. <doc/wiki/Chrooting.txt>
#valid_chroot_dirs =  

# Default chroot directory for mail processes. This can be overridden for
# specific users in user database by giving /./ in user's home directory
# (eg. /home/./user chroots into /home). Note that usually there is no real
# need to do chrooting, Dovecot doesn't allow users to access files outside
# their mail directory anyway. If your home directories are prefixed with
# the chroot directory, append "/." to mail_chroot. <doc/wiki/Chrooting.txt>  

# Chroot (изолированная) директория по умолчанию для почтовых процессов.
# Это может быть переопределено для конкретных пользователей из базы данных
# путем получения /./ в домашнем каталоге пользователя
# (Например, /home/./user изолирован в /home). Обратите внимание,
# что обычно нет реальной нужды chroot-ить, Dovecot в любом случае не позволяет
# пользователям получать доступ к файлам за пределами их почтового каталога.
# Если ваши домашние каталоги имеют префикс с chroot, добавьте "/." в mail_chroot.
# <doc/wiki/Chrooting.txt>
#mail_chroot =  

# UNIX socket path to master authentication server to find users.
# This is used by imap (for shared users) and lda.  

# Путь к UNIX сокету сервера аутентификации, для поиска пользователей.
# Это используется протоколом IMAP (для общих пользователей) и lda.
#auth_socket_path = /var/run/dovecot/auth-userdb  

# Directory where to look up mail plugins.  
# Каталог, где искать почтовые плагины.
#mail_plugin_dir = /usr/lib/dovecot  

# Space separated list of plugins to load for all services. Plugins specific to
# IMAP, LDA, etc. are added to this list in their own .conf files.  

# Список плагинов через пробел, подгружаемых для всех сервисов.
# Плагины специфичные для IMAP, LDA и т. д. будут добавлены в этот список
# через свои собственные .conf файлы.
#mail_plugins =  

##
## Mailbox handling optimizations  
## Оптимизация mailbox
##

# The minimum number of mails in a mailbox before updates are done to cache
# file. This allows optimizing Dovecot's behavior to do less disk writes at
# the cost of more disk reads.  

# Минимальное количество писем в почтовом ящике до обновления кэш файла.
# Это оптимизирует поведение Dovecot, чтобы делать меньше операций
# записи на диск  ценой более частого чтения с диска.
#mail_cache_min_mail_count = 0  

# When IDLE command is running, mailbox is checked once in a while to see if
# there are any new mails or other changes. This setting defines the minimum
# time to wait between those checks. Dovecot can also use dnotify, inotify and
# kqueue to find out immediately when changes occur.  

# Когда команда IDLE работает, почтовый ящик проверяется лишь раз,
# чтобы проверить, есть ли новые сообщения или другие изменения.
# Этот параметр определяет минимальное  время ожидания между этими
# проверками. Dovecot может также использовать dnotify,  inotify и
# kqueue, чтобы узнать немедленно, что произошли  изменения.
# mailbox_idle_check_interval = 30 secs

# Save mails with CR+LF instead of plain LF. This makes sending those mails
# take less CPU, especially with sendfile() syscall with Linux and FreeBSD.
# But it also creates a bit more disk I/O which may just make it slower.
# Also note that if other software reads the mboxes/maildirs, they may handle
# the extra CRs wrong and cause problems.

# Сохранять письма с CR+LF вместо обычного LF. Это делает отправку этих писем
# менее процессороемким, особенно с sendfile() syscall в Linux и FreeBSD.
# Но это также создает несколько больше дискового ввода/вывода,
# который может сделать это медленнее.
# Также отметим, что, если другое программное обеспечение считывает
# mboxes/maildirs, они могут обрабатывать дополнительные  CRs
# неправильно что вызовет проблемы.
#mail_save_crlf = no

# Max number of mails to keep open and prefetch to memory. This only works with
# some mailbox formats and/or operating systems.

# Максимальное количество сообщений остающихся открытыми и подгруженными
# в память. Это работает только с некоторыми mailbox форматами  
# и/или операционными системами.
#mail_prefetch_count = 0

# How often to scan for stale temporary files and delete them (0 = never).
# These should exist only after Dovecot dies in the middle of saving mails.

# Как часто искать старые временные файлы и удалять их (0 = никогда).
# Они должны появляться только если Dovecot умирает в момент сохранения почты.
#mail_temp_scan_interval = 1w

##
## Maildir-specific settings
## Maildir специфичные настройки
##

# By default LIST command returns all entries in maildir beginning with a dot.
# Enabling this option makes Dovecot return only entries which are directories.
# This is done by stat()ing each entry, so it causes more disk I/O.
# (For systems setting struct dirent->d_type, this check is free and it's
# done always regardless of this setting)

# По умолчанию команда LIST возвращает все записи в Maildir, начиная с точки (dot.).
# Включение этой опции заставляет Dovecot возвращать только те записи,
# которые являются каталогами.  Это делается путем stat()ing каждой записи,
# поэтому вызывает больше дискового ввода/вывода.
# (Для систем устанавливающих dirent->d_type, эта проверка является бесплатной
#  и делается всегда независимо от этой настройки)
#maildir_stat_dirs = no

# When copying a message, do it with hard links whenever possible. This makes
# the performance much better, and it's unlikely to have any side effects.

# При копировании сообщений, сделать это  жесткими ссылками всякий раз,
# когда это возможно. Это сильно повышает производительность,
# и вряд ли имеет побочные эффекты.
#maildir_copy_with_hardlinks = yes

# Assume Dovecot is the only MUA accessing Maildir: Scan cur/ directory only
# when its mtime changes unexpectedly or when we can't find the mail otherwise.

# Если Dovecot является единственным MUA с доступом к  Maildir:
# Сканировать cur/ каталог только когда неожиданно меняется его mtime или когда
# мы не можем найти почту.
#maildir_very_dirty_syncs = no

# If enabled, Dovecot doesn't use the S=<size> in the Maildir filenames for
# getting the mail's physical size, except when recalculating Maildir++ quota.
# This can be useful in systems where a lot of the Maildir filenames have a
# broken size. The performance hit for enabling this is very small.

# Если включено, Dovecot не использует S=<size> в названиях почтовых сообщений для
# того чтобы узнать размер сообщения, ?кроме? когда пересчитывается Maildir++ квота.
# Это может быть полезно в системах, где много имен файлов с неверно выставленым
# размером. Падение производительности при включении незначительно.
#maildir_broken_filename_sizes = no

##
## mbox-specific settings
## mbox-специфичные настройки
##

# Which locking methods to use for locking mbox. There are four available:
#  dotlock: Create <mailbox>.lock file. This is the oldest and most NFS-safe
#           solution. If you want to use /var/mail/ like directory, the users
#           will need write access to that directory.
#  dotlock_try: Same as dotlock, but if it fails because of permissions or
#               because there isn't enough disk space, just skip it.
#  fcntl  : Use this if possible. Works with NFS too if lockd is used.
#  flock  : May not exist in all systems. Doesn't work with NFS.
#  lockf  : May not exist in all systems. Doesn't work with NFS.

# Какой метод использовать для блокировки mbox. Доступны четыре:
#  dotlock: Создается <mailbox>.lock file. Это самый старый и самый
#           NFS-безопасный  метод. Если вы хотите использовать каталоги типа
#           /var/mail/, пользователям потребуется доступ на запись в этот каталог.
#  dotlock_try: То же самое dotlock, но если это не удается из-за разрешений или
#           потому, что не хватает места на диске, просто пропускается.
#  fcntl:   Используйте, если это возможно. Работает с NFS, если используется
#           lockd демон.
#  flock:   Может быть не во всех системах. Не работает с NFS.
#  lockf:   Может быть не во всех системах. Не работает с NFS.

# You can use multiple locking methods; if you do the order they're declared
# in is important to avoid deadlocks if other MTAs/MUAs are using multiple
# locking methods as well. Some operating systems don't allow using some of
# them simultaneously.

# Вы можете использовать несколько методов блокировки; если вы так делаете,
# Важно, избежать тупиковых ситуаций, двойной блокировки, если иное MTAs/MUAs
# тоже использует несколько методов. Некоторые операционные системы не позволяют
# использовать несколько методов одновременно.
#mbox_read_locks = fcntl
#mbox_write_locks = dotlock fcntl


# Maximum time to wait for lock (all of them) before aborting.
# Максимальное время ожидания блокировки до отмены.
#mbox_lock_timeout = 5 mins

# If dotlock exists but the mailbox isn't modified in any way, override the
# lock file after this much time.

# Если dotlock существует, но сообщения не изменялись,
# снять блокировку.
#mbox_dotlock_change_timeout = 2 mins

# When mbox changes unexpectedly we have to fully read it to find out what
# changed. If the mbox is large this can take a long time. Since the change
# is usually just a newly appended mail, it'd be faster to simply read the
# new mails. If this setting is enabled, Dovecot does this but still safely
# fallbacks to re-reading the whole mbox file whenever something in mbox isn't
# how it's expected to be. The only real downside to this setting is that if
# some other MUA changes message flags, Dovecot doesn't notice it immediately.
# Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK
# commands.

# Когда mbox именяется неожиданно, мы должны полностью перечитать его весь,
# чтобы узнать, что изменилось. Если mbox большой, это может занять много времени.
# Поскольку изменения это, как правило, только новая почта, то было бы быстрее,
# просто читать новые сообщения. Если этот параметр включен, Dovecot так и
# поступает, но, все еще откатывается к перечитыванию всего файла всякий раз,
# когда что-то в mbox не так как это ожидается. Единственным недостатком этой
# установки является то, что если другие MUA изменяют флаги сообщений, Dovecot
# не сразу это замечает. Обратите внимание, что с помощью команд SELECT,
# EXAMINE, EXPUNGE и CHECK осуществляется  полная синхронизация.
#mbox_dirty_syncs = yes

# Like mbox_dirty_syncs, but don't do full syncs even with SELECT, EXAMINE,
# EXPUNGE or CHECK commands. If this is set, mbox_dirty_syncs is ignored.

# Похоже на mbox_dirty_syncs, но не осуществляется  полная синхронизация
# по командам  SELECT, EXAMINE, EXPUNGE или CHECK. Если установлено
# в «yes »,  mbox_dirty_syncs игнорируется.
#mbox_very_dirty_syncs = no

# Delay writing mbox headers until doing a full write sync (EXPUNGE and CHECK
# commands and when closing the mailbox). This is especially useful for POP3
# where clients often delete all mails. The downside is that our changes
# aren't immediately visible to other MUAs.

# Задержка при записи заголовков mbox до полной синхронизации
# (Команды EXPUNGE и  CHECK  при закрытии почтового ящика).
# Это особенно полезно для POP3, где клиенты часто забирают(удаляют)
# все письма. Недостатком является то, что эти изменения не сразу увидят
# другие MUA.
#mbox_lazy_writes = yes

# If mbox size is smaller than this (e.g. 100k), don't write index files.
# If an index file already exists it's still read, just not updated.

# Если размер mbox меньше, чем этот параметр (например, 100k), не писать
# индексный файл. Если индексный файл уже существует, он все еще читается,
# просто не обновляется.
#mbox_min_index_size = 0

##
## mdbox-specific settings
## mdbox-специфичные настройки
##

# Maximum dbox file size until it's rotated.
# Максимальный размер файла dbox, до ротации.
#mdbox_rotate_size = 2M

# Maximum dbox file age until it's rotated. Typically in days. Day begins
# from midnight, so 1d = today, 2d = yesterday, etc. 0 = check disabled.

# Максимальный возраст, не ротированого dbox файла. Указывается в днях.
# День начинается с полуночи, так 1d = сегодня, 2d = вчера, и т.д.
# 0 = проверка отключена.
#mdbox_rotate_interval = 1d

# When creating new mdbox files, immediately preallocate their size to
# mdbox_rotate_size. This setting currently works only in Linux with some
# filesystems (ext4, xfs).

# При создании новых файлов mdbox, сразу же заранее выделить под них размер
# равный mdbox_rotate_size. Этот параметр в настоящее время работает только
# в Linux с некоторыми файловыми системами (ext4, xfs).
#mdbox_preallocate_space = no

##
## Mail attachments
## Почтовые вложения
##

# sdbox and mdbox support saving mail attachments to external files, which
# also allows single instance storage for them. Other backends don't support
# this for now.

# Sdbox и mdbox поддерживает сохранение вложений электронной почты
# в внешних файлах, также поддерживается хранения одного экземпляра
# вложения для разных писем. Другие движки на данный момент
# это не поддерживают.

# WARNING: This feature hasn't been tested much yet. Use at your own risk.
# ВНИМАНИЕ: Данная функция не была достаточно протестирована.
# Используйте ее на свой страх и риск.

# Directory root where to store mail attachments. Disabled, if empty.
# Папка для хранения почтовых вложений, Отключено, если не указана.
#mail_attachment_dir =

# Attachments smaller than this aren't saved externally. It's also possible to
# write a plugin to disable saving specific attachments externally.

# Вложения меньше этого, не сохраняются отдельно. Также возможно
# написать плагин, для отключения сохранения конкретных вложений
# как внешние файлы.
#mail_attachment_min_size = 128k

# Filesystem backend to use for saving attachments:
# posix : No SiS done by Dovecot (but this might help FS's own deduplication)
# sis posix : SiS with immediate byte-by-byte comparison during saving
# sis-queue posix : SiS with delayed comparison and deduplication

# backend файловой системы, используемый для сохраненения вложений:
# posix :   нет SiS для Dovecot (но это может быть сделано средствами
# дедупликации уровня FS)
# sis posix : SiS с немедленным байт в байт сравнением при сохранении
# sis-queue posix : SiS с задержкой сравнения и дедупликации
#mail_attachment_fs = sis posix

# Hash format to use in attachment filenames. You can add any text and
# variables: %{md4}, %{md5}, %{sha1}, %{sha256}, %{sha512}, %{size}.
# Variables can be truncated, e.g. %{sha256:80} returns only first 80 bits

# Hash формат для именования вложений. Вы можете добавить любой текст и
# переменные:%{md4}, %{md5}, %{sha1}, %{sha256}, %{sha512}, %{size}.
# Переменные могут быть усечены, например, % {sha256: 80} возвращает только
# первые 80 бит.
#mail_attachment_hash = %{sha1}



10-master.conf

#default_process_limit = 100
#default_client_limit = 1000


# Default VSZ (virtual memory size) limit for service processes. This is mainly
# intended to catch and kill processes that leak memory before they eat up
# everything.

# VSZ (размер виртуальной памяти) по умолчанию, предел для сервисных процессов.
# В основном это предназначено, чтобы вычислить и убить процессы, в которых
# происходит утечка памяти, прежде чем они съедят ее всю.
#default_vsz_limit = 256M

# Login user is internally used by login processes. This is the most untrusted
# user in Dovecot system. It shouldn't have access to anything at all.

# Логин пользователя используемый для login процессов . Это самый ненадежный
# Dovecot пользователь. Он не должен иметь доступа вообще ни к чему.
#default_login_user = dovenull

# Internal user is used by unprivileged processes. It should be separate from
# login user, so that login processes can't disturb other processes.

# Внутренний пользователь используемый непривилегированными процессами.
# Должен быть иной чем login user, чтобы login процессы не мешали другим
# процессам Dovrcot
#default_internal_user = dovecot

service imap-login {
 inet_listener imap {
   #port = 143
 }
 inet_listener imaps {
   #port = 993
   #ssl = yes
 }


 # Number of connections to handle before starting a new process. Typically
 # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
 # is faster. <doc/wiki/LoginProcess.txt>

 # Количество обрабатываемых соединений  перед стартом  нового процесса.
 # Обычно полезны только значения 0 (неограничено) или 1.
 # 1 является более безопасным, но 0 быстрее. <doc/wiki/LoginProcess.txt>
 #service_count = 1

 # Number of processes to always keep waiting for more connections.
 # Число процессов, всегда ожидающих соединения.
 #process_min_avail = 0

 # If you set service_count=0, you probably need to grow this.
 # Если  service_count=0, вероятно этот параметр прийдется увеличить.
 #vsz_limit = 64M
}

service pop3-login {
 inet_listener pop3 {
   #port = 110
 }
 inet_listener pop3s {
   #port = 995
   #ssl = yes
 }
}
service lmtp {
 unix_listener lmtp {
   #mode = 0666
 }


 # Create inet listener only if you can't use the above UNIX socket
 # Создавайте сетевую службу только если вы не можете использовать сокет UNIX
 #inet_listener lmtp {
   # Avoid making LMTP visible for the entire internet
   #address =
   #port =
 #}
}

service imap {

 # Most of the memory goes to mmap()ing files. You may need to increase this
 # limit if you have huge mailboxes.

 # Большая часть памяти идет в mmap()ing файлов. Возможно Вы захотите
 # увеличить этот лимит, если у вас есть огромные почтовые ящики.
 #vsz_limit = 256M

 # Max. number of IMAP processes (connections)
 # Макс. количество процессов, IMAP (соединений )
 #process_limit = 1024
}

service pop3 {

 # Max. number of POP3 processes (connections)
 # Макс. количество процессов, POP3 (соединений )
 #process_limit = 1024
}

service auth {

 # auth_socket_path points to this userdb socket by default. It's typically
 # used by dovecot-lda, doveadm, possibly imap process, etc. Its default
 # permissions make it readable only by root, but you may need to relax these
 # permissions. Users that have access to this socket are able to get a list
 # of all usernames and get results of everyone's userdb lookups.

 # auth_socket_path указывает на userdb сокет по умолчанию. Это обычно
 # используется dovecot-lda, doveadm,, возможно, imap процессами и т.д.
 # Разрешения по умолчанию -  доступ для чтения только root, но вам может
 # потребоваться, ослабить эти ограничения. Пользователи, которые имеют
 # доступ к этому сокету имеют возможность получить список всех
 # пользователей и получить результат поиска всех записей в userdb.

 # The default 0666 mode allows anyone to connect to the socket, but the
 # userdb lookups will succeed only if the userdb returns an "uid" field that
 # matches the caller process's UID. Also if caller's uid or gid matches the
 # socket's uid or gid the lookup succeeds. Anything else causes a failure.

 # Права доступа по умолчанию 0666 позволяют любому пользователю
 # подключаться к сокету, но поиск увенчается успехом только в том случае,
 # если возвращаемое поле "uid" совпадает с UID вызывающего процесса.
 # Так же поиск будет успешен если uid или gid совпадает с uid или gid  сокета.
 # Все остальное приводит к неудаче.
 #
 # To give the caller full permissions to lookup all users, set the mode to
 # something else than 0666 and Dovecot lets the kernel enforce the
 # permissions (e.g. 0777 allows everyone full permissions).

 # Чтобы дать вопрошающему полные права для поиска всех пользователей,
 # установите права отличные от 0666
 # (например, 0777 дает всем полные права).

 unix_listener auth-userdb {
   #mode = 0666
   #user =
   #group =
 }

 # Postfix smtp-auth
 #unix_listener /var/spool/postfix/private/auth {
 #  mode = 0666
 #}


 # Auth process is run as this user.
 # Процесс аутентификации запускается от этого пользователя.
 #user = $default_internal_user
}

service auth-worker {

 # Auth worker process is run as root by default, so that it can access
 # /etc/shadow. If this isn't necessary, the user should be changed to
 # $default_internal_user.

 # Процесс auth-worker по умолчанию, запускается с правами администратора,
 # так он может получить доступ к /etc/shadow. Если в этом нет необходимости,
 # пользователь должен быть изменен на $default_internal_user.
 #user = root
}

service dict {

 # If dict proxy is used, mail processes should have access to its socket.
 # For example: mode=0660, group=vmail and global mail_access_groups=vmail

 # Если используется dict прокси, почтовые процессы должны иметь доступ к этому сокету.
  # Например: mode=0660, group=vmail  и global mail_access_groups=vmail
 unix_listener dict {
   #mode = 0600
   #user =
   #group =
 }
}




10-ssl.conf



##
## SSL settings
##

# SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
# поддержка SSL/TLS : yes, no, required. <doc/wiki/SSL.txt>
#ssl = yes

# PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
# dropping root privileges, so keep the key file unreadable by anyone but
# root. Included doc/mkcert.sh can be used to easily generate self-signed
# certificate, just make sure to update the domains in dovecot-openssl.cnf

# PEM кодированные X.509 SSL/TLS сертификат и закрытый ключ. Они читаются до
# понижения root прав, держите ключевой файл с доступом для чтения только root
# Скрипт doc/mkcert.sh может быть легко использован для создания самоподписанного
# сертификата, только не забудьте обновить домены в dovecot-openssl.cnf
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem


# If key file is password protected, give the password here. Alternatively
# give it when starting dovecot with -p parameter. Since this file is often
# world-readable, you may want to place this setting instead to a different
# root owned 0600 file by using ssl_key_password = <path.

# Если ключевой файл защищен паролем, задайте пароль здесь. Либо
# введите его, когда запустите dovecot с параметром -p. Так же
# можно сохранить пароль в файл с владельцем root и правами 0600 и
# указать ssl_key_password = <путь.
#ssl_key_password =

# PEM encoded trusted certificate authority. Set this only if you intend to use
# ssl_verify_client_cert=yes. The file should contain the CA certificate(s)
# followed by the matching CRL(s). (e.g. ssl_ca = </etc/ssl/certs/ca.pem)

# PEM кодированный сертификат доверенного центра сертификации.
# Установливайте это, только если вы собираетесь использовать
# ssl_verify_client_cert=yes. Этот файл должен содержать CA сертификат(ы)
# и соответствующие CRL(ы). (например, ssl_ca = </etc/ssl/certs/ca.pem)
#ssl_ca =

# Require that CRL check succeeds for client certificates.
# Требовать успешного прохождения CRL проверки клиентских сертификатов.
#ssl_require_crl = yes

# Request client to send a certificate. If you also want to require it, set
# auth_ssl_require_client_cert=yes in auth section.

# Запрос сертификата клиента. Если вы также хотите, требовать это,
# установите auth_ssl_require_client_cert=yes в разделе аутентификация.
#ssl_verify_client_cert = no

# Which field from certificate to use for username. commonName and
# x500UniqueIdentifier are the usual choices. You'll also need to set
# auth_ssl_username_from_cert=yes.

# Какие поля из сертификата использовать как имя пользователя. Обычно
# выбирают commonName и X500UniqueIdentifier. Вы также должны установить
# auth_ssl_username_from_cert=yes.
#ssl_cert_username_field = commonName

# How often to regenerate the SSL parameters file. Generation is quite CPU
# intensive operation. The value is in hours, 0 disables regeneration
# entirely.

# Как часто, перегенирировать  файл SSL параметров. Генирирование довольно
# CPU ресурсоемкая операция. Значение в часах, 0 отключает перегенирацию
# Полностью.
#ssl_parameters_regenerate = 168

# SSL ciphers to use
# SSL шифрование
#ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL

# SSL crypto device to use, for valid values run "openssl engine"
# SSL крипроустройство, допустимые из "openssl engine"
#ssl_crypto_device =



15-lda.conf



##
## LDA specific settings (also used by LMTP)  
## LDA специфичные настройки (так же используются LMTP)
##

# Address to use when sending rejection mails.
# Default is postmaster@<your domain>.  

# Адрес используемый при отправке сообщений о отказе.
# По умолчанию postmaster@<your domain>.
#postmaster_address =  

# Hostname to use in various parts of sent mails, eg. in Message-Id.
# Default is the system's real hostname.  

# Имя хоста  использующееся в различных частях отправляемых писем,
# например в Message-Id.
# По умолчанию это реальное имя хоста системы.
#hostname =  

# If user is over quota, return with temporary failure instead of
# bouncing the mail.  

# Если пользователь превысил квоту, вернуть временную ошибку, а не
# отклонять почту.
#quota_full_tempfail = no  

# Binary to use for sending mails.  
# Бинарник используемый для отправки почты
#sendmail_path = /usr/sbin/sendmail  

# If non-empty, send mails via this SMTP host[:port] instead of sendmail.  
# Если не пусто, отправлять письма через этот хост SMTP
# host[:port] вместо Sendmail.
#submission_host =  

# Subject: header to use for rejection mails. You can use the same variables
# as for rejection_reason below.  

# Тема: заголовок, используемый для отклоненной почты. Вы можете
# использовать те же переменные как для rejection_reason.
#rejection_subject = Rejected: %s  

# Human readable error message for rejection mails. You can use variables:  
# Человекочитаемое сообщение о ошибке для  отклоненной почты.
# Вы можете использовать переменные:
#  %n = CRLF, %r = причина, %s = оригинальная тема, %t = получатель
#rejection_reason = Your message to <%t> was automatically rejected:%n%r  

# Delimiter character between local-part and detail in email address.  
# Символ разделителя между локальной частью и расширением в адресе электронной почты.
#recipient_delimiter = +  

# Header where the original recipient address (SMTP's RCPT TO: address) is taken
# from if not available elsewhere. With dovecot-lda -a parameter overrides this.
# A commonly used header for this is X-Original-To.  

# Заголовок, откуда берется оригинальный адрес получателя (SMTP's
# RCPT TO: address), если не доступно иное. dovecot-lda с параметром
#  -a  переопределяет это.
# Обычно для этого используется заголовок X-Original-To.
#lda_original_recipient_header =  

# Should saving a mail to a nonexistent mailbox automatically create it?  
# Если пришла почта на несуществующий почтовый ящик
# автоматически создать его?
#lda_mailbox_autocreate = no  

# Should automatically created mailboxes be also automatically subscribed?  
# Если почтовые ящики создаются автоматически, автоматически подписовать их?
#lda_mailbox_autosubscribe = no

protocol lda {

 # Space separated list of plugins to load (default is global mail_plugins).  
 # Список плагинов через пробел, (по умолчанию глобальный mail_plugins).
 #mail_plugins = $mail_plugins
}  




15-mailboxes.conf

##
## Mailbox definitions  
##

# NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.  
# Примечание: Предполагается, "namespace inbox"(пространство имен inbox)
# было определенов 10-mail.conf.
namespace inbox {  

 #mailbox name {  

   # auto=create will automatically create this mailbox.
   # auto=subscribe will both create and subscribe to the mailbox.

   # auto=create mailbox будет создан автоматически.
   # auto=subscribe автоматически создается и «подписывается» mailbox.
   #auto = no  

   # Space separated list of IMAP SPECIAL-USE attributes as specified by
   # RFC 6154: \All \Archive \Drafts \Flagged \Junk \Sent \Trash  

   # Список разделенный пробелами IMAP SPECIAL-USE атрибутов, как
   # определено в RFC 6154: \All \Archive \Drafts \Flagged \Junk \Sent \Trash
   #special_use =
 #}  


 # These mailboxes are widely used and could perhaps be created automatically:  
 #  Следующие почтовые каталоги широко используются и, возможно,
 #  будут созданы автоматически:
 mailbox Drafts {
   special_use = \Drafts
 }
 mailbox Junk {
   special_use = \Junk
 }
 mailbox Trash {
   special_use = \Trash
 }  


 # For \Sent mailboxes there are two widely used names. We'll mark both of
 # them as \Sent. User typically deletes one of them if duplicates are created.  

 # Для почтового ящика \Sent есть два широко используемых имени.
 # Мы пометим оба из них, как \Sent. Пользователи обычно удаляет один
 # из них, если создаются дубликаты.
 mailbox Sent {
   special_use = \Sent
 }
 mailbox "Sent Messages" {
   special_use = \Sent
 }  


 # If you have a virtual "All messages" mailbox:  
 # Если хотите виртуальный "All messages" mailbox:
 #mailbox virtual/All {
 #  special_use = \All
 #}  


 # If you have a virtual "Flagged" mailbox:  
 # Если хотите виртуальный "Flagged" mailbox:
 #mailbox virtual/Flagged {
 #  special_use = \Flagged
 #}
}  





20-imap.conf

##
## IMAP specific settings  
## IMAP специфичные настройки
##

protocol imap {  
 # Maximum IMAP command line length. Some clients generate very long command
 # lines with huge mailboxes, so you may need to raise this if you get
 # "Too long argument" or "IMAP command line too large" errors often.  

 # Максимальная длина командной строки IMAP. Некоторые клиенты генерируют
 # очень длинные команды к огромным почтовыми ящикам, так что вам, возможно,
 # придется увеличить этот порог, если вы часто  получаете ошибки "Too long
 # argument"("Слишком длинный аргумент")  или "IMAP command line too
 # large"("IMAP команднаястрока слишком большая")
 #imap_max_line_length = 64k  

 # Maximum number of IMAP connections allowed for a user from each IP address.
 # NOTE: The username is compared case-sensitively.  

 # Максимальное число соединений IMAP для пользователя с одного IP-адреса.
 # Примечание: имя пользователя сравнивается регистрозависимо.
 #mail_max_userip_connections = 10  

 # Space separated list of plugins to load (default is global mail_plugins).  
 # Список плагинов для загрузки через пробел (по умолчанию глобальный mail_plugins).
 #mail_plugins = $mail_plugins  

 # IMAP logout format string:
 #  %i - total number of bytes read from client
 #  %o - total number of bytes sent to client  

 # IMAP формат строки вывода(при завершении соединения?):
 #  %i - общее число байтов, полученных от клиента
 #  %o - общее число байтов, отправленных клиенту
 #imap_logout_format = bytes=%i/%o  

 # Override the IMAP CAPABILITY response. If the value begins with '+',
 # add the given capabilities on top of the defaults (e.g. +XFOO XBAR).  

 # Переопределить ответ IMAP CAPABILITY(возможности, поддерживаемые команды).
 # Если значение начинается с '+', добавить данные возможности ранее,
 # чем те что по умолчанию (например, + XFOO XBAR).
 #imap_capability =  

 # How long to wait between "OK Still here" notifications when client is
 # IDLEing.  

 # Как долго ждать между "OK Still here"("OK я еще здесь") уведомления,
 # когда клиент простаивает (подключен, но нет активности).
 #imap_idle_notify_interval = 2 mins  

 # ID field names and values to send to clients. Using * as the value makes
 # Dovecot use the default value. The following fields have default values
 # currently: name, version, os, os-version, support-url, support-email.  

 # ID полей названия и значения отправляемые клиентам. Используя *
 # в качестве значения заставляет Dovecot использовать значения по умолчанию.
 # Следующие поля имеют значения по умолчанию
 # В настоящее время: name, version, os, os-version, support-url, support-email.
 #imap_id_send =  

 # ID fields sent by client to log. * means everything.  
 # ID полей отправляемых клиентом в лог. * Означает все.
 # imap_id_log =

 # Workarounds for various client bugs:
 #   delay-newmail:
 #     Send EXISTS/RECENT new mail notifications only when replying to NOOP
 #     and CHECK commands. Some clients ignore them otherwise, for example OSX
 #     Mail (<v2.1). Outlook Express breaks more badly though, without this it
 #     may show user "Message no longer in server" errors. Note that OE6 still
 #     breaks even with this workaround if synchronization is set to
 #     "Headers Only".
 #   tb-extra-mailbox-sep:
 #     With mbox storage a mailbox can contain either mails or submailboxes,
 #     but not both. Thunderbird separates these two by forcing server to
 #     accept '/' suffix in mailbox names in subscriptions list.
 #   tb-lsub-flags:
 #     Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
 #     This makes Thunderbird realize they aren't selectable and show them
 #     greyed out, instead of only later giving "not selectable" popup error.
 #
 # The list is space-separated.

 # Обработка различных клиентских ошибок:
 #   delay-newmail: Задержка новой почты:
 #     Отправить EXISTS/RECENT уведомления о новой почте только в ответ на NOOP
 #     И CHECK команды. Некоторые клиенты реагируют на это иначе, например OSX
 #     Mail (<v2.1). Outlook Express ведет себя хуже, без этой настройки может
 #     выдать сообщение о ошибке "Message no longer in server" OE6 ломается даже
 #     при этой настройке, если при синхронизации установлено "Только заголовки".
 #   tb-extra-mailbox-sep:
 #     При mbox формате, почтовый ящик, может содержать либо почту либо подпапки,
 #     но не одновременно. Thunderbird поддерживает их одновременно, заставляя сервер
 #     принимать '/' суффикс имен почтовых ящиков в списке подписки.
 #   tb-lsub-flags:
 #     Показать \Noselect флаги для LSUB ответов с LAYOUT=fs (например, mbox).
 #     ммм.. Thunderbird вместо ошибки "нельзя выбрать" показывает каталоги серым
 # Список разделеннй пробелами.
 # imap_client_workarounds =



20-lmtp.conf



##
## LMTP specific settings
## LMTP специфичные настройки
##

# Support proxying to other LMTP/SMTP servers by performing passdb lookups.
# Поддержка проксирования поиска в passdb для других LMTP/SMTP серверов.
#lmtp_proxy = no

# When recipient address includes the detail (e.g. user+detail), try to save
# the mail to the detail mailbox. See also recipient_delimiter and
# lda_mailbox_autocreate settings.

# Если адрес получателя составной (например, пользователь + расширение),
# попытаться сохранить в «расширение» почтовый ящик. См. также recipient_delimiter и
# Lda_mailbox_autocreate настройки.
#lmtp_save_to_detail_mailbox = no

protocol lmtp {

 # Space separated list of plugins to load (default is global mail_plugins).
 # Список плагинов, через пробел, для загрузки (по умолчанию глобальный mail_plugins).
 #mail_plugins = $mail_plugins
}




20-managesieve.conf



##
## ManageSieve specific settings
##

# Uncomment to enable managesieve protocol:
# Раскомментируйте для включения протокола managesieve
#protocols = $protocols sieve

# Service definitions

#service managesieve-login {
 #inet_listener sieve {
 #  port = 4190
 #}

 #inet_listener sieve_deprecated {
 #  port = 2000
 #}


 # Number of connections to handle before starting a new process. Typically
 # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
 # is faster. <doc/wiki/LoginProcess.txt>

 # Количество соединений перед стартом нового процесса. Как правило
 # полезны только значения 0 (неограничено) или 1. 1 является более
 # безопасным, но 0 быстрее. <doc/wiki/LoginProcess.txt>
 #service_count = 1

 # Number of processes to always keep waiting for more connections.
 # Число процессов, постоянно находящихся в ожидании соединений.
 #process_min_avail = 0

 # If you set service_count=0, you probably need to grow this.
 # Если вы установите service_count=0, то, вероятно, нужно увеличить это.
 #vsz_limit = 64M
#}

#service managesieve {

 # Max. number of ManageSieve processes (connections)
 # Макс. количество процессов ManageSieve (соединений)
 #process_count = 1024
#}

# Service configuration

protocol sieve {

 # Maximum ManageSieve command line length in bytes. ManageSieve usually does
 # not involve overly long command lines, so this setting will not normally
 # need adjustment

 # Максимальная длина строки ManageSieve команд в байтах. ManageSieve обычно,
 # не увлекается чрезмерно длинными строками команд, поэтому этот параметр
 # обычно не нуждается в регулировке
 #managesieve_max_line_length = 65536

 # Maximum number of ManageSieve connections allowed for a user from each IP
 # address.
 # NOTE: The username is compared case-sensitively.  

 # Максимальное количество ManageSieve соединений для одного пользователя
 # с одного IP
 # Примечание: имя пользователя регистрозависимо.
 #mail_max_userip_connections = 10

 # Space separated list of plugins to load (none known to be useful so far).
 # Do NOT try to load IMAP plugins here.

 # Список плагинов для загрузки через пробел (пока таких нет).
 # НЕ пытайтесь загрузить здесь IMAP плагины.
 #mail_plugins =

 # MANAGESIEVE logout format string:
 #  %i - total number of bytes read from client
 #  %o - total number of bytes sent to client

 # формат строки MANAGESIEVE лога:
 #  %i — общее количество байт полученых от клиента
 #  %o - общее количество байт отправленных клиенту
 #managesieve_logout_format = bytes=%i/%o

 # To fool ManageSieve clients that are focused on CMU's timesieved you can
 # specify the IMPLEMENTATION capability that Dovecot reports to clients.
 # For example: 'Cyrus timsieved v2.2.13'

 # Чтобы обмануть ManageSieve клиентов, которые разработаны для конкретного
 # CMU's timesieved вы можете указать строку, чем реализовано timsieved,
 # которую Dovecot отправляет  клиентам.
 # Например: 'Cyrus timsieved v2.2.13'
 #managesieve_implementation_string = Dovecot Pigeonhole

 # Explicitly specify the SIEVE and NOTIFY capability reported by the server
 # before login. If left unassigned these will be reported dynamically
 # according to what the Sieve interpreter supports by default (after login
 # this may differ depending on the user).

 # Явно указать SIEVE и NOTIFY возможности поддерживаемые сервером до
 # входа в систему. Если не определены, будут представлены динамически в
 # соответствии с тем, что Sieve интерпретатор поддерживает по умолчанию
 # (после входа может изменится в зависимости от пользователя).
 #managesieve_sieve_capability =
 #managesieve_notify_capability =


 # The maximum number of compile errors that are returned to the client upon
 # script upload or script verification.

 # Максимальное количество ошибок компиляции, возвращаемых клиенту
 # при  загрузке сценария или проверке сценария.
 #managesieve_max_compile_errors = 5

 # Refer to 90-sieve.conf for script quota configuration and configuration of
 # Sieve execution limits.

 # Обратитесь к 90-sieve.conf для настройки квот сценариев и ограничений
 # на выполнение  Sieve скриптов.



20-pop3.conf



##
## POP3 specific settings
## POP3 специфичные настройки
##

protocol pop3 {
 # Don't try to set mails non-recent or seen with POP3 sessions. This is
 # mostly intended to reduce disk I/O. With maildir it doesn't move files
 # from new/ to cur/, with mbox it doesn't write Status-header.

 # Не пытайтесь установить сообщениям новый или прочитаный в сессии POP3.
 # Это в основном предназначено для уменьшения дисковых операций ввода/вывода
 # С Maildir это не перемещает файлы из new/ в cur/, с mbox не записывает
 # статус-заголовков.
 #pop3_no_flag_updates = no

 # Support LAST command which exists in old POP3 specs, but has been removed
 # from new ones. Some clients still wish to use this though. Enabling this
 # makes RSET command clear all \Seen flags from messages.

 # Поддержка команды LAST, которая существует в старой версии POP3, но была удалена
 # в новых версиях. Некоторые клиенты все еще ее используют. Включение этой
 # опции дает команду RSET очистить все \Seen флаги сообщений.
 #pop3_enable_last = no

 # If mail has X-UIDL header, use it as the mail's UIDL.
 # Если почта имеет X-UIDL заголовок, использовать его в качестве UIDL сообщения.
 #pop3_reuse_xuidl = no

 # Keep the mailbox locked for the entire POP3 session.
 # Сохранять блокировку mailbox в течение всей сессии POP3.
 #pop3_lock_session = no

 # POP3 requires message sizes to be listed as if they had CR+LF linefeeds.
 # Many POP3 servers violate this by returning the sizes with LF linefeeds,
 # because it's faster to get. When this setting is enabled, Dovecot still
 # tries to do the right thing first, but if that requires opening the
 # message, it fallbacks to the easier (but incorrect) size.

 # POP3 требует показывать размеры сообщений с CR + LF переводом строки.
 # Многие POP3 серверов нарушают это, возвращая размер с LF переводом строки,
 # потому что это быстрее. Когда этот параметр включен, Dovecot
 # пытается делать это правильно, но если это требует открытия
 # сообщения, он откатывается к простому  (но неправильному) размеру.
 #pop3_fast_size_lookups = no

 # POP3 UIDL (unique mail identifier) format to use. You can use following
 # variables, along with the variable modifiers described in
 # doc/wiki/Variables.txt (e.g. %Uf for the filename in uppercase)

 # Формат POP3 UIDL (уникальный почтовый идентификатор). Вы можете
 # использовать переменные, вместе с модификаторами переменных
 # описаными в doc/wiki/Variables.txt (например, %Uf для имени файла
 # в верхнем регистре)

 #  %v - Mailbox's IMAP UIDVALIDITY
 #  %u - Mail's IMAP UID
 #  %m - MD5 sum of the mailbox headers in hex (mbox only)
 #  %f - filename (maildir only)
 #  %g - Mail's GUID
 #
 # If you want UIDL compatibility with other POP3 servers, use:
 #  UW's ipop3d         : %08Xv%08Xu
 #  Courier             : %f or %v-%u (both might be used simultaneosly)
 #  Cyrus (<= 2.1.3)    : %u
 #  Cyrus (>= 2.1.4)    : %v.%u
 #  Dovecot v0.99.x     : %v.%u
 #  tpop3d              : %Mf
 #
 # Note that Outlook 2003 seems to have problems with %v.%u format which was
 # Dovecot's default, so if you're building a new server it would be a good
 # idea to change this. %08Xu%08Xv should be pretty fail-safe.

 # Обратите внимание, что у Outlook 2003, кажется, есть проблемы с
 # форматом %v.%u, который у Dovecot  по умолчанию, так что если вы создаете
 #  новый сервер, будет хорошей идеей изменить это.
 # %08Xu%08Xv должно быть более безопасно.
 #
 #pop3_uidl_format = %08Xu%08Xv

 # Permanently save UIDLs sent to POP3 clients, so pop3_uidl_format changes
 # won't change those UIDLs. Currently this works only with Maildir.

 # Постоянно сохранять UIDLs отправленных сообщений POP3-клиентам,
 # так изменение pop3_uidl_format не изменит тех UIDLs. В данный момент
 # это работает только с Maildir.
 #pop3_save_uidl = no

 # POP3 logout format string:
 # Формат строки POP3 отправляемой в лог:
   #  %i - total number of bytes read from client
 #  %o - total number of bytes sent to client
 #  %t - number of TOP commands
 #  %p - number of bytes sent to client as a result of TOP command
 #  %r - number of RETR commands
 #  %b - number of bytes sent to client as a result of RETR command
 #  %d - number of deleted messages
 #  %m - number of messages (before deletion)
 #  %s - mailbox size in bytes (before deletion)
 #  %u - old/new UIDL hash. may help finding out if UIDLs changed unexpectedly

 #pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s

 # Maximum number of POP3 connections allowed for a user from each IP address.
 # NOTE: The username is compared case-sensitively.

 # Максимальное количество подключений POP3 для одного пользователя с одного IP-адреса.
 # Примечание: имя пользователя сравнивается с учетом регистра.
 #mail_max_userip_connections = 10

 # Space separated list of plugins to load (default is global mail_plugins).
 # Список через пробел плагинов для загрузки (по умолчанию глобальный mail_plugins).
 #mail_plugins = $mail_plugins

 # Workarounds for various client bugs:
 #   outlook-no-nuls:
 #     Outlook and Outlook Express hang if mails contain NUL characters.
 #     This setting replaces them with 0x80 character.
 #   oe-ns-eoh:
 #     Outlook Express and Netscape Mail breaks if end of headers-line is
 #     missing. This option simply sends it if it's missing.
 # The list is space-separated.

 # Решения для различных клиентских ошибок :
 #   outlook-no-nuls:
 #    Outlook и Outlook Express вешается, если письма содержат нулевые символы.
 #    Этот параметр заменяет их на 0x80 символы.
 #   oe-ns-eoh:
 #    Outlook Express и Netscape Mail глючат, если отсутствует окончание заголовков.
 #    Эта опция просто посылает его, если он отсутствует.
 #    Список разделенный пробелами.
 #pop3_client_workarounds =



90-acl.conf



##
## Mailbox access control lists.
## Список контроля доступа к почтовым ящикам
##

# vfile backend reads ACLs from "dovecot-acl" file from mail directory.
# You can also optionally give a global ACL directory path where ACLs are
# applied to all users' mailboxes. The global ACL directory contains
# one file for each mailbox, eg. INBOX or sub.mailbox. cache_secs parameter
# specifies how many seconds to wait between stat()ing dovecot-acl file
# to see if it changed.

# бакэнд vfile читает списки контроля доступа из "dovecot-acl" файла
# почтового каталога. Вы также можете опционально задать глобальный
# каталог ACL, где будут храниться списки управления доступом
# применяемые к почтовым ящикам всех пользователей. Глобальный
# каталог ACL содержит один файл для каждого почтового ящика,
# например: INBOX или sub.mailbox. cache_secs параметр указывает,
# время ожидания в секундах между stat()ing dovecot-acl,
# чтобы увидеть, если он изменился.
# Список разделенный пробелами.
plugin {
 #acl = vfile:/etc/dovecot/global-acls:cache_secs=300
}


# To let users LIST mailboxes shared by other users, Dovecot needs a
# shared mailbox dictionary. For example:

# Чтобы позволить пользователям получать список общих(расшареных)
# почтовых ящиков других пользователей, Dovecot нуждается в
# Словаре общих почтовых ящиков. Например:
plugin {
 #acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
}




90-antispam.conf




## http://aliech.ru/?tag=%D0%B2%D0%BD%D0%B5%D0%B4%D1%80%D0%B5%D0%BD%D0%B8%D0%B5


plugin {  
   ##################
   # GENERIC OPTIONS

   # Debugging options
   # Uncomment to get the desired debugging behaviour.
   # Note that in some cases stderr debugging will not be as
   # verbose as syslog debugging due to internal limitations.

   # Опции отладки  
   # Раскомментируйте, для получения желаемого поведения.
   # Обратите внимание, что в некоторых случаях отладка на
   # STDERR будет менее информативной, чем журнал отладки
   # из-за внутренних ограничений.
   #
   antispam_debug_target = syslog
   # antispam_debug_target = stderr
   # antispam_verbose_debug = 1  


   # backend selection, MUST be configured first,
   # there's no default so you need to set one of
   # these options:  

   # используемый backend, должен быть сконфигурирован в первую очередь,
   # значения по умолчанию нет, необходимо установить
   # одно из этих значений:
   # antispam_backend = crm114
   # antispam_backend = dspam
   antispam_backend = pipe
   # antispam_backend = spool2dir  


   # mail signature (used with any backend requiring a signature)  
   # mail signature (используется со всеми backend-ами требующими сигнатуры)
   # antispam_signature = X-DSPAM-Signature  

   # action to take on mails without signature
   # (used with any backend requiring a signature)
   # (we recommend only setting this to 'move' after verifying that the
   # whole setup is working)
   # antispam_signature_missing = move # move silently without training  

   # Действия принимаемые с почтовыми отправлениями без сигнатуры
   # (используется со всеми backend-ами требующими сигнатуры)
   # (мы рекомендуем установать это в 'Move' только после того,
   # как будете уверены, что все работает)
   # Antispam_signature_missing = move # тихо отбросить без тренировки
   antispam_signature_missing = error  

   # The list of folders for trash, spam and unsure can be given
   # with three options, e.g. "trash" matches the given folders
   # exactly as written, "trash_pattern" accept the * wildcard at
   # the end of the foldername, "trash_pattern_ignorecase"
   # accepts the * wildcard at the end of the foldername _and_
   # matches the name case insensitivly.  

   # Список имен папок для удаленные, спам и unsure(непонятное :)
   # можно задать  тремя способами, например, "trash" совпадает
   # с именем  папки точно так, как написано, «trash_pattern" можно
   # использовать символ * в конце имени папки,
   # "trash_pattern_ignorecase" можно использовать символ * в
   # конце имени папки _И_ нечувствителен к регистру.

   # the *-wildcard with the following meaning:
   #    * at the end: any folder that _start_ with the string
   # e.g.:
   #   antispam_trash_pattern = deleted *;Gel&APY-schte *
   # match any folders that start with "deleted " or "Gel&#246;schte "
   # match is _case_senstive_!
   #
   # antispam_trash_pattern_ignorecase = deleted *;Gel&APY-schte *
   # match any folders that start with "deleted " or "gel&#246;schte "
   # match is _case_insenstive_, except the non-USASCII letters,
   # "&#246;" in this example.
   # To match the upper-case &#214;, too, you need to add yet another
   # pattern "gel&ANY-schte *", note the different UTF7 encoding:
   # &ANY- instead of &APY-.  

   # * - шаблон со следующими значениями:
   # * В конце: любой каталог, начинающийся строкой
   # Например:
   # Antispam_trash_pattern = deleted *;Gel&APY-schte *
   # Соответствует любым каталогам, которые начинаются с "deleted "
   # или "gel&#246;schte "
   # Регистрозависимо !
   #
   # Antispam_trash_pattern_ignorecase = deleted *;Gel&APY-schte *
   # Соответствует любым каталогам, которые начинаются с "deleted " или
   # "gel&#246;schte "
   # Регистронезависимо, за исключением не-USASCII символов,
   # "&#246; в этом примере.
   # Чтобы соответствовало в верхнем регистре &#214;, тоже, нужно добавить еще один
   # шаблон "gel&ANY-schte *", обратите внимание на различия UTF7 кодирования:
   # &ANY- вместо &APY-.

   # semicolon-separated list of Trash folders (default unset i.e. None)
   # список, разделенный «;» возможных имен папок Trash(по умолчанию не задан)
   # antispam_trash =
   antispam_trash = trash;Trash;Deleted Items; Deleted Messages
   # antispam_trash_pattern = trash;Trash;Deleted *
   # antispam_trash_pattern_ignorecase = trash;Deleted *  


   # semicolon-separated list of spam folders  
   # список, разделенный «;» возможных имен папок  spam
   antispam_spam = spam,Spam,SPAM,junk,Junk,JUNK
   # antispam_spam_pattern = SPAM
   # antispam_spam_pattern_ignorecase = SPAM  


   # semicolon-separated list of unsure folders (default unset i.e. None)  
   # список, разделенный «;» возможных имен папок unsure(по умолчанию не задан)
   # antispam_unsure =
   # antispam_unsure_pattern =
   # antispam_unsure_pattern_ignorecase =  


   # Whether to allow APPENDing to SPAM folders or not. Must be set to
   # "yes" (case insensitive) to be activated. Before activating, please
   # read the discussion below.  

   # Разрешать ли добавление данных в папки со спамом или нет.
   # для активации установить в «YES»  (нечувствителен к регистру).
   # Перед активацией, пожалуйста прочтите обсуждение этого ниже.

   # By appends we mean the case of mail moving when the  source  folder
   # is unknown,  e.g. when you move from some other account or with
   # tools like offlineimap. You should be careful with allowing
   # APPENDs to SPAM  folders.  The reason for possibly allowing
   # it is to allow not-SPAM --> SPAM transitions to work and be trained.
   # However, because the plugin  cannot know the source of the message
   # (it is assumed to be from OTHER folder), multiple bad scenarios
   # can happen:
   # 1.  SPAM --> SPAM transitions cannot be recognised and are trained;
   # 2.  TRASH --> SPAM transitions cannot be recognised and are trained;
   # 3.  SPAM --> not-SPAM transitions cannot be recognised therefore
   # training good messages will never work with APPENDs.  

   # Рассмотрим случай, когда при перемещении сообщения исходная папка
   # неизвестна, например при перемещении с другой учетной записи,
   # или при offlineimap. Вы должны быть осторожны с разрешением
   # добавлять в папку SPAM. Причина возможного включения этого —
   # чтобы not-SPAM --> SPAM перемещения работали и переобучали фильтр.
   # Однако, так как плагин не может знать источник сообщения
   # (предполагается, что из другой папки), возможны нехорошие последствия:
   # 1. SPAM --> SPAM перемещения могут быть признаны тренировкой как SPAM;
   # 2. TRASH --> SPAM перемещения могут быть признаны тренировкой как SPAM;
   # 3. SPAM --> not-SPAM перемещения могут быть не признаны, поэтому
   # переобучение на хороших сообщениях не сработает.
   # antispam_allow_append_to_spam = no  

   ###########################
   # BACKEND SPECIFIC OPTIONS
   #

   #===================
   # dspam plugin

   # dspam binary
   antispam_dspam_binary = /usr/bin/dspam  

   # semicolon-separated list of extra arguments to dspam  
   # список, разделенный «;» агрументов dspam
   # (default unset i.e. none)
   # antispam_dspam_args =
   # antispam_dspam_args = --deliver=;--user;%u  # % expansion done by dovecot
   # antispam_dspam_args = --mode=teft  


   # Ignore mails where the DSPAM result header contains any of the
   # strings listed in the blacklist
   # (default unset i.e. None)  

   # Игнорировать почту где заголовок с результатом DSPAM содержит
   # любую из строк входящую в черный список(по умолчанию отключенно т.е. нет)
   # antispam_dspam_result_header = X-DSPAM-Result  

   # semicolon-separated list of blacklisted results, case insensitive  
   # черный список, разделенный «;»
   # antispam_dspam_result_blacklist = Virus  

   # semicolon-separated list of environment variables to set
   # (default unset i.e. None)  

   #список, разделенный «;» переменных среды
   # antispam_dspam_env =
   # antispam_dspam_env = HOME=%h;USER=%u  


   #=====================
   # pipe plugin  
   #
   # This plug can be used to train via an arbitrary program that
   # receives the message on standard input. Since sendmail can be
   # such a program, it can be used to send the message to another
   # email address for training there.  

   # Этот плагин может быть использован для обучения через произвольную
   # программу, которая получает сообщения на стандартный вход. Такой
   # программой может быть Sendmail, она может быть использована для
   # отправки сообщения на другой адрес электронной почты для обучения.
   #
   # For example:
   #   antispam_pipe_program = /path/to/mailtrain
   #        (defaults to /usr/sbin/sendmail)
   #   antispam_pipe_program_args = --for;%u
   #   antispam_pipe_program_spam_arg = --spam
   #   antispam_pipe_program_notspam_arg = --ham
   #   antispam_pipe_tmpdir = /tmp
   # will call it, for example, like this:
   #   /path/to/mailtrain --for jberg --spam
   #
   # The old configuration options from when this plugin was called
   # "mailtrain" are still valid, these are, in the same order as
   # above: antispam_mail_sendmail, antispam_mail_sendmail_args,
   # antispam_mail_spam, antispam_mail_notspam and antispam_mail_tmpdir.

   # Старые параметры конфигурации, со времен когда этот плагин назывался
   # "mailtrain" все еще действительны, это, в том же порядке как указано выше:
   # antispam_mail_sendmail, antispam_mail_sendmail_args,
   # antispam_mail_spam, antispam_mail_notspam and antispam_mail_tmpdir.
   #
   # Alternatively, if you need to give multiple options, you can use
   # the spam_args/notspam_args parameters (which are used in preference
   # of the singular form):

   # Либо, если вам нужно передать больше опций, вы можете использовать
   # параметры spam_args/notspam_args (которые .....):
   #   antispam_pipe_program_spam_args = --spam;--my-other-param1
   #   antispam_pipe_program_notspam_args = --ham;--my-other-param2
   # which will then call
   # которые затем вызовутся
   # /path/to/mailtrain --for jberg --spam --my-other-param1[/color]

   # temporary directory  
   antispam_pipe_tmpdir = /tmp

   # spam/not-spam argument (default unset which will is not what you want)  
   antispam_pipe_program_spam_arg = --spam
   antispam_pipe_program_notspam_arg = --ham

   # binary to pipe mail to  
   antispam_pipe_program = /etc/dovecot/sa-learn.sh
   #antispam_pipe_program_args = -f;%u@example.com # % expansion done by dovecot

   #===================
   # crm114 plugin


   # mailreaver binary  
   antispam_crm_binary = /bin/false
   # antispam_crm_binary = /usr/share/crm114/mailreaver.crm

   # semicolon-separated list of extra arguments to crm114
   # (default unset i.e. none)  

   # antispam_crm_args =
   # antispam_crm_args = --config=/path/to/config

   # semicolon-separated list of environment variables to set
   # (default unset i.e. none)  

   # antispam_crm_env =
   # antispam_crm_env = HOME=%h;USER=%u

   # NOTE: you need to set the signature for this backend
   antispam_signature = X-CRM114-CacheID

   #===================
   # spool2dir plugin  

   # spam/not-spam spool2dir drop (default unset which will give errors)
   # The first %%lu is replaced by the current time.
   # The second %%lu is replaced by a counter to generate unique names.
   # These two tokens MUST be present in the template! However
   # you can insert any C-style modifier as shown.  

   # antispam_spool2dir_spam    = /tmp/spamspool/%%020lu-%u-%%05lus
   # antispam_spool2dir_notspam = /tmp/spamspool/%%020lu-%u-%%05luh
}



90-quota.conf




##
## Quota configuration.  
## Конфигурирование квот.
##

# Note that you also have to enable quota plugin in mail_plugins setting.  
# Обратите внимание, что вы также должны включить quota plugin в mail_plugins.
# <doc/wiki/Quota.txt>

##
## Quota limits  
## Лимиты квоты
##

# Quota limits are set using "quota_rule" parameters. To get per-user quota
# limits, you can set/override them by returning "quota_rule" extra field
# from userdb. It's also possible to give mailbox-specific limits, for example
# to give additional 100 MB when saving to Trash:  

# Квоты устанавливаются с помощью параметров "quota_rule".
# Для настройки попользовательских квот, вы можете
# установить/переопределить их получая значения  поля  "quota_rule"
# из UserDB. Кроме того, возможно, задать  mailbox-специфичные ограничения,
# например, дать дополнительные 100 Мб при сохранении в Корзину:

plugin {
 #quota_rule = *:storage=1G
 #quota_rule2 = Trash:storage=+100M
}  


##
## Quota warnings  
## Предупреждения о приближении предела квоты
##

# You can execute a given command when user exceeds a specified quota limit.
# Each quota root has separate limits. Only the command for the first
# exceeded limit is excecuted, so put the highest limit first.
# The commands are executed via script service by connecting to the named
# UNIX socket (quota-warning below).
# Note that % needs to be escaped as %%, otherwise "% " expands to empty.  

# Вы можете выполнить команду, когда пользователь превысит указанный
# предел квоты. Каждый корень квоты имеет отдельные лимиты. Команда
# выполняется только для первого совпадения превышения предела квоты,
# поэтому более высокие лимиты ставятся первыми.
# Команды выполняются с помощью сценария подключаясь к именованному
# UNIX сокету (предупреждение квоты ниже).
# Обратите внимание % должен быть экранирован так %%, в противном
# случае "%" расширяется до пустого символа.

plugin {
 #quota_warning = storage=95%% quota-warning 95 %u
 #quota_warning2 = storage=80%% quota-warning 80 %u
}  


# Example quota-warning service. The unix listener's permissions should be
# set in a way that mail processes can connect to it. Below example assumes
# that mail processes run as vmail user. If you use mode=0666, all system users
# can generate quota warnings to anyone.  

# Пример службы квота-предупреждения. Разрешения UNIX сокета должны быть
# установлены таким образом, чтобы почтовый процесс мог к нему подключиться.
# Пример ниже предполагает, что почтовые процессы запускаются от пользователя
# vmail. Если вы используете разрешения = 0666, все пользователи системы
# могут генерировать предупреждения квоты для кого угодно.
#service quota-warning {
#  executable = script /usr/local/bin/quota-warning.sh
#  user = dovecot
#  unix_listener quota-warning {
#    user = vmail
#  }
#}  


##
## Quota backends  
##

# Multiple backends are supported:
#   dirsize: Find and sum all the files found from mail directory.
#            Extremely SLOW with Maildir. It'll eat your CPU and disk I/O.
#   dict: Keep quota stored in dictionary (eg. SQL)
#   maildir: Maildir++ quota
#   fs: Read-only support for filesystem quota  

# Поддерживается несколько backends:
#   dirsize: Найти и суммировать все найденные файлы из почтовых каталогов.
#            Экстремально медленно с Maildir. Это съедает ваш процессор и
#            дисковый ввод/вывод
#   dict:    Хранить квоты в словаре (например, SQL)
#   maildir: Maildir++ quota
#   fs:      Поддержка чтения квот файловой системы в режиме только чтение.
plugin {
 #quota = dirsize:User quota
 #quota = maildir:User quota
 #quota = dict:User quota::proxy::quota
 #quota = fs:User quota
}  


# Multiple quota roots are also possible, for example this gives each user
# their own 100MB quota and one shared 1GB quota within the domain:  

# Возможны несколько корней квоты, например следующее, дает
# каждому пользователю свою квоту 100 Мб и одну общую 1GB квоту
# на домен.
plugin {
 #quota = dict:user::proxy::quota
 #quota2 = dict:domain:%d:proxy::quota_domain
 #quota_rule = *:storage=102400
 #quota2_rule = *:storage=1048576
}  




90-sieve.conf



##
## Settings for the Sieve interpreter  
## Настройки интерпретатора Sieve
##

# Do not forget to enable the Sieve plugin in 15-lda.conf and 20-lmtp.conf
# by adding it to the respective mail_plugins= settings.
 
# Не забудьте включить плагин Sieve в 15-lda.conf и 20-lmtp.conf
# добавив его в параметре mail_plugins =


# The Sieve interpreter can retrieve Sieve scripts from several types of
# locations. The default `file' location type is a local filesystem path
# pointing to a Sieve script file or a directory containing multiple Sieve
# script files. More complex setups can use other location types such as
# `ldap'or `dict' to fetch Sieve scripts from remote databases.

# Интерпретатор Sieve может получать Sieve скрипты из разных мест.
# По умолчанию это локальный путь на файловой системе к файлу сценария
# или каталог, содержащий несколько Sieve сценариев. Более сложные установки
# могут использовать сценарии из таких местоположений как, например,
# Ldap или база данных.
#
# All settings that specify the location of one ore more Sieve scripts accept
# the following syntax:

# Все настройки, определяющие местоположение одного или нескольких Sieve
#  скриптов имеет следующий синтаксис:
#
# location = [<type>:]path[;<option>[=<value>][;...]]
#
# If the type prefix is omitted, the script location type is 'file' and the
# location is interpreted as a local filesystem path pointing to a Sieve script
# file or directory. Refer to Pigeonhole wiki or INSTALL file for more
# information.

# Если тип префикса опущен, тип принимается как 'файл' и
# местоположение интерпретируется как локальный путь на файловой системе,
# ведущий к Sieve сценарию или каталогу с ними. Обратитесь к Pigeonhole wiki
# или установите документацию?.



plugin {  
# The location of the user's main Sieve script or script storage. The LDA
# Sieve plugin uses this to find the active script for Sieve filtering at
# delivery. The "include" extension uses this location for retrieving
# :personal" scripts. This is also where the  ManageSieve service will store
# the user's scripts, if supported.

# Расположение основного пользовательского Sieve сценария или хранилища скриптов.
# LDA Sieve плагин использует этот путь, для поиска активного сценария фильтрации
# поступающей на доставку почты. Расширение "include" использует это местоположение
# для поиска :personal" скриптов. Это также место, где служба ManageSieve будет хранить
# скрипты пользователя, если это поддерживается.
#
# Currently only the 'file:' location type supports ManageSieve operation.
# Other location types like 'dict:' and 'ldap:' can currently only
# be used as a read-only script source ().

# В настоящее время ManageSieve поддерживает работу только с типом хранилища 'file:'
# Другие типы, как 'dict:' и "LDAP: ' моут быть использованы как источники сценариев только для чтения
# сценариев только для чтения.
#
# For the 'file:' type: use the ';active=' parameter to specify where the
# active script symlink is located.
# For other types: use the ';name=' parameter to specify the name of the
# default/active script.

# Для типа 'file:' используйте параметр '; Active =" показывающий символическую ссылку
# на активный сценарий.
# Для других типов: используйте параметр: ';name=', чтобы указать имя
# сценария умолчанию / активного сценария.
sieve = file:~/sieve;active=~/.dovecot.sieve





# The default Sieve script when the user has none. This is a path to a global
# sieve script file, which gets executed ONLY if user's private Sieve script
# doesn't exist. Be sure to pre-compile this script manually using the sievec
# command line tool.
# --> See sieve_before fore executing scripts before the user's personal
#     script.  

# Sieve сценарий умолчанию, когда нет ни одного пользовательского сценария.
# Это путь к глобальному Sieve файлу сценария, который запускается
# на выполнение только если пользовательский сценарий  не существует.
# Обязательно предварительно скомпилируйте этот скрипт вручную с помощью
# инструмента командной строки sievec.
# --> См. sieve_before для выполнения сценариев до персональных сценариев
# пользователей
#sieve_default = /var/lib/dovecot/sieve/default.sieve  



 # Location for ":global" include scripts as used by the "include" extension.
 # ":global" местоположение общих скриптов используемых расширением "include".
 #sieve_global =




# Directory for :personal include scripts for the include extension. This
# is also where the ManageSieve service stores the user's scripts.  

# Каталог личных скриптов пользователя.
# Также местоположение, где ManageSieve хранит скрипты пользователя.
sieve_dir = ~/sieve

# Directory for :global include scripts for the include extension.  
# Каталог скриптов доступных всем.
#sieve_global_dir =  


 # Location Sieve of scripts that need to be executed before the user's
 # personal script. If a 'file' location path points to a directory, all the
 # Sieve scripts contained therein (with the proper `.sieve' extension) are
 # executed. The order of execution within that directory is determined by the
 # file names, using a normal 8bit per-character comparison.

 # Местоположение Sieve сценариев, которые должны быть выполнены перед пользовательскими
 # персональными сценариями. Если  'file' указывает на каталог, то все
 # Sieve скрипты содержащиеся в нем (с расширением `.sieve ') будут выполнены
 # Порядок исполнения определяется именами файлов, используя 8bit
 # представление для сравнения символов.
 #
 # Multiple script locations can be specified by appending an increasing number
 # to the setting name. The Sieve scripts found from these locations are added
 # to the script execution sequence in the specified order. Reading the
 # numbered sieve_before settings stops at the first missing setting, so no
 # numbers may be skipped.

 # Можно указать несколько местоположений сценариев, добавляя к настройке
 # все увеличивающееся число.
 # Пропуск номеров не допускается, Выполнение прервется на отсутствующем
 # последовательном номере.
    #sieve_before = /var/lib/dovecot/sieve.d/
 #sieve_before2 = ldap:/etc/sieve-ldap.conf;name=ldap-domain
 #sieve_before3 = (etc...)



# Identical to sieve_before, only the specified scripts are executed after the
# user's script (only when keep is still in effect!). Multiple script file or
# directory paths can be specified by appending an increasing number.
 
# Похоже на  sieve_before, только указанные скрипты выполняются
# после пользовательского сценария (если это возможно!, к примеру
# пользовательский сценарий удалил письмо).
# Несколько файлов сценариев или каталогов могут определяться
# путем добавления числа.
#sieve_after =
#sieve_after2 =
#sieve_after2 = (etc...)  


# Which Sieve language extensions are available to users. By default, all
# supported extensions are available, except for deprecated extensions or
# those that are still under development. Some system administrators may want
# to disable certain Sieve extensions or enable those that are not available
# by default. This setting can use '+' and '-' to specify differences relative
# to the default. For example `sieve_extensions = +imapflags' will enable the
# deprecated imapflags extension in addition to all extensions were already
# enabled by default.  

# Какие расширения языка Sieve доступны для пользователей. По умолчанию
# все поддерживаемые расширения доступны, за исключением устаревших
# или тех, которые находятся в стадии разработки. Некоторые системные
# администраторы могут заблокировать определенные Sieve расширения
# или включить те, которые не доступны по умолчанию. В этом параметре
# можно использовать '+' и '-', чтобы определить различия относительно
# значения по умолчанию. Например `sieve_extensions = + imapflags ' включит
# устаревшее расширение imapflags, в дополнение ко всем расширениям
# включенным по умолчанию.
#sieve_extensions = +notify +imapflags  

# Which Sieve language extensions are ONLY available in global scripts. This
# can be used to restrict the use of certain Sieve extensions to administrator
# control, for instance when these extensions can cause security concerns.
# This setting has higher precedence than the `sieve_extensions' setting
# (above), meaning that the extensions enabled with this setting are never
# available to the user's personal script no matter what is specified for the
# `sieve_extensions' setting. The syntax of this setting is similar to the
# `sieve_extensions' setting, with the difference that extensions are
# enabled or disabled for exclusive use in global scripts. Currently, no
# extensions are marked as such by default.  

# Какие расширения языка Sieve доступны ТОЛЬКО в глобальных сценариях.
# Это может быть использовано для ограничения использования определенных
# расширений Sieve под администраторским контролем, например, когда эти
# расширения могут вызвать проблемы безопасности. Эта настройка имеет более
# высокий приоритет, чем «sieve_extensions» (см. выше), это означает, что
# расширения здесь указанные никогда не доступны для личного пользовательского
# сценария, независимо от того, что указано в «sieve_extensions». Синтаксис этого
# параметра аналогична настройке «sieve_extensions», с той лишь разницей, что
# расширения включаются или отключаются для использования исключительно
#  в глобальном сценарии. По умолчанию ни одно расширение здесь не присутствует
#sieve_global_extensions =  

# The Pigeonhole Sieve interpreter can have plugins of its own. Using this
# setting, the used plugins can be specified. Check the Dovecot wiki
# (wiki2.dovecot.org) or the pigeonhole website
# (http://pigeonhole.dovecot.org) for available plugins.  
# The sieve_extprograms plugin is included in this release.

# Интерпретатор Pigeonhole Sieve так же может иметь собственные плагины.
# С помощью этой настройки, они могут быть указаны. Проверьте Wiki2.dovecot.org
# или http://pigeonhole.dovecot.org на наличие доступных плагинов.
#sieve_plugins =  

# The separator that is expected between the :user and :detail
# address parts introduced by the subaddress extension. This may
# also be a sequence of characters (e.g. '--'). The current
# implementation looks for the separator from the left of the
# localpart and uses the first one encountered. The :user part is
# left of the separator and the :detail part is right. This setting
# is also used by Dovecot's LMTP service.  

# Разделитель, который ожидается между частями: пользователь и расширение.
# Это также может быть последовательность символов (например, '--').
# В текущей реализации ищет сепаратор с лево на право в локальной части
# адреса и использует первое совпадение. Пользовательской частью считается
# то что до сепаратора, расширением — после сепаратора. Этот параметр также
# используется службой LMTP  Dovecot.
#recipient_delimiter = +  

# The maximum size of a Sieve script. The compiler will refuse to compile any
# script larger than this limit. If set to 0, no limit on the script size is
# enforced.  

# Максимальный размер Sieve сценария. Компилятор откажется компилировать
# любой сценарий больше этого предела. Если установлено в 0, никаких
# ограничений на размер сценария не соблюдается.
#sieve_max_script_size = 1M  

# The maximum number of actions that can be performed during a single script
# execution. If set to 0, no limit on the total number of actions is enforced.
 
# Максимальное количество действий, которые могут быть выполнены в
# одном сценарии. Если установлено значение 0, то это ограничение
# не соблюдается.
#sieve_max_actions = 32  

# The maximum number of redirect actions that can be performed during a single
# script execution. If set to 0, no redirect actions are allowed.
 
# Максимальное количество действий перенаправления, которые могут
# выполниться за лдин проход скрипта. Если установлено значение 0,
# то действия перенаправить запрещены.
#sieve_max_redirects = 4  

# The maximum number of personal Sieve scripts a single user can have. If set
# to 0, no limit on the number of scripts is enforced.
# (Currently only relevant for ManageSieve)  

# Максимальное число персональных Sieve скриптов, которое может иметь
# один  пользователь. Если установлено 0, никаких ограничений на количество
# сценариев, не соблюдаются.
# (В настоящее время касается только ManageSieve)
#sieve_quota_max_scripts = 0  

# The maximum amount of disk storage a single user's scripts may occupy. If
# set to 0, no limit on the used amount of disk storage is enforced.
# (Currently only relevant for ManageSieve)  

# Максимальный объем дискового пространства, занимаемого скриптами
# одного пользователя может занимать. Если установлен в 0, никаких
# ограничений на количество используемого дискового пространства
# не соблюдается.
# (В настоящее время касается только ManageSieve)
#sieve_quota_max_storage = 0  
}



размещено: 2013-06-06,
последнее обновление: 2015-01-20,
автор: KontraBass



 

  Этот информационный блок появился по той простой причине, что многие считают нормальным, брать чужую информацию не уведомляя автора (что не так страшно), и не оставляя линк на оригинал и автора — что более существенно. Я не против распространения информации — только за. Только условие простое — извольте подписывать автора, и оставлять линк на оригинальную страницу в виде прямой, активной, нескриптовой, незакрытой от индексирования, и не запрещенной для следования роботов ссылки.
  Если соизволите поставить автора в известность — то вообще почёт вам и уважение.

© lissyara 2006-10-24 08:47 MSK

Время генерации страницы 0.0687 секунд
Из них PHP: 57%; SQL: 43%; Число SQL-запросов: 75 шт.
У Вас отключено GZIP-сжатие в браузере. Размер страницы 220760