Постфикс + фатальная Голубятня: никакие механизмы аутентификации SASL

Когда я пытаюсь войти в систему с помощью telnet, я становлюсь выгнанным сразу:

telnet localhost 25
Trying ::1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

В журналах я получаю следующее сообщение об ошибке:

Jul 17 23:15:26 mail postfix/smtpd[1606]: connect from localhost[::1]
Jul 17 23:15:26 mail postfix/smtpd[1606]: fatal: no SASL authentication mechanisms
Jul 17 23:15:27 mail postfix/master[597]: warning: process /usr/lib/postfix/smtpd pid 1606 exit status 1
Jul 17 23:15:27 mail postfix/master[597]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

Я получаю то же сообщение об ошибке также, когда MTA снаружи хочет поставить почту.

Мой 10-master.conf:

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

}

Автор, кажется, существует:

ls -l /var/spool/postfix/private/auth
srw-rw-rw- 1 root root 0 Jul 17 22:55 /var/spool/postfix/private/auth

И наконец, что не менее важно, мой postconf-n:

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
mydestination = XXX, localhost.XXX, localhost, $mydomain
myhostname = XXX
mynetworks_style = subnet
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relay_domains = hash:/etc/postfix/relay_domains
relayhost = XXX
smtp_generic_maps = hash:/etc/postfix/generic
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sender_dependent_authentication = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_tls_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport, $relay_domains
virtual_alias_domains = hash:/etc/postfix/virtual_domains
virtual_alias_maps = hash:/etc/postfix/virtual_maps

Я делал ошибку где-нибудь? В противном случае, как я могу отладить дальше?

Заранее большое спасибо (:

Править:

мой 10-auth.conf:

disable_plaintext_auth = yes
auth_username_format = %Ln
auth_mechanisms = plain login
!include auth-ldap.conf.ext
0
задан 18 July 2015 в 09:48
1 ответ

Есть ли у вас строка auth_mechanisms в вашей конфигурации dovecot?

Если да, опубликуйте ее, если нет, вероятно, проблема.

default для справки: auth_mechanisms = plain login

Но вы, вероятно, захотите что-нибудь еще из-за ваших параметров безопасности postfix sasl, и открытый текст, и логин считаются открытым текстом.

Подробнее: http://wiki2.dovecot.org / Authentication / Mechanisms

2
ответ дан 4 December 2019 в 13:48

Теги

Похожие вопросы