no SASL authentication mechanisms

来源:互联网 发布:java判断文件编码格式 编辑:程序博客网 时间:2024/06/01 08:59

If you have enabled SMTP Auth with Postfix like this:

smtpd_sasl_auth_enable = yessmtpd_sasl_security_options = noanonymoussmtpd_sasl_local_domain = $myhostnamebroken_sasl_auth_clients = yessmtpd_recipient_restrictions =    permit_sasl_authenticated,    permit_mynetworks,    reject_unauth_destination

and are getting messages like this (the extract below is from the mail log file):

Nov  2 15:31:09 vps131 postfix/smtpd[14007]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabledNov  2 15:31:09 vps131 postfix/smtpd[14007]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanismsNov  2 15:31:09 vps131 postfix/smtpd[14007]: fatal: no SASL authentication mechanismsNov  2 15:31:10 vps131 postfix/master[12004]: warning: process /usr/libexec/postfix/smtpd pid 14007 exit status 1Nov  2 15:31:10 vps131 postfix/master[12004]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

then you need to install the cyrus-sasl-plain package like so:

yum install cyrus-sasl-plain

The above method will install the cyrus-sasl-plain packages on CentOS and other RPM/Yum based Linux distributions, so you would need to use the appropriate package manager (and software package) for other Linux distros.

测试cyrus-sasl

查看复制打印?
  1. [root@linux t]# passwd cyrus  //设置cyrus的密码  
  2. [root@linux sasl2]# testsaslauthd -u cyrus -p '******'   //系统用户和密码  
  3.  0: OK "Success."  

如果显示是上面的内容说是smtp是没有什么问题


原创粉丝点击