Здравствуйте.
Система Ubuntu 18.04, все обновлено из официальных репозиториев, на 28.02.2020
Столкнулся с проблемой настройки авторизации SMTP, проходящей через dovecot. Сервер полностью функционирует: проверка существование почты, получением писем, отправка через postfix происходит без проблем, при попытке отправить через roundcube я получаю данную ошибку:
/var/log/mail.logMar 1 12:14:22 nikhalif-vps-1 postfix/submission/smtpd[30586]: connect from localhost.localdomain[127.0.0.1]
Mar 1 12:14:22 nikhalif-vps-1 postfix/submission/smtpd[30586]: Anonymous TLS connection established from localhost.localdomain[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Mar 1 12:14:22 nikhalif-vps-1 postfix/submission/smtpd[30586]: warning: SASL: Connect to private/auth failed: Permission denied
Mar 1 12:14:22 nikhalif-vps-1 postfix/submission/smtpd[30586]: fatal: no SASL authentication mechanisms
Mar 1 12:14:23 nikhalif-vps-1 postfix/master[30230]: warning: process /usr/lib/postfix/sbin/smtpd pid 30586 exit status 1
Mar 1 12:14:23 nikhalif-vps-1 postfix/master[30230]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
/var/www/roundcubemail/logs/errors.log[01-Mar-2020 12:14:22 +0300]: <qncfhg1j> PHP Error: STARTTLS failed (POST /webmail/?_task=mail&_unlock=loading1583054062337&_framed=1&_lang=ru&_action=send)
[01-Mar-2020 12:14:22 +0300]: <qncfhg1j> PHP Error: Invalid response code received from server (POST /webmail/?_task=mail&_unlock=loading1583054062337&_framed=1&_lang=ru&_action=send)
[01-Mar-2020 12:14:22 +0300]: <qncfhg1j> SMTP Error: Authentication failure: STARTTLS failed (Code: ) in /var/www/roundcubemail/program/lib/Roundcube/rcube.php on line 1689 (POST /webmail/?_task=mail&_unlock=loading1583054062337&_framed=1&_lang=ru&_action=send)
postconf -nalias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
compatibility_level = 2
config_directory = /etc/postfix
disable_vrfy_command = yes
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps = $virtual_mailbox_maps
mailbox_size_limit = 0
milter_default_action = accept
milter_protocol = 2
mydestination = localhost localhost.localdomain localhost6 localhost6.localhost6
mydomain = avg-inc.ru
myhostname = avg-inc.ru
mynetworks = 127.0.0.0/8 77.222.60.146
myorigin = /etc/mailname
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
relay_domains = mysql:/etc/postfix/mysql/relay_domains.cf
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination, defer_unauth_destination
smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination, defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/letsencrypt/live/avg-inc.ru/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/avg-inc.ru/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql/virtual_alias_maps.cf,mysql:/etc/postfix/mysql/virtual_alias_domain_maps.cf
virtual_mailbox_base = /var/mail/vmaxil/
virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_transport = dovecot
doveconf -n# 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.21 (92477967)
# OS: Linux 4.15.0-88-generic x86_64 Ubuntu 18.04.4 LTS ext4
auth_mechanisms = plain login
mail_gid = mail
mail_location = maildir:/var/mail/%d/%n/
mail_privileged_group = mail
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
passdb {
args = scheme=ssha512 username_format=%u /etc/dovecot/users
driver = passwd-file
}
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = pop3 imap lmtp
service auth {
unix_listener /var/spool/postfix/private/auth {
group = mail
mode = 0660
user = mail
}
unix_listener auth-userdb {
group = mail
mode = 0666
user = vmail
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = mail
mode = 0600
user = mail
}
user = mail
}
ssl = required
ssl_cert = </etc/letsencrypt/live/avg-inc.ru/cert.pem
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
}
protocol lmtp {
postmaster_address = master@avg-inc.ru
}
Перерыл в гугле все, что смог найти, решения не нашел.
Надеюсь на помощь, заранее спасибо.