我在上面的错误挣扎超过5个小时。 我试图完全删除Postfix,我已经按照下一个手册和SASL手册的指示来重新安装它。
当我试图用telnetlogin时,服务器阻止login,我得到这个:(用smtpd -v更详细):
postfix / smtpd [26301]:xsasl_cyrus_server_create:SASL服务= smtp,realm =(null) postfix / smtpd [26301]:name_mask:noanonymous postfix / smtpd [26301]:警告:xsasl_cyrus_server_get_mechanism_list:没有适用的SASL机制 postfix / smtpd [26301]:致命的:没有SASLauthentication机制
这里是postconf -n的结果postconf -n :
alias_database = hash:/ etc / aliases
alias_maps = hash:/ etc / aliases
allow_percent_hack = no
append_dot_mydomain = no
biff =没有
broken_sasl_auth_clients =是
config_directory = / etc / postfix
home_mailbox = Maildir /
inet_interfaces = all
mailbox_command = / usr / bin / procmail-wrapper -o -a $ DOMAIN -d $ LOGNAME
mailbox_size_limit = 0
mydestination = theflipapp.com,localhost.com,localhost
myhostname = theflipapp.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [:: 1] / 128
myorigin = / etc / mailname
readme_directory = no
recipient_delimiter = +
relayhost =
sender_bcc_maps = hash:/ etc / postfix / bcc
smtp_tls_session_cache_database = btree:$ {data_directory} / smtp_scache
smtpd_banner = $ myhostname ESMTP $ mail_name(Debian / GNU)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable =是
smtpd_sasl_security_options = noanonymous
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 =是
virtual_alias_maps = hash:/ etc / postfix / virtual
后缀主配置:
root @ domain:/#cat /etc/postfix/master.cf | grep ^ smtp smtp inet n - - - - smtpd -v -o smtpd_sasl_auth_enable = yes smtp unix - - - - - smtp
希望这些数据能帮助你帮助我..
您可以安装saslauthd,但没有安装任何机制。 这是相当令人沮丧和差错防错,国际海事组织。
“没有适用的SASL机制”的字面意思是它找不到任何机制。 在基于Fedora的系统上,如果您想使用“PLAIN”authentication机制(即SMTP / STARTTLS),则需要安装cyrus-sasl-plain软件包。
yum install cyrus-sasl-plain
要么
apt-get install libsasl2-modules
解决scheme非常简单,SASL守护进程已经closures。 /etc/init.d/saslauthd start
一些黑客设法一次又一次地closures它,所以最终我完全closures了它。
首先,尝试将smtpd_recipient_restrictions的分隔符更改为逗号。 这里的空间是IIRC不正确的。
然后:尝试临时禁用“smtpd_sasl_security_options = noanonymous”。 您是否正在使用CYRUS imap服务器进行身份validation?