Answer the question
In order to leave comments, you need to log in
How to setup postfix + dovecot mail server properly on ubuntu?
Hello. There is a problem with the mail server.
I have a VPS , which will have a couple of sites with their mailboxes. For example , [email protected] and [email protected]
I set it up according to this instruction
. I still do not quite understand. If I want to use many domains on the server. How then do you fill in one domain everywhere in the instructions?
System: Ubuntu_14.04_LTS
Control Panel: Vestacp
!include_try /usr/share/dovecot/protocols.d/*.protocol
#Разрешаем авторизацию в plaintext
disable_plaintext_auth = no
# Журнал будем писать в файл /var/log/dovecot.err
log_path = /var/log/dovecot.err
# Формат даты и времени для регистрируемых событий
log_timestamp = "%Y-%m-%d %H:%M:%S "
#Включаем SSL
ssl = yes
# Порядок следования сертификатов имеет большое значение: сначала *.key, за$
ssl_key =< /etc/dovecot/mail_pro-cm_org_ua.key
ssl_cert =< /etc/dovecot/mail_pro-cm_org_ua.cert
#Строка приветствия при ответе сервера
login_greeting = Dovecot ready.
#Описываем тип (maildir) и местонахождения почтовых ящиков (/var/spool/mail$
mail_location = maildir:/var/spool/mail/%d/%n
#Задаем идентификатор пользователя и группы, с которыми будет работать dove$
mail_uid = 5000
mail_gid = 5000
mail_privileged_group = mail
valid_chroot_dirs = /var/spool/mail/
#Настраиваем вывод отладочных сообщений
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
#Типы допустимых вариантов аутентификации
auth_mechanisms = plain login digest-md5
#Задаем параметры аутентификации
passdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf
}
service auth {
unix_listener auth-master {
mode = 0660
user = virtual
group = virtual
}
unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}
}
service imap-login {
inet_listener imap {
port = 0
}
inet_listener imaps {
port = 993
ssl = yes
}
}
2016-01-12 07:49:34 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
2016-01-12 07:49:34 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
2016-01-12 07:49:34 auth: Fatal: No passdbs specified in configuration file. DIGEST-MD5 mechanism needs one
2016-01-12 07:49:34 master: Error: service(auth): command startup failed, throttling for 8 secs
2016-01-12 07:49:42 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
2016-01-12 07:49:42 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
2016-01-12 07:49:42 auth: Fatal: No passdbs specified in configuration file. DIGEST-MD5 mechanism needs one
2016-01-12 07:49:42 master: Error: service(auth): command startup failed, throttling for 16 secs
2016-01-12 07:50:20 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
2016-01-12 07:50:20 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
2016-01-12 07:50:20 auth: Fatal: No passdbs specified in configuration file. DIGEST-MD5 mechanism needs one
2016-01-12 07:50:20 master: Error: service(auth): command startup failed, throttling for 32 secs
2016-01-12 07:50:20 imap-login: Info: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=ИП моего компа, lip=ИП Впс хостинга, TLS handshaking, session=<сеси>
2016-01-12 07:50:34 imap-login: Info: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=ИП моего компа, lip=ИП Впс хостинга, TLS: SSL_read() failed: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca: SSL alert number 48, session=<сесия>
2016-01-12 07:50:52 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
2016-01-12 07:50:52 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
2016-01-12 07:50:52 auth: Fatal: No passdbs specified in configuration file. DIGEST-MD5 mechanism needs one
2016-01-12 07:50:52 master: Error: service(auth): command startup failed, throttling for 60 secs
2016-01-12 08:04:09 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
2016-01-12 08:04:09 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
2016-01-12 08:04:09 auth: Fatal: No passdbs specified in configuration file. DIGEST-MD5 mechanism needs one
2016-01-12 08:04:09 master: Error: service(auth): command startup failed, throttling for 60 secs
2016-01-12 08:13:21 log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
2016-01-12 08:13:21 master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
2016-01-12 08:51:34 master: Info: Dovecot v2.2.9 starting up (core dumps disabled)
Answer the question
In order to leave comments, you need to log in
Wang, that the problem is here:
2016-01-12 08:04:09 auth: Fatal: No passdbs specified in configuration file. DIGEST-MD5 mechanism needs one
Show what's in /etc/dovecot/dovecot-sql.conf
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question