Когда я пытаюсь войти через 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
}
Auth вроде существует:
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
У вас есть строка auth_mechanisms в вашей конфигурации dovecot?
Если да, опубликуйте, если нет, вероятно, проблема.
по умолчанию для справки: auth_mechanisms = plain login
Но вы, вероятно, захотите что-то еще из-за ваших параметров безопасности postfix sasl, и открытый текст, и логин считаются открытым текстом.