K
K
kosmos1232017-07-04 14:20:20
linux
kosmos123, 2017-07-04 14:20:20

How to get rid of postfix fatal: no SASL authentication mechanisms error?

I'm doing a postfix + dovecot link. As a result, the letters are not sent, there is an error in the log:

fatal: no SASL authentication mechanisms

postfix config
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailbox_size_limit = 1073741824
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = ****.com
myhostname = mail.*****.com
mynetworks = 168.100.189.0/28, 127.0.0.0/8, 10.0.0.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/pki/tls/certs/crt.crt
smtpd_tls_key_file = /etc/pki/tls/certs/mail.key
smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
dovecot config
# doveconf -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-642.el6.x86_64 x86_64 CentOS release 6.9 (Final) 
auth_mechanisms = plain login
disable_plaintext_auth = no
mail_location = maildir:~/Maildir
mbox_write_locks = fcntl
passdb {
  driver = pam
}
service dict {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
ssl_cert = </etc/pki/tls/certs/crt.crt
ssl_key = </etc/pki/tls/certs/mail.key
userdb {
  driver = passwd
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
effko32, 2017-07-04
@effko32

forum.lissyara.su/viewtopic.php?t=34177

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question